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 3243356
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T18:25:22+00:00 2026-05-17T18:25:22+00:00

I have five links that I want to change the content in the same

  • 0

I have five links that I want to change the content in the same separate DIV. There’s different content corresponding to each link. On the mouseleave, I need the default text to return inside the separate DIV.

Has anyone already done this or can guide me? I prefer jquery.

Thanks!

  • 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-05-17T18:25:23+00:00Added an answer on May 17, 2026 at 6:25 pm
    $("a.link").mouseleave(function() {
       $("#sepdiv").text($(this).text());
    });
    //share the same class ("link" as an example) with all your links. and have an id for the separate div
    

    You question isn’t clear and I don’t have any code that I can base this on but I hope this is what you where looking for. let me know so I can edit my answer!

    Edit:

    After looking at the website shared in the comment:

    js

    $(document).ready(function() {
      //this is your code - just add it all under one document load
      $.preloadCssImages();
      $('#slider').nivoSlider();
    
    
      $('a.share-links').hover(function() {
        $('#ms').text($(this).text());
      }, function() {
        $('#ms').text(function() {
           return $(this).attr("title");
        });
      });
    });
    

    css

    .share-links
    {
      text-indent:-9999px;
    }
    

    html

    <div id="ms" title="Our crusade to feed every orphan in the world.">
      Our crusade to feed every orphan in the world.
    </div>
    
    <div id="nc_wrap2">
      <a class="nc1 share-links" href="#">Facebook</a>
      <a class="nc2 share-links" href="#">Twitter</a>
      <a class="nc3 share-links" href="#">..</a>
      <a class="nc4 share-links" href="#">..</a>
      <a class="nc5 share-links" href="#">..</a>
    </div>
    

    I hope this is better!

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

Sidebar

Related Questions

I have five buttons on one form that when clicked enables a bool each
I have five tables that are fairly similar in structure but different enough that
So I have these five buttons that I want to be always present in
I have an unordered list with five list items, each with a link inside
i have five divs <div id=box1>content 1</div> <div id=box2>content 2</div> <div id=box3>content 3</div> <div
I have five links rendered at page that represents navigation header of the page,
I have five activities/screens that I would like to be able to swipe between,
I have a qplot that is showing 5 different groupings (denoted with colour =
Okay, what I currently have is a TabBarController with five tabs. Each of these
i have created random expression and want to link their answers to the keypad

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.