Css javascript question

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: May 2008
Posts: 9
Reputation: fluffythebunny is an unknown quantity at this point 
Solved Threads: 0
fluffythebunny fluffythebunny is offline Offline
Newbie Poster

Css javascript question

 
0
  #1
May 5th, 2008
I have made a mouseover layer menu.
Click on the link to keep it open.
The only way to close the layer is to reload the page.
Is there anyother way to do it.

link to script. http://www.stupidharold.com/dani/clicktokeepopen.htm

Page trying to fix. http://www.stupidharold.com/Harold1/acessScripts.htm

I have another question. I am running ie 5.5. So I don't know if the newer browsers
are able to see my pages.
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 319
Reputation: Luckychap is on a distinguished road 
Solved Threads: 42
Luckychap's Avatar
Luckychap Luckychap is offline Offline
Posting Whiz

Re: Css javascript question

 
0
  #2
May 5th, 2008
You can declare a global variable to check weather the link is visible or not.


So that you can toggle the appearance of
links by clicking on above link.

Your function will look like that:

var flag = 0;

function hideShowLinks() {
if(flag == 0) {
//code to show the second link

flag =1;
} else {
//Code to hide the second link

flag =0;

}


}
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum


Views: 633 | Replies: 1
Thread Tools Search this Thread



Tag cloud for JavaScript / DHTML / AJAX
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC