kc3
Aug 16th 2005, 11:25 pm
Okay, I'm supposed to make a very simple tour with HTML and Javascript, well, here is the code to the JavaScript-
var main_menu = new MENU("top");
main_menu.entry( 1, 20, "Main Building", "index.html" );
main_menu.entry( 2, 15, "Gift Shop", "gift_shop.html" );
main_menu.mainTop = 20;
main_menu.mainLeft = 160;
main_menu.BGColor = "./images/bg.jpg";
main_menu.floatMenu = false;
main_menu.create();
And the code to the small HTML file-
<html>
<head><title>Konkolville Motel Online Tour</title></head>
<body>
<table width='700' align='center' border='1'><tr>
<td align='center'><script language='javascript' src='menu.js'></script></td>
</tr><tr><td align='center'>
<img src='./images/carol-1.jpg'></img>
<br>Welcome to the Konkolville Motel
</td></tr></table>
</body>
</html>
All the pictures exist and everything but there is no menu being shown in index.html, what did I do wrong?
var main_menu = new MENU("top");
main_menu.entry( 1, 20, "Main Building", "index.html" );
main_menu.entry( 2, 15, "Gift Shop", "gift_shop.html" );
main_menu.mainTop = 20;
main_menu.mainLeft = 160;
main_menu.BGColor = "./images/bg.jpg";
main_menu.floatMenu = false;
main_menu.create();
And the code to the small HTML file-
<html>
<head><title>Konkolville Motel Online Tour</title></head>
<body>
<table width='700' align='center' border='1'><tr>
<td align='center'><script language='javascript' src='menu.js'></script></td>
</tr><tr><td align='center'>
<img src='./images/carol-1.jpg'></img>
<br>Welcome to the Konkolville Motel
</td></tr></table>
</body>
</html>
All the pictures exist and everything but there is no menu being shown in index.html, what did I do wrong?