Cherchezlafemme
05-25-2003, 01:42 AM
How do you make hidden text like this then when you click the link the text pops out (To see what I mean click Splash Stuff)
I looked but i found nothing in from my query
http://www.``````````````
-Mods move the thread if you'd like I really didn't know what type of thing it was so i put it in General!-
starlet
05-25-2003, 01:52 AM
Just view my source...
in the head
<script language=javascript>
var state = 'hidden';
function showhide(layer_ref) {
if (state == 'visible') {
state = 'hidden';
}
else {
state = 'visible';
}
if (document.all) { //IS IE 4 or 5 (or 6 beta)
eval( "document.all." + layer_ref + ".style.visibility = state");
}
if (document.layers) { //IS NETSCAPE 4 or below
document.layers[layer_ref].visibility = state;
}
if (document.getElementById && !document.all) {
maxwell_smart = document.getElementById(layer_ref);
maxwell_smart.style.visibility = state;
}
}
//
</script>
where you want the 'splash stuff' link to appear
<div style="position: absolute; top: 267px; width: 75px; left: 600px;" align=left id=splashstuff> <a href="javascript:// "onclick="showhide('agent99');"> Splash Stuff </a>
Where you want the things to appear after clicking the link
<div style="position:absolute; top:350px; left:0px; width: 770px;
visibility:hidden;" id=agent99>stuff</div>
Just change the positioning etc as desired.
Cherchezlafemme
05-25-2003, 01:53 AM
Thanks! starlet I really appreciated that!