[java] 간단한 메뉴 스크립터
<head>
<script type=”text/javascript”>
<!– 태그인넷 www.tagin.net
function startmenu()
{
menu0.style.display = “none”;
menu1.style.display = “none”;
menu2.style.display = “none”;
menu3.style.display = “none”;
}
function menu0func()
{
if(menu0.style.display == “none”)
{
startmenu();
menu0.style.display = “block”;
}
else
{
startmenu();
}
}
function menu1func()
{
if(menu1.style.display == “none”)
{
startmenu();
menu1.style.display = “block”;
}
else
{
startmenu();
}
}
function menu2func()
{
if(menu2.style.display == “none”)
{
startmenu();
menu2.style.display = “block”;
}
else
{
startmenu();
}
}
function menu3func()
{
if(menu3.style.display == “none”)
{
startmenu();
menu3.style.display = “block”;
}
else
{
startmenu();
}
}
// End –>
</script>
</head>
<BODY onLoad=”javascript:startmenu();”>
<table align=”center”>
<tr><td align=”left” valign=”top”>
▒ <a href=”javaScript:menu0func()”><span style=”background-color:rgb(255,255,204);”>태그인넷</span></a><span style=”background-color:rgb(255,255,204);”>
</span><div id=”menu0″>
– <a href=’http://tagin.net/’>태그인넷</a><br>
– <a href=’http://tagin.net/’>태그인넷</a><br>
– <a href=’http://tagin.net/’>태그인넷</a><br>
</div>
<br>
▒ <a href=”javaScript:menu1func()”><span style=”background-color:rgb(255,255,204);”>태그인넷</span></a>
<div id=”menu1″>
– <a href=’http://tagin.net/’>태그인넷</a><br>
– <a href=’http://tagin.net/’>태그인넷</a><br>
– <a href=’http://tagin.net/’>태그인넷</a><br>
</div>
<br>
▒<span style=”background-color:rgb(255,255,204);”> <a href=”javaScript:menu2func()”>태그인넷</a>
</span><div id=”menu2″>
– <a href=’http://tagin.net’>태그인넷</a><br>
– <a href=’http://tagin.net’>태그인넷</a><br>
– <a href=’http://tagin.net’>태그인넷</a><br>
– <a href=’http://tagin.net’>태그인넷</a><br>
– <a href=’http://tagin.net’>태그인넷</a><br>
</div>
<br>
▒ <a href=”javaScript:menu3func()”><span style=”background-color:rgb(255,255,204);”>태그인넷</span></a>
<div id=”menu3″>
– <a href=’http://tagin.net/’>태그인넷</a><br>
– <a href=’http://tagin.net/’>태그인넷</a><br>
– <a href=’http://tagin.net/’>태그인넷</a><br>
– <a href=’http://tagin.net/’>태그인넷</a><br>
</div>
</td></tr>
</table>