...

View Full Version : SIMPLE pop-up menu



jeorg
07-22-2002, 11:16 AM
I am looking for a simple pop-up menu ( a DIV) I don't wan to move it, just to have a menu inside and the possibility to hide and show it

thankk you

requestcode
07-22-2002, 06:34 PM
How about this one from Dynamic Drive:
http://www.dynamicdrive.com/dynamicindex1/popit.htm

Also here is the link to their Menu/Navigation section:

http://www.dynamicdrive.com/dynamicindex1/index.html

jeorg
07-22-2002, 08:01 PM
yes then I have just to change so many things :-))

a simple link

<a href="javascript:DivShow()">SHOW</a>

<div id="menu"><a href="javascript:DivHide()">Hide</a>
content
</div>

will be perfect

requestcode
07-22-2002, 09:41 PM
Here is a very simple one:


<html>
<head>
<script language="JavaScript">
<!--//
function show(layerid)
{
if (document.getElementById) // IE and NS6
{
elm=document.getElementById(layerid)
if(elm.style.visibility=="visible")
{
elm.style.visibility="hidden"
}
else
{
elm.style.visibility="visible"
}
}
if(document.layers)
{
obj=eval("document."+layerid)
if(obj.visibility=="show")
{
obj.visibility="hide"
}
else
{
obj.visibility="show"
}
}
}
//-->
</script>
</head>
<body >
<br><br>
<a href="javascript:show('mytexta')">Show/Hide Div<a>
<div id="mytexta" Style="position:relative;left:10;top:50;visibility:hidden">
This is some text that should be hidden until the text link is clicked. <br>
click the link again to hide it.
</div>
</body>
</html>

jeorg
07-22-2002, 10:03 PM
perfect ! exactly what I need

thank you

jeorg
07-23-2002, 07:01 AM
and how can you hide this box by clicking any link inside the box ?

---------------------------------------------------------------------------
<a href="java script:show('mytexta')">Show/Hide Div<a>
<div id="mytexta" Style="position:relative;left:10;top:50;visibility:hidden
">
link 1
link 2
link 3
</div>
------------------------------------------------------------------------
I want to send a request by clicking link1 or 2 or 3 and at the same time close this box

thank you again !!!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum