Welcome to WebmasterWorld Guest from 54.147.44.93

Forum Moderators: open

Message Too Old, No Replies

help with tree menu

     

mcnika

8:42 am on May 22, 2008 (gmt 0)

5+ Year Member



Hi all.

This is a code of a tree menu.
I need to know what meens

onClick="javascript:{show(tr2,2); return false;}

why is needed "return false" and what is javascript:{........

Please reply me as soon as possible.Thanks a lot.

<html>
<head>
</head>
<body bgcolor="#F2F2F2">
<SCRIPT language=javascript>
function show(sec, n){
if (sec.style.display=="none")
sec.style.display="block";
else
sec.style.display="none";

}
</SCRIPT>
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left">
<A onClick="javascript:{show(tr1,1); return false;}" href=""><STRONG>Image Configurations</STRONG></A>
<DIV id=tr1 style="DISPLAY: none; padding-left:50px;" align=justify>
Upload<br />
View Images<br />
</DIV>
</td>
</tr>
<tr>
<td align="left">
<A onClick="javascript:{show(tr2,2); return false;}" href=""><STRONG>Section</STRONG></A>
<DIV id=tr2 style="DISPLAY: none; padding-left:50px;" align=justify>
Add<br />
View All Section<br />
</DIV>
</td>
</tr>
</table>
</body>
</html>

 

Featured Threads

Hot Threads This Week

Hot Threads This Month