HTML - Slow Drop Down Menu's ! ? ?
Hi ,
I've been wondering why my simple HTML website has slower drop down menu's at the top at LaptopBackpacks.com It takes a moment for the menu to drop down at the top ..Mens | Womens | Youth Compared to my competitor who's drop down menu's drop now instantly after hovering over them. What causes this slower speed? Suggestions? Similar TutorialsHello, I have a simple html form drop down list as a quick reference and link to pages on my site. It is not nested with subcategories, however there are still hundreds of options in the list, and it is causing the page load time to slow considerably. When the list is created dynamically it is painfully slow. I tried to speed things up by making a static html file of the code and using INSERTFILE on my pages. This helped a little, but not enough to suit me. Is there a way to cache this code snippet, or something like that, to speed up the load time? Thanks! Hai everybody.. I want to create a html drop down menu. I created a menu using template toolkit, but i want to create this in html code.Caan anyone help. Pls find here what i done. { title = 'Enterprise Name' type = 'select' dropdown_field = arr_Ent_NameId (This is the array which contains all the data i.e enterprise name. name = 'ent_id' } How can i do this in html. In the select and value button , how can i use this array Hi All, This is my first post so please be kind I am currently trying to create 3 drop down menus in a top frame going across the top of the page. This is my first time trying to do anything like this and have run into a few issues i cant get my head around nor find an answer on the net. The code i have so far is this: _______________________________________________________________ <HTML> <HEAD> <TITLE> Test</TITLE> <BODY> </BODY> <SCRIPT TYPE="text/javascript"> <!-- function dropdown(mySel) { var myWin, myVal; myVal = mySel.options[mySel.selectedIndex].value; if(myVal) { if(mySel.form.target)myWin = parent[mySel.form.target]; else myWin = window; if (! myWin) return true; myWin.location = myVal; } return false; } //--> </SCRIPT> </HEAD> <div align="center"> <table border="1" cellpadding="4" width=500> <FORM METHOD=POST onSubmit="return dropdown(this.gourl)" TARGET=MAIN > <SELECT NAME="gourl"> <OPTION VALUE="">Choose a Destination... <OPTION VALUE="C:\Users\Desktop\a.htm">User Manuals </SELECT> <INPUT TYPE=SUBMIT VALUE="Go"> </FORM> <FORM METHOD=POST onSubmit="return dropdown(this.gourl)" TARGET=MAIN > <SELECT NAME="gourl"> <OPTION VALUE="">Choose a Destination... <OPTION VALUE="C:\Users\Desktop\a.htm">User Manuals </SELECT> <INPUT TYPE=SUBMIT VALUE="Go"> </FORM> <FORM METHOD=POST onSubmit="return dropdown(this.gourl)" TARGET=MAIN > <SELECT NAME="gourl"> <OPTION VALUE="">Choose a Destination... <OPTION VALUE="C:\Users\Desktop\a.htm">User Manuals </SELECT> <INPUT TYPE=SUBMIT VALUE="Go"> </FORM> </HTML> _______________________________________________________________ 1) When selecting 'User Manuals' on the drop down box, it opens up a new window and directs me back to the home page? 2) i am unsure as to how you place the drop down boxes side by side aligned at the top of the page? Is anyone able to help me out here? Cheers in advance Hello im looking for a script for my website that offers the following I have an image link, that I want to rollover to another image (Of the text glowing) then have a drop down menu pop up below it that can have other menus drop down from that one.) Right now Im trying a Javascript that I found for free on the internet but i cant seem to get it working. http://javascript-array.com/scripts/...rop_down_menu/ But I cant get it to be a rollover image instead of a text box. and it doesnt support multiple drop downs like this one: http://javascript-array.com/scripts/..._down_menu/?sb plus they want you to pay for it, and im looking for a free solution. Any help appreciated, thanks. I have a drop down menu on my page, and I want to change the background color of the box from white to match the rest of the page, how do I do this. Thanks Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="language" content="english"> <meta http-equiv="Content-Style-Type" content="text/css"> <title>Welcome to my Home Page</title> <script language="JavaScript" type="text/javascript"> ////The source for this script came from http://allwebco-templates.com/support/S_menus_dropdown.htm//// ///For the Game,I changed the back ground picture. I realize it's not JS/// <!-- function land(ref, target) { lowtarget=target.toLowerCase(); if (lowtarget=="_self") {window.location=loc;} else {if (lowtarget=="_top") {top.location=loc;} else {if (lowtarget=="_blank") {window.open(loc);} else {if (lowtarget=="_parent") {parent.location=loc;} else {parent.frames[target].location=loc;}; }}} } function jump(menu) { ref=menu.choice.options[menu.choice.selectedIndex].value; splitc=ref.lastIndexOf("*"); target=""; if (splitc!=-1) {loc=ref.substring(0,splitc); target=ref.substring(splitc+1,1000);} else {loc=ref; target="_self";}; if (ref != "") {land(loc,target);} } //--> <!-- /// The JS below is for the date and time. and i got the sorce from http://www.re-es.org/ /// var day_names = new Array(7) day_names[0] = "Sunday" day_names[1] = "Monday" day_names[2] = "Tuesday" day_names[3] = "Wednesday" day_names[4] = "Thursday" day_names[5] = "Friday" day_names[6] = "Saturday" var month_names = new Array(12) month_names[0] = "January" month_names[1] = "February" month_names[2] = "March" month_names[3] = "April" month_names[4] = "May" month_names[5] = "June" month_names[6] = "July" month_names[7] = "August" month_names[8] = "September" month_names[9] = "October" month_names[10] = "November" month_names[11] = "December" date_now = new Date() day_value = date_now.getDay() date_text = day_names[day_value] month_value = date_now.getMonth() date_text += " " + month_names[month_value] date_text += " " + date_now.getDate() date_text += ", " + date_now.getFullYear() minute_value = date_now.getMinutes() if (minute_value < 10) { minute_value = "0" + minute_value } hour_value = date_now.getHours() if (hour_value == 0) { greeting = "Good Morning " time_text = " at " + (hour_value + 12) + ":" + minute_value + " AM" } else if (hour_value < 12) { greeting = "Good Morning " time_text = " at " + hour_value + ":" + minute_value + " AM" } else if (hour_value == 12) { greeting = "Good Afternoon " time_text = " at " + hour_value + ":" + minute_value + " PM" } else if (hour_value < 17) { greeting = "Good Afternoon " time_text = " at " + (hour_value - 12) + ":" + minute_value + " PM" } else { greeting = "Good Evening" time_text = " at " + (hour_value - 12) + ":" + minute_value + " PM" } document.write(greeting + " Today is " + date_text + time_text) //--> </script> <link rel="stylesheet" type="text/css" href="css/main.css"> </head> <body> <div id="container"> <p><img id="banner" src="images/banner.gif" alt="banner"></p><hr color="#FF0000"></p> <ul id="nav"> <li><form action="#" method="post"> <select name="choice" size="1" onChange="jump(this.form)" class="dropdown"> <option value="index.html" selected>Home</option> <option value="scripts_developed.html">Scripts Developed</option> <option value="best_practices.html">Best practices for JavaScript coding</option> <option value="ajax.html">AJAX</option> <option value="JavaScript_frustrations.html">JavaScript frustrations & Javascript Game</option> </select> </form> </li> </ul> <div id="content"></div> </div> <table width="1050" border="0" align="center"> <tr> <td align="center"><p><img src="images/logo1.gif" width="300" height="300" hspace="30"><img src="images/logo3.gif" width="300" height="300"><img src="images/logo2.gif" width="300" height="300"></p> <p><img src="images/logo4.gif" width="300" height="300" hspace="30"><img src="images/logo5.gif" width="300" height="300"><img src="images/logo6.gif" width="300" height="300"></p></td> </tr> </table> <p> </p> <p> </p> </body> </html> Id like to do a drop down menu similar to there's... is there any simple way of doing this?! Hey, Kinda new to this so bare with me. Im using Trellian web page to do some updating on our companies' website and they just asked me to make up a sort of parts catalog for our inventory we have here. I thought the best way for the person visiting the website to find the parts they need is to have drop down menus.Ive been trying so hard to make this but i just keep failing. This is what i want to do. The first one would ask "Make..." they would click that and scroll down the list to find the Make of their machine. Once they click their machine, another drop down menu would appear underneath of that asking the model and the menu would contain all the models associated with the make of the machine. And i want to have another one appear under that once they click on the model. Is there anything or any place where i can find a nice tutorial on how to make this dream come true.....? something like this http://www.wengers.com/Parts/TractorParts.aspx Hey guys, I am very new to web design, however have some basic knowledge of html. I am designing a simple site which needs a drop down menu tab for only ONE TAB in the nav bar. See the following site for an example: http://www.dynamicdrive.com/dynamici...wntabsdemo.htm Again I need a drop down menu for only one tab. How do I achieve this? Hi, Basically i have an index page with two frame, a navigation frame for the top and a main frame for the information, i have a drop down menu in the navigation frame. But the problem is, the drop down menu cant all bee seen when it drops over the main frame. Does anyone know a solution to this problem, i tried using an Iframe instead of normal frames, but that leaves a big gap between the end of the drop down menu and the start of the information. I have also tried using the <div> tags this also didnt help, i was wondering if there is a way to set the order in which the frames are displayed,so the navigation frame is displayed over the main frame. Any help would be great. Thanks for your time. mmarab. So, I am new to html, but I want my site to have a drop down menu, much like that of IBM's. http://www.ibm.com/us/en/sandbox/ver2/ Is this even possible with HTML? If so, where do I start? Regards, YahtzeeFish I have the following drop down menu. HTML Code: <form> <select name="menu" style="font-family:'Arial';color:#FFFFFF;background-color:#000000;font-size:10pt;"> <option value="no link no action">title of menu</option> <option value="url 1">link 1</option> <option value="url 2">link 2</option> <option value="url 3">link 3</option> <option value="url 4">link 4</option> </select> <input type="button" onClick="location=this.form.menu.options[this.form.menu.selectedIndex].value;" value="GO" style="font-family:'Arial';color:#FFFFFF;background-color:#000000;font-size:10pt;"> </form> Here is a screen capture of what the menu looks like. It's at this point I want no action to take place when "go" is clicked. As it is now (above code) it refreshes current page. My question is how do I change this so that the first "option" has no action when chosen and then "go" is clicked. As is is right now it refreshes the current page being that between the quotes <option value=" HERE ">title of menu</option> there isn't a link because I don't want this option to do anything. Basically when the drop down menu shows "title of menu" and I click on "go" I want nothing to happen instead of a refresh. Good day guys... is there anyone who can share about drop down menu's Hey guys, I need help making a drop down menu. I know how to make a basic one, but this is what I need... I want to have 4 drop down menus, with about 4 choices in each one. Under them I need a 'Submit" button. Basically, I need it so that any combination of the 4 choices in the 4 menus will open a specific page. For instance, lets say in menu 1 I pick the word "cat". In menu 2, I pick the word "dog". In menu 3 I pick the word "car". In menu 4 I pick the word "tree". Once I click submit, a page with a picture of a cat, dog, tree and car would open up. (I would provide all the possible different pictures). So how would one do this? Any help is GREATLY appreciated, thanks! Dear HTML Experts, I need your help, I would love to have a dropdown menu. Which drop out of a image? Like when your mouse is at the image, the menu shows up vertically? Thanks Hi all, I can't for the life of me get the submenus to work. Here is my basic code and style sheet. How and where do I get a sub menu working on the navigation to display when you hover over it. I.E. hovering over 'News' displays sub menu of 'today', 'tomorrow'... Hello All, I am new to coding and looking to self teach myself with the help of this forum so I can design my own web site. I am looking for the best solution for searching a database. The database will for example contain USA States and Cities with the final result being an item or thing etc. that the search criteria points to. Let's say for example I want to know where all the Dentists are in the State of Maryland. I found this example below and It creates the option to choose a state however how do you make it accept your choice once chosen and go to the next webpage for the next lookup or whatever you decide to have it do next. I guess what I am asking is how do you make a Search or Go button take you to your drop down search criteria. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head> <meta http-equiv="Content-Type" content="text/html; charset=unicode"> <meta content="MSHTML 6.00.2900.3429" name="GENERATOR"></head> <body><select name="state" size="1"> <option value="NA" selected="">Select A State</option> <option value="Blank">--------------------</option> <option value="AL">Alabama</option> <option value="AK">Alaska</option> <option value="AZ">Arizona</option> <option value="AR">Arkansas</option> <option value="CA">California</option> </select> </body></html> Thanks for any assistance... I am sure there is a simple answer to this Hi All! I would like to make a drop down box with all the departments of my company. Basically the user would select a dept and without refreshing or opening a new page the information would appear below. I have seen this before using a database but is there a way to do it without? I want to create a drop down bar using images, like the one on this page: http://www.teamtalk.com/ I already have the images which I want to use. I have scoured the internet for how to do it and tried many, many tutorials but I don't understand how to do it. Please help! Ok, well I got it working perfectly on Firefox 2... I checked it on IE and the second drop down list is way off track... I put in the javascript hack given in the tutorial... but I had to tweak the code they gave a bit... basically to work with my layout. http://www.htmldog.com/articles/suckerfish/dropdowns/ Any advice on how to fix any cross browser difficulties would be great, thanks! http://www.runescapeemporium.com/newlayout This is my code in html. Everytime i open, the menu is expanded, how do i make it contract when i first open up?? Many many thanks for your help, this really is a tough one for me.. HTML Code: <ul id="menu"> <li>WORK <ol> <li><a href="work/prada.html" onclick="return loadIframe('ifrm', this.href)" >Prada I</a></li> <li><a href="work/bloom.htm" onclick="return loadIframe('ifrm', this.href)" >Prada II</a></li> <li><a href="work/willow1.htm" onclick="return loadIframe('ifrm', this.href)" >The Willow Tree</a> </li> <li><a href="work/haaz.htm" onclick="return loadIframe('ifrm', this.href)" >HAAZ</a></li> <li><a href="work/bloom.htm" onclick="return loadIframe('ifrm', this.href)" >Dive</a></li> <li><a href="work/secret.htm" onclick="return loadIframe('ifrm', this.href)" >Secret</a></li> <li><a href="work/bloom.htm" onclick="return loadIframe('ifrm', this.href)" >Sink</a></li> <li><a href="work/succubus.htm" onclick="return loadIframe('ifrm', this.href)" >Succubus</a></li> <li><a href="work/tigerlily.htm" onclick="return loadIframe('ifrm', this.href)" >Tigerlily</a></li> <li><a href="work/treat.htm" onclick="return loadIframe('ifrm', this.href)" >Treat</a></li> <li><a href="work/taciturn.htm" onclick="return loadIframe('ifrm', this.href)" >Taciturn</a></li> <li><a href="work/wine.htm" onclick="return loadIframe('ifrm', this.href)" >Wine</a></li> </ol> </li> <li>KINDLING <ol> <li><a href="work/maze.htm" onclick="return loadIframe('ifrm', this.href)" >Maze</a></li> <li><a href="work/hive.htm" onclick="return loadIframe('ifrm', this.href)" >Hive</a></li> <li><a href="work/cannibal.htm" onclick="return loadIframe('ifrm', this.href)" >Cannibal</a> </li> <li><a href="work/hide.htm" onclick="return loadIframe('ifrm', this.href)" >Hide</a></li> <li><a href="work/swan.htm" onclick="return loadIframe('ifrm', this.href)" >Swan</a></li> <li><a href="work/bats.htm" onclick="return loadIframe('ifrm', this.href)" >Bats</a></li> <li><a href="work/willowhorse.htm" onclick="return loadIframe('ifrm', this.href)" >Willow Horse</a></li> <li><a href="work/fountain1.htm" onclick="return loadIframe('ifrm', this.href)" >Fountain 1</a></li> <li><a href="work/fountain2.htm" onclick="return loadIframe('ifrm', this.href)" >Fountain 2</a></li> <li><a href="work/toymaker.htm" onclick="return loadIframe('ifrm', this.href)" >Toymaker</a></li> <li><a href="work/shattered.htm" onclick="return loadIframe('ifrm', this.href)" >Shattered</a></li> <li><a href="work/ballad.htm" onclick="return loadIframe('ifrm', this.href)" >Ballad</a></li> <li><a href="work/vanity.htm" onclick="return loadIframe('ifrm', this.href)" >Vanity</a></li> <li><a href="work/femalearabesque.htm" onclick="return loadIframe('ifrm', this.href)" >Female Arabesque</a></li> <li><a href="work/malearabesque.htm" onclick="return loadIframe('ifrm', this.href)" >Male Arabesque</a></li> <li><a href="work/harebindle.htm" onclick="return loadIframe('ifrm', this.href)" >Hare/Bindle</a></li> <li><a href="work/catchbatter.htm" onclick="return loadIframe('ifrm', this.href)" >Catch/Batter</a></li> <li><a href="work/jungle.htm" onclick="return loadIframe('ifrm', this.href)" >Jungle</a></li> <li><a href="work/hound.htm" onclick="return loadIframe('ifrm', this.href)" >Hound</a></li> <li><a href="work/mer.htm" onclick="return loadIframe('ifrm', this.href)" >Mer</a></li> <li><a href="work/X.htm" onclick="return loadIframe('ifrm', this.href)" >X</a></li> <li><a href="work/K.htm" onclick="return loadIframe('ifrm', this.href)" >K</a></li> <li><a href="work/dahlia.htm" onclick="return loadIframe('ifrm', this.href)" >Dahlia</a></li> <li><a href="work/head.htm" onclick="return loadIframe('ifrm', this.href)" >Head</a></li> <li><a href="work/kindling-installation1.htm" onclick="return loadIframe('ifrm', this.href)" >Installation 1</a></li> <li><a href="work/kindling-installation2.htm" onclick="return loadIframe('ifrm', this.href)" >Installation 2</a></li> <li><a href="work/kindling-installation3.htm" onclick="return loadIframe('ifrm', this.href)" >Installation 3</a></li> <li><a href="work/kindling-installation4.htm" onclick="return loadIframe('ifrm', this.href)" >Installation 4</a></li> </ol> </li> <li>RECESS <ol> <li><a href="recess/crayoneater.htm" onclick="return loadIframe('ifrm', this.href)">Crayoneater</a></li> <li><a href="recess/horse.htm" onclick="return loadIframe('ifrm', this.href)">Horse</a></li> <li><a href="recess/trike.html" onclick="return loadIframe('ifrm', this.href)">Trike</a> </li> <li><a href="recess/flip.htm" onclick="return loadIframe('ifrm', this.href)">Flip</a></li> <li><a href="recess/supertron.htm" onclick="return loadIframe('ifrm', this.href)">Supertron</a></li> <li><a href="recess/pr01.html" onclick="return loadIframe('ifrm', this.href)">Homeopathic</a></li> <li><a href="recess/pr02.html" onclick="return loadIframe('ifrm', this.href)">Pickup</a></li> <li><a href="recess/pr03.html" onclick="return loadIframe('ifrm', this.href)">Flush</a></li> <li><a href="recess/pr04.html" onclick="return loadIframe('ifrm', this.href)">Wrestle</a></li> <li><a href="recess/pr05.html" onclick="return loadIframe('ifrm', this.href)">Chemistry</a></li> <li><a href="recess/pr06.html" onclick="return loadIframe('ifrm', this.href)">Mascot</a> </li> <li><a href="recess/pr07.html" onclick="return loadIframe('ifrm', this.href)">Confection</a> </li> <li><a href="recess/PRjump.html" onclick="return loadIframe('ifrm', this.href)">Jump</a> </li> <li><a href="recess/swing.html" onclick="return loadIframe('ifrm', this.href)">Swing</a> </li> <li><a href="recess/PRwave.html" onclick="return loadIframe('ifrm', this.href)">Wave</a> </li> <li><a href="recess/PRweep.html" onclick="return loadIframe('ifrm', this.href)">Weep</a> </li> <li><a href="recess/pink.html" onclick="return loadIframe('ifrm', this.href)">Pink</a> </li> </ol> </li> <li>SKETCH <ol> <li><a href="sketchbook/2009_mole_0.htm" onclick="return loadIframe('ifrm', this.href)">2009 Mole</a></li> <li><a href="sketchbook/2008_moleB_1.htm" onclick="return loadIframe('ifrm', this.href)">2008 Mole B</a></li> <li><a href="sketchbook/2008_mole.htm" onclick="return loadIframe('ifrm', this.href)">2008 Mole A</a></li> <li><a href="sketchbook/2008B_1.htm" onclick="return loadIframe('ifrm', this.href)">2008 Green</a></li> <li><a href="sketchbook/2007_1.htm" onclick="return loadIframe('ifrm', this.href)">2007 Blue</a></li> <li><a href="sketchbook/2006_1.htm" onclick="return loadIframe('ifrm', this.href)">2006 Black</a></li> <li><a href="sketchbook/2003B_1.htm" onclick="return loadIframe('ifrm', this.href)">2003 B</a></li> <li><a href="sketchbook/2003A_1.htm" onclick="return loadIframe('ifrm', this.href)">2003 A</a></li> <li><a href="sketchbook/2002B_1.htm" onclick="return loadIframe('ifrm', this.href)">2002 B</a></li> <li><a href="sketchbook/2002A_1.htm" onclick="return loadIframe('ifrm', this.href)">2002 A</a></li> <li><a href="sketchbook/2001C_1.htm" onclick="return loadIframe('ifrm', this.href)">2001 C</a></li> <li><a href="sketchbook/2001B_1.htm" onclick="return loadIframe('ifrm', this.href)">2001 B</a></li> <li><a href="sketchbook/2001_1.htm" onclick="return loadIframe('ifrm', this.href)">2001 A</a></li> </ol> </li> <li>BOUND <ol> <li><a href="books/pr1_1.htm" onclick="return loadIframe('ifrm', this.href)">PR vol. 1</a></li> <li><a href="books/pr2_1regular.htm" onclick="return loadIframe('ifrm', this.href)">PR vol. 2</a></li> <li><a href="books/pr2_1limited.htm" onclick="return loadIframe('ifrm', this.href)">PR vol. 2 Limited</a></li> <li><a href="books/fablescovers1.htm" onclick="return loadIframe('ifrm', this.href)">Fables: Covers</a></li> <li><a href="books/xoxo_1.htm" onclick="return loadIframe('ifrm', this.href)">XOXO</a></li> </ol> </li> <li>INFO <ol> <li><a href="biography.htm" onclick="return loadIframe('ifrm', this.href)">Biography</a></li> <li><a href="cv.htm" onclick="return loadIframe('ifrm', this.href)">CV</a></li> <li><a href="contact.htm" onclick="return loadIframe('ifrm', this.href)">Contact</a></li> </ol> </li> <li><a href="http://www.processrecess.com" target="_blank">BLOG</a> </li> </ul> |