tothemax Posted October 14, 2007 Share Posted October 14, 2007 Greetings: I’ve been working on this one problem for about eight hours with no luck; I’m almost positive the answer is going to be something small and stupid and I’m going to hit my head when it’s all done. I am trying to replace on popout java menu for another one. The menu basically is connected to mysql database which makes for easy updating. However, when I try and implement it into my actual site, it won’t show up. Here is the menu working (obviously the colors will change) http://hotshoesforcoolpeople.net/menutest.php and here is the same code except put into the main website. http://Hotshoesforcoolpeople.net On the left is where the menu should be. I get two errors actually: One is an “Object expected” error, and the other: “menu is undefined,” which leads me to believe somewhere it’s not picking up the code. Any ideas and suggestions? Thank you for your time. Quote Link to comment Share on other sites More sharing options...
emehrkay Posted October 14, 2007 Share Posted October 14, 2007 Do yourself a favor and get firefox 2.0 and install the firebug plugin - it took me right to your error <script language="JavaScript" type="text/JavaScript"> is missing </script> the popup menu seems to be working the shopping cart page, did you notice that? Quote Link to comment Share on other sites More sharing options...
tothemax Posted October 14, 2007 Author Share Posted October 14, 2007 Do yourself a favor and get firefox 2.0 and install the firebug plugin - it took me right to your error <script language="JavaScript" type="text/JavaScript"> is missing </script> the popup menu seems to be working the shopping cart page, did you notice that? I just installed that, thank you. It's so weird. I basically built it up again into an html file. http://hotshoesforcoolpeople.net/word.html And it works perfectly, but as soon as I use the same code in the template, it doesn't work at all. Quote Link to comment Share on other sites More sharing options...
emehrkay Posted October 14, 2007 Share Posted October 14, 2007 Well it must be something in the html Quote Link to comment Share on other sites More sharing options...
tothemax Posted October 14, 2007 Author Share Posted October 14, 2007 Well it must be something in the html Can anyone see anything wrong in here? This is the code I'm using; I can't find anything wrong. <?php session_cache_limiter('none'); session_start(); ob_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Blah</title> <link rel="stylesheet" type="text/css" href="../style.css"/> <link rel="stylesheet" href="menu2.css"> <?php include "GenerateItems.php"?> <script language="JavaScript" src=" menu.js"></script> <script language="JavaScript" src=" menu_items.js"></script> <script language="JavaScript" src=" menu_tpl2.js"></script> <script language="JavaScript" src=" swap.js"></script> <script language="JavaScript" type="text/JavaScript"> <script type="text/javascript" language="javascript1.2" src="../popouttext.js"></script> </head> <body> <body onload="MM_preloadImages('../images/tabov.gif','../images/menu/cartov.gif','../images/menu/searchov.gif','../images/menu/contactov.gif','../images/menu/aboutov.gif','../images/menu/affiliatesov.gif')"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td rowspan="2" bgcolor="#D2D2CA" width="136"><img src="../images/logo.gif" width="136" height="85" alt=""/></td> <td bgcolor="#D2D2CA"><img src="../images/clearpixel.gif" width="17" height="1" alt=""/></td> <td bgcolor="#D2D2CA" width="100%" valign="bottom"><img src="../images/name.gif" width="231" height="34" alt=""/></td> <td bgcolor="#D2D2CA" align="right" width="164"><img src="../images/topphoto.gif" width="164" height="66" alt=""/></td> </tr> <tr> <td width="26"><img src="../images/topleft.gif" width="17" height="26" alt=""/></td> <td class="topbg" align="right" valign="bottom" colspan="2"><a href="../index.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image26','','../images/tabov.gif',1)"><img name="Image26" border="0" src="../images/tab.gif" width="80" height="16" alt=""/></a><a href="../about.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image53','','../images/menu/aboutov.gif',1)"><img name="Image53" border="0" src="../images/menu/about.gif" width="80" height="16" alt=""/></a><a href="../affiliate.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image54','','../images/menu/affiliatesov.gif',1)"><img name="Image54" border="0" src="../images/menu/affiliates.gif" width="80" height="16" alt=""/></a><a href="../cart.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image41','','../images/menu/cartov.gif',1)"><img name="Image41" border="0" src="../images/menu/cart.gif" width="80" height="16" alt=""/></a><a href="../search.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image42','','../images/menu/searchov.gif',1)"><img name="Image42" border="0" src="../images/menu/search.gif" width="80" height="16" alt=""/></a><a href="../index.php#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image43','','../images/menu/contactov.gif',1)"><img name="Image43" border="0" src="../images/menu/contact.gif" width="80" height="16" alt=""/></a></td> </tr> <tr> <td colspan="4" bgcolor="#AAAAAF"><img src="../images/clearpixel.gif" width="1" height="1" alt=""/></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td class="dark" align="center" bgcolor="#F7F7F4" valign="top" height="145"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="145" valign="top"> <?php include "vsadmin/db_conn_open.php" ?> <?php include "vsadmin/inc/languagefile.php" ?> <?php include "vsadmin/includes.php" ?> <?php include "vsadmin/inc/incfunctions.php" ?> <div id="L1" style="position:relative; left:0px; top:0px; "> <script language="JavaScript"> new menu (MENU_ITEMS, MENU_POS2);</script> </div></td> </tr> </table> <br/> <p><img src="../images/avocado.jpg" width="110" height="110" alt=""/></p> <p><img src="../images/leftline.gif" width="136" height="1" alt=""/></p> <p>Company name<br/> Address<br/> Telephone nos.</p> <p><img src="../images/leftline.gif" width="136" height="1" alt=""/></p> </td> <td valign="top" class="leftbg" width="26"> </td> <td valign="top" width="100%"><br/> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="17"> </td> <td valign="top" width="100%"> <!-- #BeginEditable "Body" --> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="3"><img src="../images/welcome.gif" width="120" height="16" alt=""/></td> </tr> <tr bgcolor="#AAAAAF"> <td colspan="3"><img src="../images/clearpixel.gif" width="1" height="1" alt=""/></td> </tr> <tr> <td class="leftbg"><img src="../images/clearpixel.gif" width="23" height="8" alt=""/></td> <td width="100%" valign="top"> <table width="98%" border="0" cellspacing="2" cellpadding="2" align="center"> <tr> <td> Content goes here.</td> </tr> </table> </td> <td width="23" class="rightbg"><img src="../images/clearpixel.gif" width="23" height="1" alt=""/></td> </tr> <tr> <td width="23" rowspan="2"><img src="../images/innerbottomleft.gif" width="23" height="23" alt=""/></td> <td width="100%"><img src="../images/clearpixel.gif" width="1" height="22" alt=""/></td> <td width="23" rowspan="2"><img src="../images/br.gif" width="23" height="23" alt=""/></td> </tr> <tr> <td width="1" bgcolor="#AAAAAF" height="1"><img src="../images/clearpixel.gif" width="1" height="1" alt=""/></td> </tr> </table> <!-- #EndEditable --> <br/> </td> <td width="17"> </td> </tr> <tr> <td width="17"> </td> <td class="smaller" align="center" width="100%"> <p class="smaller" ><a href="../index.php">home</a> | <a href="../categories.php">products</a> | <a href="../about.php">about us</a> | <a href="../affiliate.php">affiliates</a> | <a href="../search.php">search</a> | <a href="../cart.php">checkout</a> | <a href="mailto:#">e-mail</a></p> <p class="smaller"><a href="http://www.ecommercetemplates.com/" target="_blank">Shopping cart software</a> Copyright 2005 ecommercetemplates.com</p> </td> <td width="17"> </td> </tr> </table> </td> <!-- #BeginEditable "Right" --> <td class="smaller" valign="top" width="135" align="center"><!-- #BeginLibraryItem "/Library/right.lbi" --> <br/> <br/> <img src="../images/apples.jpg" width="110" height="110" alt=""/><br/> This is where you can add some info about a product or service on your site<br/> <img src="../images/leftline.gif" width="136" height="1" alt=""/><br/> <br/> <img src="../images/bananas.jpg" width="110" height="110" alt=""/> <br/> This is where you can add some info about a product or service on your site<br/> <img src="../images/leftline.gif" width="136" height="1" alt=""/><br/> <br/> <img src="../images/kiwis.jpg" width="110" height="110" alt=""/> <br/> This is where you can add some info about a product or service on your site<br/> <!-- #EndLibraryItem --></td> <!-- #EndEditable --> </tr> </table> </body> </html> </div> dsdsd </body> Quote Link to comment Share on other sites More sharing options...
tothemax Posted October 14, 2007 Author Share Posted October 14, 2007 I've fixed it. The solution is too embarrassing to make mention of. THANK YOU! Quote Link to comment Share on other sites More sharing options...
emehrkay Posted October 14, 2007 Share Posted October 14, 2007 I've fixed it. The solution is too embarrassing to make mention of. THANK YOU! hahaha I'd like to know Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.