Buy Sell Discuss UK Domain Names at AcornDomains.co.uk Domain Sponsor

Today's Drop Dates are: 19-02-2012 or 26-02-2012   All times are GMT. The time now is 01:41:10 PM.
Domain Name Sales Domain Software Calculate UK Domain Drop Dates Domain Registration NameDrive Domain Parking Subscribe to our Domains For Sale newsletter
Go Back   Domain Forum Acorn Domains Buy Sell Auction UK Domains > Website Design and Promotion > Website Design
Connect with Facebook

Website Design Discuss web design

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 16-11-2009, 03:39:45 PM     #1 (permalink)

 
Join Date: Jul 2008
Location: Lancashire
Posts: 161
slowhost is on a distinguished road

menu

hello all how do i add a very basic drop down menu to a site? i have already got a menu in place on my site, i just want to add a drop down list on one off the links on my menu..

is there a snippet of text i can just add in the html code or is it a massive job changing loads of things around?

thanks
slowhost is offline  
Old 16-11-2009, 03:44:14 PM     #2 (permalink)

 
Nick's Avatar
 
Join Date: Apr 2008
Posts: 730
Nick has a reputation beyond reputeNick has a reputation beyond reputeNick has a reputation beyond reputeNick has a reputation beyond reputeNick has a reputation beyond reputeNick has a reputation beyond reputeNick has a reputation beyond reputeNick has a reputation beyond reputeNick has a reputation beyond reputeNick has a reputation beyond reputeNick has a reputation beyond repute

Just done one myself

Code:
<select onchange="window.open(this.options[this.selectedIndex].value,'_top')" style="width:215px;">
    <option>-- Navigation --</option>
    <option value="/page1.html">page1</option>
    <option value="/page2.html">page2</option>
    <option value="/page3.html">page3</option>
    <option value="/page4.html">page4</option>
    <option value="/page5.html">page5</option>
</select>
Nick is offline  
Old 16-11-2009, 03:44:24 PM     #3 (permalink)

 
Systreg's Avatar
 
Join Date: Oct 2008
Location: County Cork Republic of Ireland
Posts: 4,181
Systreg has a reputation beyond reputeSystreg has a reputation beyond reputeSystreg has a reputation beyond reputeSystreg has a reputation beyond reputeSystreg has a reputation beyond reputeSystreg has a reputation beyond reputeSystreg has a reputation beyond reputeSystreg has a reputation beyond reputeSystreg has a reputation beyond reputeSystreg has a reputation beyond reputeSystreg has a reputation beyond repute

Domain Trader Rating:
(100% / 106)
Have a look at the javascript drop down menus on Dynamic Drive DHTML(dynamic html) & JavaScript code library

[edit]

An html one within a box I use on some of my sites:

Code:
<table width="160" cellpadding="1" cellspacing="0" border="1">
<tr>
<td bgcolor="#ffffff" align="center"><b>Free Anti Spyware</b></td>
</tr>
<tr>
<td>

<select name="menu" onChange="popup=window.open('','popup');popup.location=this.options[this.selectedIndex].value;" style="width: 160; font-family:'Arial'; color:#ffffff; background-color:#0F338A; font-size:8pt;">
<option value=>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Choose Below</option>
<option value="http://www.">Link Description</option>
<option value="http://www.">Link Description</option>
<option value="http://www.">Link Description</option>
</select>
</td>
</tr>
</table>

Last edited by Systreg; 16-11-2009 at 03:49:43 PM.
Systreg is online now  
Old 16-11-2009, 03:54:55 PM     #4 (permalink)

 
Join Date: Jul 2008
Location: Lancashire
Posts: 161
slowhost is on a distinguished road

