PDA

View Full Version : lil help please



Bibliophobia
03-10-2007, 03:39 PM
i forgot the script for when you click an image, and underneath lots of little links appear. if u click it again they dissapear

LegendOfNoob
03-10-2007, 03:42 PM
wouldnt that be a spoiler like on here?

Bibliophobia
03-10-2007, 03:46 PM
i forgot the script for when you click an image, and underneath lots of little links appear. if u click it again they dissapear

yes, um an example is on www.habbome.com

Sunny.
03-10-2007, 03:47 PM
you mean dropdown links
www.dynamicdrive.com (http://www.dynamicdrive.com)

its on their.


Edit here:
http://www.dynamicdrive.com/dynamicindex1/switchmenu.htm

Invent
03-10-2007, 03:51 PM
NEVER. EVER. Use DynamicDrive.

I'll post the code later, bust atm.

Bibliophobia
03-10-2007, 03:52 PM
you mean dropdown links
www.dynamicdrive.com

its on their.


Edit here:
http://www.dynamicdrive.com/dynamicindex1/switchmenu.htm

thanks

Invent
03-10-2007, 04:00 PM
<html>
<head>
<script type="text/javascript">

function switch(div) {

var el=document.getElementById(div);
el.style.display=el.style.display=='none'? 'block' : 'block';

}
</script>
</head>
<body>
<div id="title"><a onClick="switch(1)">TITLE LOL</a></div><br />
<div id="1" style="display: none">lol</div>
</body>
</html>

Eccentric
03-10-2007, 04:04 PM
<html>
<head>
<script type="text/javascript">

function switch(div) {

var el=document.getElementById(div);
el.style.display=el.style.display=='none'? 'block' : 'block';

}
</script>
</head>
<body>
<div id="title"><a onClick="switch(1)">TITLE LOL</a></div><br />
<div id="1" style="display: none">lol</div>
</body>
</html>

that actually work?

Invent
03-10-2007, 04:13 PM
Yes. .

Eccentric
03-10-2007, 04:23 PM
thats a rather simple way :P

Want to hide these adverts? Register an account for free!