Welcome Guest ( Log In | Register )

Discover the best free computer help!
Learn more about Geeks to Go by taking the tour. Spyware, virus, trojan, fake security or privacy alerts? Read the malware cleaning guide.
      
 
Reply to this topicStart new topic
Javascript Help Please
yaddie
post Apr 26 2006, 04:41 PM
Post #1


New Member
*
Posts: 1
OS: Windows Xp



Hi I have this code in Javascript that will expand a Menu if you click a link and then it will close it again if you click on the link again.

I like alot but the problem is that when you click on the Menu it expands it, but when you click on the links that are expanded it will close the menu when you go to that link. Am I making sense? How can I have it stay open(expanded) even if it goes to another page?

Here is the code:

<script language=javascript type=text/javascript>
<!--
// preloads expand images and the dot
if(document.images)
{
expandC = new Image
expandC.src="images/arrow.gif"
expandO = new Image
expandO.src="images/arrow_down.gif"
}
function expand(expandWhat)
{
var exEle = expandWhat
var current = document.getElementById(exEle).style.display
if (current == "none")
{
document.getElementById(exEle).style.display="";
if (document.images)
document.getElementById(exEle + 'Img').src = expandO.src;
}
else
{
document.getElementById(exEle).style.display="none";
if (document.images)
document.getElementById(exEle + 'Img').src = expandC.src;
}
}
//-->
</SCRIPT>



Let me know if you need anything else. Thank you for ANY Help! lookaround.gif
Go to the top of the page
 
+Quote Post
knexor2
post May 16 2006, 03:57 PM
Post #2


Member
**
Posts: 28
OS: Windows ME



It would help to be able to see your entire source code. What's the website?

I assume you have this fixed by now laughing.gif
Go to the top of the page
 
+Quote Post
Mike-pxndx
post May 19 2006, 03:44 PM
Post #3


Member
**
Posts: 54
From: MExico
OS: laptop IBM THINK PAD Windows xp



Same, just queep playing with the scource code and try to find out where is the error.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Collapse

> Similar Topics

    Topic Title Replies / Views Topic Information
No New Posts   1 / 894 17th June 2004 - 09:25 PM
Emory started - last by ditto
No new   15 / 260 15th November 2008 - 03:52 AM
topmentor started - last by Thunderbird1988
No New Posts   0 / 69 11th November 2008 - 12:23 PM
agray started - last by agray
No New Posts   0 / 37 13th November 2008 - 07:24 AM
boy666 started - last by boy666

RSS Time is now: 20th November 2008 - 10:33 AM
Advertisements do not imply our endorsement of that product or service. The forum is run by volunteers who donate their time and expertise. We make every attempt to ensure that the help and advice posted is accurate and will not cause harm to your computer. However, we do not guarantee that they are accurate and they are to be used at your own risk.