i have taken this code directly from a text i have. in fact, i have seen the code on the web in one of my searches. i get the menu to appear, but not a pull-down. it also loads with an "error on page", object expected, line 30, column 1. any help appreciated. ty.
<code>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<html xmlns="<head>
<title>Menu</title>
<script language="JavaScript" type="text/javascript">
<!--
stdBrowser = (document.getElementById) ? true : false
function toggleMenu(currElem,nextPos) {
menuObj= (stdBrowser) ? document.getElementById(currElem).style : eval("document." + currElem)
if (toggleMenu.arguments.length == 1 {
nextPos = (parseInt(menuObj.top) == -5) ? -90 : -5
}
menuObj.top = (stdBrowser) ? nextPos + "px" : nextPos
}
-->
</script>
<style type="text/css">
<!--
.menu {font: 12pt Times New Roman,serif; background-color:#aead99; layer-background-color:#aead99;top:-90px}
#mainMenu {left:10px; width:70px;}
a {text-decoration:none; color:black}
a:hover {background-color:navy; color:white}
-->
</style>
<body bgcolor="white">
<div id="mainMenu" class="menu" onmouseover="toggleMenu('mainMenu', -5)" onmouseout="toggleMenu('mainMenu', -90)"><br />
<a href=" />
<a href=" />
<a href=" />
<a href=" />
<a href=" />
<a href="javascript:toggleMenu('mainMenu')">Search</a>
</div>
</body>
</html>
</code>
i had this post originally in an asp.net forum, but now i realize my problem is js specific. ty again.
<code>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<html xmlns="<head>
<title>Menu</title>
<script language="JavaScript" type="text/javascript">
<!--
stdBrowser = (document.getElementById) ? true : false
function toggleMenu(currElem,nextPos) {
menuObj= (stdBrowser) ? document.getElementById(currElem).style : eval("document." + currElem)
if (toggleMenu.arguments.length == 1 {
nextPos = (parseInt(menuObj.top) == -5) ? -90 : -5
}
menuObj.top = (stdBrowser) ? nextPos + "px" : nextPos
}
-->
</script>
<style type="text/css">
<!--
.menu {font: 12pt Times New Roman,serif; background-color:#aead99; layer-background-color:#aead99;top:-90px}
#mainMenu {left:10px; width:70px;}
a {text-decoration:none; color:black}
a:hover {background-color:navy; color:white}
-->
</style>
<body bgcolor="white">
<div id="mainMenu" class="menu" onmouseover="toggleMenu('mainMenu', -5)" onmouseout="toggleMenu('mainMenu', -90)"><br />
<a href=" />
<a href=" />
<a href=" />
<a href=" />
<a href=" />
<a href="javascript:toggleMenu('mainMenu')">Search</a>
</div>
</body>
</html>
</code>
i had this post originally in an asp.net forum, but now i realize my problem is js specific. ty again.