Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8631073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:09:58+00:00 2026-06-12T09:09:58+00:00

http://jsfiddle.net/xDaL8/6/ is where it’s being held. I have four divs, one position on the

  • 0

http://jsfiddle.net/xDaL8/6/ is where it’s being held. I have four divs, one position on the right which is the menu links and on the left 3 divs in this order top to bottom is image, content and view more. The “view more” needs to have the same link for whichever on the right side link was hovered over because once point leaves link the left side content stays active so the view more for that particular links needs to have the same link address as that particular link on the right. Hope that was not that confusing.

`$(document).ready(function() {

    var defaultText  = '.description';
    $("#MenuBar1 li").mouseover(function() {
        $("#back").attr("src", $(this).data("img"));
        defaultText = $(".description").html();
        $(".description").html($(this).data("description"));
    }).mouseout(function() {
        $("#back").attr("src", $("#back").data("original"));
        $(".description").html(defaultText);
});​   <div>
<div style="width: 377px; position:relative; left: 395px;">
    <ul id="MenuBar1" class="MenuBarHorizontal">
        <div style="height:20px;">
            <li id="button1" data-img="http://http://demo/images/anne.jpg" width="357" height="241" border="0" data-description="Demo Images Description">
                <a href="#">Anywhere</a>
            </li>
        </div>
        <div style="height:20px;">
            <li id="button2" data-img="http://demo/images/Banner.jpg"  data-description="Banner Description" >
                <a href="#">ware</a>
            </li>
        </div>
        <div style="height:20px;">
            <li id="button3" data-img="http://demo/images/Banner.jpg"  data-description="Demand Description" >
                <a href="#">Demand</a>
            </li>
        </div>
        <div style="height:20px;">
            <li id="button4" data-img="http:http://demo/images/Bans.jpg"  data-description="CMO Description" >
                <a href="#">CM</a>
            </li>
        </div>
        <div style="height:20px;">
            <li id="button5" data-img="http://demo/images/eat.jpg"  data-description="Key Description" >
                <a href="#">Key</a>
            </li>
        </div>

    </ul>
</div>
<div style="width: 357px; position: relative; top: -380px;" id="content"> 
    <img id="back"src="http://demo/images/Banner.jpg"data-original="http://demo/images/Banner.jpg" alt="e.s.t" /> 
</div>

put text content here for each hover
​`

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T09:09:59+00:00Added an answer on June 12, 2026 at 9:09 am

    Check out the updated fiddle.

    Assuming I understand what you want to do correctly here’s the updated code:

    Updated HTML:

    <div>
      <div style="width: 377px; position:relative; left: 395px;">
        <ul id="MenuBar1" class="MenuBarHorizontal">
          <div style="height:20px;">
            <li id="button1" data-img="http://http://demo/images/anne.jpg" width="357" height="241" border="0" data-description="Demo Images Description" data-link="http://www.google.com">
              <a href="#">Anywhere</a>
            </li>
          </div>
          <div style="height:20px;">
            <li id="button2" data-img="http://demo/images/Banner.jpg"  data-description="Banner Description" data-link="http://www.yahoo.com">
              <a href="#">ware</a>
            </li>
          </div>
          <div style="height:20px;">
            <li id="button5" data-img="http://demo/images/eat.jpg"  data-description="Key Description" data-link="http://www.bing.com">
              <a href="#">Key</a>
            </li>
          </div>
        </ul>
      </div>
      <div style="width: 357px; position: relative; top: -380px;" id="content"> 
        <img id="back"src="http://demo/images/Banner.jpg"data-original="http://demo/images/Banner.jpg" alt="e.s.t" /> 
      </div>
      <div class="description" id="Text">put text content here for each hover</div>  
      <div> 
        <a href="#" id="view_more_link" style="color: #000">View More&gt;&gt;</a> </div>
      </div>​
    </div>
    

    The updated javascript:

    $(document).ready(function() {
    
        var defaultText = $(".description").html();
        $("#MenuBar1 li").mouseover(function() {
            $("#back").attr("src", $(this).data("img"));
            defaultText = $(".description").html();
            $(".description").html($(this).data("description"));
            $('#view_more_link').prop('href', $(this).data("link"));
        }).mouseout(function() {
            $("#back").attr("src", $("#back").data("original"));
            $(".description").html(defaultText);
        });
    
    });
    ​
    

    You were on the right track putting the description in a data property on your list items. I just did the same thing by adding a data-link property to the list item and then binding that property to the “View More” link’s href property.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

http://jsfiddle.net/waitinforatrain/sEX3n/ I have two divs in a container with absolute position. Both of them
http://jsfiddle.net/2CkKW/5/ I'm trying to have a button for comments in which you will press
http://jsfiddle.net/AYPze/9/ In this example I have two similar divs with the same goal. Bind
http://jsfiddle.net/h2vMN/1/ I have a text box text inside it already, in the actual application
http://jsfiddle.net/WTELW/4/ The following works fine on JSFiddle, but doesn't seem to work right in
http://jsfiddle.net/DaJWC/ i can't figure out how to make one of the links reverse so
http://jsfiddle.net/9BCrs/5/ I have this set up to load a file into a DIV using
http://jsfiddle.net/fJkBU/1/ That's my code. Basically, I have an iFrame whose source may change. I
http://jsfiddle.net/defencedog/2Skc7/ I am trying to remove the online class ONLY for administration which has
http://jsfiddle.net/VhjR7/1/ When you click the my lists menu once, it expands, but if you

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.