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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:17:27+00:00 2026-06-07T14:17:27+00:00

I been researching on Show/Hide javascript and pushed it further with a mouseover effect

  • 0

I been researching on Show/Hide javascript and pushed it further with a mouseover effect to achieve what I want. I’ve set up a Fiddle for better accessibility. However, I now want to push it by having up to 4 different text areas (“Click here for more information”), and each text area would have more hover text as I tried to show in the HTML code itself. The javascript that I used and edited now has “ID”s corresponding to “0” and “1” which wouldnt work for my current HTML code as it has funky names like “uu3308-10” (made with Adobe Muse). Now, I’m wonder what variables would I have to change within the Javascript to make it function properly and is there a way to compile this code so it works with at least 11 other “Click here for more information” points?

Note: The current javascript makes showMoreText2 appear under both showMoreText areas (would like to make only one hover text appear at a time).

CLICK HERE FOR THE FIDDLE — > http://jsfiddle.net/TPLOR/vy6nS/

Thanks, I hope this was helpful enough. =)

  • 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-07T14:17:28+00:00Added an answer on June 7, 2026 at 2:17 pm

    kinda hackish: (see http://jsfiddle.net/vy6nS/30/ )

    window.onload = function() {
        var elems1 = document.getElementsByClassName("expander");
        for (i = 0; i < elems1.length; i++) {
            elems2 = elems1[i].childNodes;
            for (x = 0; x < elems2.length; x++) {
                if (elems2[x].className == "toggle") elems2[x].onclick = function() {
                    showMore(0, this);
                };
                else if (elems2[x].className == "showMoreText") {
                    elems2[x].onmouseover = function() {
                        showChilds("block", this);
                    };
                    elems2[x].onmouseout = function() {
                        showChilds("none", this);
                    };
                }
            }
        }
    };
    
    function get_nextsibling(n) {
        x = n.nextSibling;
        while (x.nodeType != 1) {
            x = x.nextSibling;
        }
        return x;
    }
    
    function showChilds(disp, elem) {
        get_nextsibling(elem).style.display = disp;
    }
    
    function showMore(disp, elem) {
        var children = elem.parentNode.childNodes;
        for (i = 0; i < children.length; i++) {
            if (disp == 0 && children[i].className == "showMoreText") {
                children[i].style.display = children[i].style.display == "none" ? "block" : "none";
            }
        }
    
    }​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to set up php mail with pear. I've been trying and researching
I have been researching AWS. It seems a little confusing to me. We want
I've been researching how to implement a Namespace Extension. The NSE should show files
been researching this a while and not sure entirely what to do. I want
I been researching around looking for how to use tags and javascript to create
I've been researching Apache's commons-daemon and it seems pretty cool: basically its an API
I've been researching for a while now trying to find a reason why the
I have been researching for over an hour and finding great samples of how
I have been researching all over the internet about this, and unfortunately cannot find
I've been researching how to setup a LAN Mamp Pro server so local users

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.