ID: 495
Viewed: 4476
Added: Oct 19, 2002
Version: unknown
Snippet uploaded by: snippet
Written By: Unknown
Demo: Sorry, no demo
Thank you for your vote. Please wait...
It appears you already voted for this snippet
It appears your vote value was empty
Ever wanted to have a menu popup or become visible when you click on a link? well here it is. Neat little code for the something special.
Browsers: IE5+
Browsers: IE5+
<!---Head--->
none
<!---Body--->
<SCRIPT language=JavaScript type=text/javascript>
// hide text from MSIE browsers
with (document)
{
write("<STYLE TYPE='text/css'>");
if (navigator.appName == 'Microsoft Inte\r\net Explorer')
{
write(".hiddentext {display:none} .outline {cursor:hand; text-decoration:none;");
}
write("</STYLE>");
}
// show text on click for MSIE browsers
function expandIt(whichpcl)
{
if (navigator.appName == 'Microsoft Inte\r\net Explorer')
{
whichpcl.style.display = (whichpcl.style.display == "block" ) ? "none" : "block";
}
else retu\r\n;
}
// end hiding from old browsers -->
</SCRIPT>
******************************************
<B class=outline onclick="expandIt(pcl3); retu\r\n false">
<a href="#" class="type1">Cool Links</a></B>
<DIV class=hiddentext id=pcl3>
<table>
<tr>
<td align=left valign=top width=125>
<a href="#" class="type2">Link 1</a><br>
<a href="#" class="type2">Links 2</a><br>
<a href="#" class="type2">Links 3</a><br>
<a href="#" class="type2">Links 4</a>
</td>
</tr>
</table>
</DIV>
No Comments to show
Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.
Adding your comment. Please wait...
Thanks for adding your comment!. After further review it will be added.
There was a problem adding your comment. Please try again.
Please complete all the fields in the form before sending.