DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   JavaScript / DHTML / AJAX (http://www.daniweb.com/forums/forum117.html)
-   -   Css javascript question (http://www.daniweb.com/forums/thread122473.html)

fluffythebunny May 5th, 2008 1:37 am
Css javascript question
 
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.

Luckychap May 5th, 2008 3:51 am
Re: Css javascript question
 
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;

}


}


All times are GMT -4. The time now is 5:06 pm.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC