krissysstickers Posted April 25, 2010 Share Posted April 25, 2010 Hi there, Thank you in advance for looing/trying to help. I must be overlooking something simple as I can't find the error despite looking for hours. On my website (for example www.i-love-stickers.com/signup.php) the left menu is missing, in only some places, the blue line that separates the menu items. This occurs once in the menu and a few times in the sub pop up menu... (between help and feed back, etc.) and also the line at the bottom of each menu/sub menu is grey and not blue like it should be. I am not sure what is happening or what error I have made - does anyone know? THe code for the left nav menu is: ***** <html> <head> <title>Menu</title> </head> <body><script language="JavaScript1.2" src="popouttext.js"> </script> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="211" valign="top"> <SCRIPT LANGUAGE="php"> include "./vsadmin/db_conn_open.php"; include "./vsadmin/includes.php"; include "./vsadmin/inc/languagefile.php"; include "./vsadmin/inc/incfunctions.php"; </SCRIPT> <!-- #EndEditable --> <script language="JavaScript1.2"> mymenu = new POTMenu // Defines the size of the main menu items, width and height mymenu.mainmenuitemsize(135,16) // Defines the size of the sub menu items, width and height mymenu.submenuitemsize(250,16) // Defines the position of the sub menus in relation to the parent mymenu.submenuplacing(0,0) // Images that make up the border of the main menu. Optional. mymenu.mainborderimages("images/greypixel.gif","images/greypixel.gif","images/greypixel.gif") // Corners of the images that make up the main menu border. mymenu.mainbordercorners("images/greypixel.gif","images/greypixel.gif","images/greypixel.gif") // Left width, right width and height of the top and bottom of the border mymenu.mainborderdimensions(1,1,1) // These lines are for the sub menu borders mymenu.subborderimages("images/greypixel.gif","images/greypixel.gif","images/greypixel.gif") mymenu.subbordercorners("images/greypixel.gif","images/greypixel.gif","images/greypixel.gif") mymenu.subborderdimensions(1,1,1) // Main menu cell color mymenu.mainmenucolor("#F7F7F4") // Sub menu cell color mymenu.submenucolor("#F7F7F4") // Centers text for Netscape 4.7 mymenu.netscapeadjust(3,3) // The image that is show between the main menu items mymenu.definemainspacer("images/greypixel.gif",1) // The image that is show between the sub menu items mymenu.definesubspacer("images/greypixel.gif",1) // Do you want to "hide" (SELECT menus, OBJECT tags) when in the menu mymenu.hideobjects(true,true) // This line is required here mymenu.startMenu() // Define the main menu. mymenu.addMenu("home","HOME","http://www.i-love-stickers.com/index.php") mymenu.addMenu("main","MAIN","#") mymenu.addMenu("stickerclub","STICKER CLUB","http://www.i-love-stickers.com/signup.php") mymenu.addMenu("products","PRODUCTS","http://www.i-love-stickers.com/signup.php") mymenu.addMenu("help","HELP","http://www.i-love-stickers.com/help.php") mymenu.addMenu("feedback","FEEDBACK","http://www.i-love-stickers.com/feedback.php") mymenu.addMenu("yourletters","TESTIMONIALS", "http://www.i-love-stickers.com/yourletters.php") mymenu.addMenu("contact","CONTACT","http://www.i-love-stickers.com/contact.php") mymenu.addMenu("links","LINKS","links.php") mymenu.addMenu("articles","ARTICLES","http://www.i-love-stickers.com/articles.php") mymenu.addMenu("wholesale","WHOLESALE ORDERS","http://www.i-love-stickers.com/wholesale.php") // This line is required after the main menu is defined. mymenu.showMainMenu() // Define the sub menus mymenu.addSubMenu("main", "", "ABOUT US", "http://www.i-love-stickers.com/about.php") mymenu.addSubMenu("main", "", "HELP", "http://www.i-love-stickers.com/help.php") mymenu.addSubMenu("main", "", "SIGN UP", "http://www.i-love-stickers.com/signup.php") mymenu.addSubMenu("main", "", "CHARITY", "http://www.i-love-stickers.com/donatestickers.php") mymenu.addSubMenu("main", "", "SITEMAP", "http://www.i-love-stickers.com/sitemap.php") mymenu.addSubMenu("main", "", "CONTACT US", "http://www.i-love-stickers.com/contact.php") mymenu.addSubMenu("main", "", "EMAIL", "mailto:[email protected]") // Delete these 7 lines and the corresponding lines above if you // don't want an automatically generated popout menu. <?php $menuprestr = ""; $menupoststr = ""; include "./vsadmin/inc/incmenu.php"; ?> mymenu.addSubMenu("stickerclub", "", "SIGN UP FOR STICKER CLUBS", "http://www.i-love-stickers.com/signup.php") mymenu.addSubMenu("stickerclub", "", "EXTRA STICKERS", "http://www.i-love-stickers.com/stickers.php") mymenu.addSubMenu("stickerclub", "", "STICKER ALBUMS", "http://www.i-love-stickers.com/albums.php") mymenu.addSubMenu("products", "", "GIRLS", "http://www.i-love-stickers.com/girls.php") mymenu.addSubMenu("products", "", "BOYS", "http://www.i-love-stickers.com/boys.php") mymenu.addSubMenu("products", "", "PRESCHOOLERS", "http://www.i-love-stickers.com/preschoolers.php") mymenu.addSubMenu("products", "", "TEENS & ADULTS", "http://www.i-love-stickers.com/teensandadults.php") mymenu.addSubMenu("products", "", "STICKER BOOKS", "http://www.i-love-stickers.com/albums.php") mymenu.addSubMenu("products", "", "WHOLESALE STICKERS", "http://www.i-love-stickers.com/wholesale.php") mymenu.addSubMenu("products", "", "THEMED STICKERS", "http://www.i-love-stickers.com/stickers.php") mymenu.addSubMenu("products", "", "STICKERS", "http://www.i-love-stickers.com/stickers.php") mymenu.addSubMenu("help", "", "HELP", "http://www.i-love-stickers.com/help.php") mymenu.addSubMenu("help", "", "FAQ", "http://www.i-love-stickers.com/faq.php") mymenu.addSubMenu("help", "", "PRIVACY POLICY", "http://www.i-love-stickers.com/privacypolicy.php") mymenu.addSubMenu("help", "", "SITEMAP", "http://www.i-love-stickers.com/sitemap.php") mymenu.addSubMenu("feedback", "", "TESTIMONIALS", "http://www.i-love-stickers.com/yourletters.php") mymenu.addSubMenu("feedback", "", "CONTACT US", "http://www.i-love-stickers.com/contact.php") mymenu.addSubMenu("yourletters", "", "TESTIMONIALS", "http://www.i-love-stickers.com/yourletters.php") mymenu.addSubMenu("contact", "", "CONTACT US", "http://www.i-love-stickers.com/contact.php") mymenu.addSubMenu("links", "", "LINKS", "http://www.i-love-stickers.com/links.php") mymenu.addSubMenu("articles", "", "ARTICLES", "http://www.i-love-stickers.com/articles.php") mymenu.addSubMenu("articles", "", "How to make Reusable Stickers", "http://www.i-love-stickers.com/howtomakereusablestickers.php") mymenu.addSubMenu("articles", "", "How to make Stickers", "http://www.i-love-stickers.com/howtomakestickers.php") mymenu.addSubMenu("articles", "", "How Scratch-n-Sniff Stickers Work", "http://www.i-love-stickers.com/howdoscratchandsniffwork.php") mymenu.addSubMenu("articles", "", "Create Scrapbooking Scenes", "http://www.i-love-stickers.com/createascene.php") mymenu.addSubMenu("articles", "", "Personalized Gift Wrapping with Stickers", "http://www.i-love-stickers.com/stickergiftwrap.php") mymenu.addSubMenu("articles", "", "How to make a Switch Plate with Stickers", "http://www.i-love-stickers.com/stickerswitchplate.php") mymenu.addSubMenu("articles", "", "How to make Trinket Boxes with Stickers", "http://www.i-love-stickers.com/stickertrinketbox.php") // This line is required after all menu definitions are finished mymenu.showMenu() </script> </td> </tr> </table> </body> </html> ********** Thank you again for the help in advance! Link to comment https://forums.phpfreaks.com/topic/199633-help-with-menu/ Share on other sites More sharing options...
Pikachu2000 Posted April 25, 2010 Share Posted April 25, 2010 It looks fine with Mac OS X 10.5.8(PPC) with Safari 4.0.5. All the menu items have their dividing lines. Link to comment https://forums.phpfreaks.com/topic/199633-help-with-menu/#findComment-1047844 Share on other sites More sharing options...
darkfreaks Posted April 25, 2010 Share Posted April 25, 2010 i ran your thing through a validator. hopefully it will fix some of the issues. if you keep experiencing issues let us know. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta name="generator" content="HTML Tidy for Linux (vers 6 November 2007), see www.w3.org"> <title>Menu</title> </head> <body> <script language="JavaScript1.2" src="popouttext.js" type="text/javascript"> </script> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="211" valign="top"><script language="php"> include "./vsadmin/db_conn_open.php"; include "./vsadmin/includes.php"; include "./vsadmin/inc/languagefile.php"; include "./vsadmin/inc/incfunctions.php"; </script> <!-- #EndEditable --> <script language="JavaScript1.2" type="text/javascript"> mymenu = new POTMenu // Defines the size of the main menu items, width and height mymenu.mainmenuitemsize(135,16) // Defines the size of the sub menu items, width and height mymenu.submenuitemsize(250,16) // Defines the position of the sub menus in relation to the parent mymenu.submenuplacing(0,0) // Images that make up the border of the main menu. Optional. mymenu.mainborderimages("images/greypixel.gif","images/greypixel.gif","images/greypixel.gif") // Corners of the images that make up the main menu border. mymenu.mainbordercorners("images/greypixel.gif","images/greypixel.gif","images/greypixel.gif") // Left width, right width and height of the top and bottom of the border mymenu.mainborderdimensions(1,1,1) // These lines are for the sub menu borders mymenu.subborderimages("images/greypixel.gif","images/greypixel.gif","images/greypixel.gif") mymenu.subbordercorners("images/greypixel.gif","images/greypixel.gif","images/greypixel.gif") mymenu.subborderdimensions(1,1,1) // Main menu cell color mymenu.mainmenucolor("#F7F7F4") // Sub menu cell color mymenu.submenucolor("#F7F7F4") // Centers text for Netscape 4.7 mymenu.netscapeadjust(3,3) // The image that is show between the main menu items mymenu.definemainspacer("images/greypixel.gif",1) // The image that is show between the sub menu items mymenu.definesubspacer("images/greypixel.gif",1) // Do you want to "hide" (SELECT menus, OBJECT tags) when in the menu mymenu.hideobjects(true,true) // This line is required here mymenu.startMenu() // Define the main menu. mymenu.addMenu("home","HOME","http://www.i-love-stickers.com/index.php") mymenu.addMenu("main","MAIN","#") mymenu.addMenu("stickerclub","STICKER CLUB","http://www.i-love-stickers.com/signup.php") mymenu.addMenu("products","PRODUCTS","http://www.i-love-stickers.com/signup.php") mymenu.addMenu("help","HELP","http://www.i-love-stickers.com/help.php") mymenu.addMenu("feedback","FEEDBACK","http://www.i-love-stickers.com/feedback.php") mymenu.addMenu("yourletters","TESTIMONIALS", "http://www.i-love-stickers.com/yourletters.php") mymenu.addMenu("contact","CONTACT","http://www.i-love-stickers.com/contact.php") mymenu.addMenu("links","LINKS","links.php") mymenu.addMenu("articles","ARTICLES","http://www.i-love-stickers.com/articles.php") mymenu.addMenu("wholesale","WHOLESALE ORDERS","http://www.i-love-stickers.com/wholesale.php") // This line is required after the main menu is defined. mymenu.showMainMenu() // Define the sub menus mymenu.addSubMenu("main", "", "ABOUT US", "http://www.i-love-stickers.com/about.php") mymenu.addSubMenu("main", "", "HELP", "http://www.i-love-stickers.com/help.php") mymenu.addSubMenu("main", "", "SIGN UP", "http://www.i-love-stickers.com/signup.php") mymenu.addSubMenu("main", "", "CHARITY", "http://www.i-love-stickers.com/donatestickers.php") mymenu.addSubMenu("main", "", "SITEMAP", "http://www.i-love-stickers.com/sitemap.php") mymenu.addSubMenu("main", "", "CONTACT US", "http://www.i-love-stickers.com/contact.php") mymenu.addSubMenu("main", "", "EMAIL", "mailto:[email protected]") // Delete these 7 lines and the corresponding lines above if you // don't want an automatically generated popout menu. <?php $menuprestr = ""; $menupoststr = ""; include "./vsadmin/inc/incmenu.php"; ?> mymenu.addSubMenu("stickerclub", "", "SIGN UP FOR STICKER CLUBS", "http://www.i-love-stickers.com/signup.php") mymenu.addSubMenu("stickerclub", "", "EXTRA STICKERS", "http://www.i-love-stickers.com/stickers.php") mymenu.addSubMenu("stickerclub", "", "STICKER ALBUMS", "http://www.i-love-stickers.com/albums.php") mymenu.addSubMenu("products", "", "GIRLS", "http://www.i-love-stickers.com/girls.php") mymenu.addSubMenu("products", "", "BOYS", "http://www.i-love-stickers.com/boys.php") mymenu.addSubMenu("products", "", "PRESCHOOLERS", "http://www.i-love-stickers.com/preschoolers.php") mymenu.addSubMenu("products", "", "TEENS & ADULTS", "http://www.i-love-stickers.com/teensandadults.php") mymenu.addSubMenu("products", "", "STICKER BOOKS", "http://www.i-love-stickers.com/albums.php") mymenu.addSubMenu("products", "", "WHOLESALE STICKERS", "http://www.i-love-stickers.com/wholesale.php") mymenu.addSubMenu("products", "", "THEMED STICKERS", "http://www.i-love-stickers.com/stickers.php") mymenu.addSubMenu("products", "", "STICKERS", "http://www.i-love-stickers.com/stickers.php") mymenu.addSubMenu("help", "", "HELP", "http://www.i-love-stickers.com/help.php") mymenu.addSubMenu("help", "", "FAQ", "http://www.i-love-stickers.com/faq.php") mymenu.addSubMenu("help", "", "PRIVACY POLICY", "http://www.i-love-stickers.com/privacypolicy.php") mymenu.addSubMenu("help", "", "SITEMAP", "http://www.i-love-stickers.com/sitemap.php") mymenu.addSubMenu("feedback", "", "TESTIMONIALS", "http://www.i-love-stickers.com/yourletters.php") mymenu.addSubMenu("feedback", "", "CONTACT US", "http://www.i-love-stickers.com/contact.php") mymenu.addSubMenu("yourletters", "", "TESTIMONIALS", "http://www.i-love-stickers.com/yourletters.php") mymenu.addSubMenu("contact", "", "CONTACT US", "http://www.i-love-stickers.com/contact.php") mymenu.addSubMenu("links", "", "LINKS", "http://www.i-love-stickers.com/links.php") mymenu.addSubMenu("articles", "", "ARTICLES", "http://www.i-love-stickers.com/articles.php") mymenu.addSubMenu("articles", "", "How to make Reusable Stickers", "http://www.i-love-stickers.com/howtomakereusablestickers.php") mymenu.addSubMenu("articles", "", "How to make Stickers", "http://www.i-love-stickers.com/howtomakestickers.php") mymenu.addSubMenu("articles", "", "How Scratch-n-Sniff Stickers Work", "http://www.i-love-stickers.com/howdoscratchandsniffwork.php") mymenu.addSubMenu("articles", "", "Create Scrapbooking Scenes", "http://www.i-love-stickers.com/createascene.php") mymenu.addSubMenu("articles", "", "Personalized Gift Wrapping with Stickers", "http://www.i-love-stickers.com/stickergiftwrap.php") mymenu.addSubMenu("articles", "", "How to make a Switch Plate with Stickers", "http://www.i-love-stickers.com/stickerswitchplate.php") mymenu.addSubMenu("articles", "", "How to make Trinket Boxes with Stickers", "http://www.i-love-stickers.com/stickertrinketbox.php") // This line is required after all menu definitions are finished mymenu.showMenu() </script></td> </tr> </table> </body> </html> Link to comment https://forums.phpfreaks.com/topic/199633-help-with-menu/#findComment-1047848 Share on other sites More sharing options...
krissysstickers Posted April 25, 2010 Author Share Posted April 25, 2010 Thank you both for your fast help! I tried pasting the code that had been validated and running it on my site and instead of fixing the lines it removed the menu from every page (and the content of the page other than the header/footer/etc. was blank). Does anyone else have an idea of what I did wrong please such that I can fix those missing lines. I am completelty out of ideas to try! Thank you again in advance! Link to comment https://forums.phpfreaks.com/topic/199633-help-with-menu/#findComment-1047937 Share on other sites More sharing options...
darkfreaks Posted April 27, 2010 Share Posted April 27, 2010 try running your javascript through JS Lint and Javascript Lint. (google it) Link to comment https://forums.phpfreaks.com/topic/199633-help-with-menu/#findComment-1049107 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.