Click to See Complete Forum and Search --> : Slide-down menu
maestro
05-04-2003, 08:35 AM
I am trying to implement this slide-down menu on one of my pages - it would really be perfect - but I can't get it to work in Frontpage. The program always claims there is an object missing in one of the last lines of the code - - -. Can anybody help??
The slide-down menu is located at
http://javascript.internet.com/navigation/slide-down-menu.html
khalidali63
05-04-2003, 09:06 AM
The resource you pointed to in the link above does not seem to work with niether NS6+ Nor IE6.
I bet it was made for <6 browsers,
Try some other script
maestro
05-04-2003, 09:25 AM
Thanks for answering - but I don't quite understand anyway, because the demo of the menu works just fine in IE6 on my computer, and when I try to open the demo in FP it also works fine in the prewiew mode -- ???
khalidali63
05-04-2003, 09:55 AM
I have IE6 adn win2k Pro...oh heck..I'll take a closer look
hang tight
khalidali63
05-04-2003, 10:03 AM
lol...my fault..it does work...
maestro
05-04-2003, 10:09 AM
Thanks for your efforts. The problem is - and I'm sure you have got it right - the demo works fine but when I try to copy and paste the code into a FP-page the program tells me an item is expected in one of the last lines --
Ola (from Norway)
khaki
05-04-2003, 10:36 AM
I can't get it to work in Frontpage Hi
maestro...
the real question is:
can you get it to work on a web page?
if so... don't worry about the way FP veiws it. After all... you are designing/developing for the web... not FP.
But if you can't get it to work for the web...
then you didn't copy/paste correctly...
because I got it to work using both Notepad and Dreamweaver.
And although i didn't look at the JS file itself, i think that the code is poorly and/or sloppily constructed... since it does not have closing table tags and instructs you to paste all of the code into the <body>... when in fact the <style> needs to go into the <head>.... so who knows :rolleyes:
Seems to works though... so I'm not sure what FP's issue with it is all about.
Here is the test version that works for me.
Put it into FP and see if it still throws errors:
;) k
<html>
<head>
<title></title>
<SCRIPT LANGUAGE="JavaScript">
function goToURL() { history.go(-1); }
</script>
<style>
.menu
{
position:relative;
background-color:gold;
border:1px solid darkblue;
width:150;
font-size:11px;
font-family:verdana;
font:bold;
position:absolute;
cursor:se-resize;
}
.item_panel
{
width:150;
border-left:1px solid darkblue;
border-right:1px solid darkblue;
clip:rect(0,150,0,0);
position:absolute;
}
.item_panel a
{
text-decoration:none;
color:black;
cursor:hand;
}
.item
{
background-color:lightyellow;
width:148;
font-size:10px;
font-family:verdana;
}
</style>
</head>
<BODY>
<script language="JavaScript" src="http://javascript.internet.com/navigation/sliding_menu.js"></script>
<table width=150><tr><td>
<script language="JavaScript">
var Link = new Array();
Link[0] = "0|Home";
Link[1] = "1|Home|http://www.javascriptsource.com|";
Link[2] = "1|More Scripts|http://www.javascript.com|";
Link[3] = "1|Contact|http://www.javascriptsource.com/contact-us.html|";
Link[4] = "1|Traffic|http://www.thecounter.com|";
Link[5] = "0|Access";
Link[6] = "1|Login|Login.asp|";
Link[7] = "1|Logout|Logout.asp|"
Link[8] = "0|Scripts";
Link[9] = "1|Asp|http://www.javascriptsource.com|";
Link[10] = "1|JavaScript|http://www.javascriptsource.com|";
Link[11] = "0|Links";
Link[12] = "1|JavaScript sites|http://www.javascripts.com|blank";
startup(4);
</script>
</td></tr></table>
</body>
</html>
maestro
05-04-2003, 10:44 AM
Eureka - you just saved my day!
Thanks a lot!
Best wishes
Ola