thanks for that but i just cannot seam to figure it out, everytime i add anything it just completly messes up the page, i`m just trying to add a drop down thing for more options on the page in my sig but only want it on one part...

i have been trying all day and still cant do it... thick as f@@k
slowhost is offline  
Old 16-11-2009, 04:55:09 PM     #5 (permalink)

 
accelerator's Avatar
 
Join Date: Apr 2005
Location: England
Posts: 4,919
accelerator has a reputation beyond reputeaccelerator has a reputation beyond reputeaccelerator has a reputation beyond reputeaccelerator has a reputation beyond reputeaccelerator has a reputation beyond reputeaccelerator has a reputation beyond reputeaccelerator has a reputation beyond reputeaccelerator has a reputation beyond reputeaccelerator has a reputation beyond reputeaccelerator has a reputation beyond reputeaccelerator has a reputation beyond repute

If it makes you feel better I try not to use them because they often aren't great for site indexing, and I'm not overkeen on them from a usability standpoint either.

Rgds
accelerator is online now  
Old 16-11-2009, 09:07:10 PM     #6 (permalink)
Member
 
Join Date: Sep 2009
Posts: 67
retired_member8 has a reputation beyond reputeretired_member8 has a reputation beyond reputeretired_member8 has a reputation beyond reputeretired_member8 has a reputation beyond reputeretired_member8 has a reputation beyond reputeretired_member8 has a reputation beyond reputeretired_member8 has a reputation beyond reputeretired_member8 has a reputation beyond reputeretired_member8 has a reputation beyond reputeretired_member8 has a reputation beyond reputeretired_member8 has a reputation beyond repute

Keep to these simple principles. File: Link

HTML

HTML Code:
<ul id="nav">
	<li><a href="">LED GU10 Home</a></li> 
    <li><a href="">LED Light Bulbs</a> 
      <ul> 
        <li><a href="">Link</a></li> 
        <li><a href="">Link</a></li> 
      </ul> 
    </li> 
    <li><a href="">Buy LED Light Bulbs</a> 
      <ul> 
        <li><a href="">Link</a></li> 
        <li><a href="">Link</a></li> 
      </ul> 
    </li>
    <li><a href="">Buy other products</a> 
      <ul> 
        <li><a href="">Link</a></li> 
        <li><a href="">Link</a></li> 
        <li><a href="">Link</a></li> 
      </ul> 
    </li> 
    <li><a href="">Site Map</a>  
    <li><a href="">Contact Us</a> 
    <li><a href="">Link to us</a> 
</ul>
CSS

Code:
ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
ul li {
	position: relative;
	float: left;
        width: 100px;

}
li ul {
	position: absolute;
	top: 30px;
	display: none;
}
ul li a {
	display: block;
	text-decoration: none;
	line-height: 20px;
	color: #fff;
	padding: 5px;
	background: #333;
	margin: 0 2px;
}

ul li a:hover { background: #333; }
li:hover ul, li.over ul { display: block; }
JS for IE6 Error

Code:
startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}
window.onload=startList;

Last edited by retired_member8; 16-11-2009 at 10:36:57 PM.
retired_member8 is offline  
Closed Thread



Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Domain Name Community Replies Last Post
My Flash Menu in progress pbryd Website Reviews 6 29-06-2009 06:51:16 AM
menu glitch stender Forum News & Feedback 13 12-01-2009 12:16:13 PM
Need someone to turn a regular css navigation menu into a drop down menu bensd Website Design 3 11-06-2007 06:56:56 PM
Nominet takes domain tasting off the menu - ZDNet UK RSS Domain Name News 0 07-08-2006 06:59:42 PM
Free CSS Menu Designs admin Website Design 0 03-06-2006 12:18:44 PM

75% off Domains at Network Solutions®.


All times are GMT. The time now is 01:41:10 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0 RC 2
All content on Acorn Domains is member generated and is not moderated before posting. All content is viewed and used by you at your own risk and AD does not warrant the accuracy or reliability of any of the information. The views expressed are those of the individual contributors and not necessarily those of AD. Please contact us to report any issues or send a PM to "Admin".