hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Design and Content : Drop Down Menu...
Reply

Web Design and Content Subjects include, HTML, graphics, editors, CSS, Flash, graphics creation, placing of ads, ad serv companies, copyright, content and nearly anything else design related. Also talk about businesses that provide design services. If you link to your site, you must post in Web Site Reviews.
Forum Jump

Drop Down Menu...

Reply Post New Thread In Web Design and Content Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 12-07-2005, 08:48 AM
sabian1982 sabian1982 is offline
Aspiring Evangelist
 
Join Date: Nov 2005
Location: Nottingham, UK
Posts: 408

Drop Down Menu...


Im in the process of updating http://happydazevw.voisd.com which has main flash navigation. Im not so worried about the use of images but id like to have a similar thing but using html code/javascript/php/dhtml... something thats looks nice and simple and isnt flash so its better for SEO. I need to quite simply have a fold out style menu.

Any ideas how to do it?

Reply With Quote


Sponsored Links
  #2  
Old 12-07-2005, 10:08 AM
the_pm the_pm is offline
Community Liaison 2.0
 
Join Date: May 2004
Location: Akron/Canton, Ohio (USA)
Posts: 11,115
Quote:
using html code/javascript/php/dhtml... something thats looks nice and simple and isnt flash so its better for SEO.
JavaScript/DOM/DHTML is not better for SEO. Generally, it's about as bad as Flash. It's not quite as bad (some spiders can sort of decipher it), but it's bad.

__________________
Studio1337___̴ı̴̴̡̡̡ ̡͌l̡̡̡ ̡͌l̡*̡̡ ̴̡ı̴̴̡ ̡̡͡|̲̲̲͡͡͡ ̲▫̲͡ ̲̲̲͡͡π̲̲͡͡ ̲̲͡▫̲̲͡͡ ̲|̡̡̡ ̡ ̴̡ı̴̡̡ ̡͌l̡̡̡̡.__Web Design

Reply With Quote
  #3  
Old 12-07-2005, 11:00 AM
Patrick Patrick is offline
Stairway To Hosting
 
Join Date: Mar 2003
Location: Canada
Posts: 7,959
Take a look at http://www.udm4.com , it's a great drop down menu for only $75 to use commercially!

__________________

SYN Hosting - Affordable, Reliable & Secure Web Hosting - Proudly In Business Since 2006!

Host Unlimited Websites -/- cPanel -/- Softaculous -/- CloudFlare -/- SSH Access -/- 24/7 Tech Support
http://www.synhosting.com - Need a Canadian budget managed dedicated server? Click here for details.

Reply With Quote
Sponsored Links
  #4  
Old 12-07-2005, 11:22 AM
sabian1982 sabian1982 is offline
Aspiring Evangelist
 
Join Date: Nov 2005
Location: Nottingham, UK
Posts: 408
Pat H, id perfer to do it myself using a tutorial or something...

the_pm, if its in dhtml or javascript at least the content and links can be spidered... unlike flash which is hard or not possible to index due to the nature of flash.

There must be a simple way of doing drop out menus even if its just <li> html items some css and some javascript!!!

Reply With Quote
  #5  
Old 12-07-2005, 11:35 AM
the_pm the_pm is offline
Community Liaison 2.0
 
Join Date: May 2004
Location: Akron/Canton, Ohio (USA)
Posts: 11,115
Quote:
the_pm, if its in dhtml or javascript at least the content and links can be spidered
"Can be" and "will be" are two different things

But to answer your next question, yes doing drop downs that consist of hidden lists and DOM is not only possible, it's my preferred method.

http://www.iwdn.net/showthread.php?p=35712#post35712
The pertinent code
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Menus</title>
<style type="text/css">
body { margin:0 ; padding:0 }
ul, li { list-style:none ; margin:0 ; padding:0 }
#menus { border:1px solid #000 ; background:#900 ; color:#FFF }
#menus li { border-right:1px solid #000 ; float:left ; width:250px }
#menus li a, #submenu1 li a, #submenu2 li a { background:#900 ; color:#FFF ; display:block ; margin:0 ; padding:0 ; text-align:center ; text-decoration:none ; width:100% }

#submenu1, #submenu2 { border-right:1px solid #000 ; border-left:1px solid #000 ; position:absolute ; visibility:hidden }
#submenu1 li, #submenu2 li { border-bottom:1px solid #000 }
#submenu1 { width:250px ; z-index:1 }
#submenu2 { margin-left:251px ; width:250px ; z-index:2 }

.clearfix:after { content:"." ; display:block ; height:0 ; clear:both ; visibility:hidden }
.clearfix { display:inline-table }
/* Hides from IE-mac \*/
* html .clearfix { height:1% }
.clearfix {display:block }
/* End hide from IE-mac */
</style>
<script type="text/javascript">
function clr() {
document.getElementById('submenu1').style.visibility = "hidden";
document.getElementById('submenu2').style.visibility = "hidden";
}
function toggle(foo) {
document.getElementById(foo).style.visibility = "visible";
}
function timeclr(bar) {
setTimeout('clr()',1000);
}
</script>
</head>

<body>

<div id="menus" class="clearfix">
<ul>
<li><a href="section1.html" onmouseover="clr();toggle('submenu1');return false;">Section 1</a></li>
<li><a href="section2.html" onmouseover="clr();toggle('submenu2');return false;">Section 2</a></li>
</ul>
</div>

<ul id="submenu1" onmouseout="timeclr('submenu1');">
<li><a href="section1_page1.html">Section 1, Page 1</a></li>
<li><a href="section1_page2.html">Section 1, Page 2</a></li>
<li><a href="section1_page3.html">Section 1, Page 3</a></li>
</ul>

<ul id="submenu2" onmouseout="timeclr('submenu2');">
<li><a href="section2_page1.html">Section 2, Page 1</a></li>
<li><a href="section2_page2.html">Section 2, Page 2</a></li>
<li><a href="section2_page3.html">Section 2, Page 3</a></li>
</ul>

<h1>This is my page</h1>

<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

</body>
</html>
I used a timed clear as the cheap way out in the above script (it was a little two second toss-together). Generally, I prefer to use an onmouseover event handler to deal with clearing the menus, and attributing it to nearby objects.

__________________
Studio1337___̴ı̴̴̡̡̡ ̡͌l̡̡̡ ̡͌l̡*̡̡ ̴̡ı̴̴̡ ̡̡͡|̲̲̲͡͡͡ ̲▫̲͡ ̲̲̲͡͡π̲̲͡͡ ̲̲͡▫̲̲͡͡ ̲|̡̡̡ ̡ ̴̡ı̴̡̡ ̡͌l̡̡̡̡.__Web Design

Reply With Quote
  #6  
Old 12-07-2005, 12:27 PM
furqan_sindhu furqan_sindhu is offline
Newbie
 
Join Date: Dec 2005
Posts: 21
yoh man !

what is the language that has been used in above code to display drop down menus !

Reply With Quote
  #7  
Old 12-07-2005, 12:31 PM
the_pm the_pm is offline
Community Liaison 2.0
 
Join Date: May 2004
Location: Akron/Canton, Ohio (USA)
Posts: 11,115
A little basic CSS (nothing fancy there), and some basic DOM, which toggles the important CSS elements on and off. It may look like a mess when you see it on the screen, but turn it into a Web page and dissect it a bit. It's really not all that hard to figure out.

__________________
Studio1337___̴ı̴̴̡̡̡ ̡͌l̡̡̡ ̡͌l̡*̡̡ ̴̡ı̴̴̡ ̡̡͡|̲̲̲͡͡͡ ̲▫̲͡ ̲̲̲͡͡π̲̲͡͡ ̲̲͡▫̲̲͡͡ ̲|̡̡̡ ̡ ̴̡ı̴̡̡ ̡͌l̡̡̡̡.__Web Design

Reply With Quote
  #8  
Old 12-08-2005, 10:03 AM
gobeyond gobeyond is offline
WHT Addict
 
Join Date: Oct 2005
Location: Minneapolis, MN
Posts: 149
Search engines can't follow the links inside Flash or Javascript. Try CSS instead.

Here is a nice technique that may work for you. There are several variations of this on the same website. Do a search.

http://www.alistapart.com/articles/horizdropdowns/

Terry

__________________
Minneapolis Search Engine Optimization MN
Google Ranking Optimization Minneapolis, St Paul, Minnesota
Minneapolis SEO Search Optimization
Search Engine Optimization, Search Engine Marketing Minnesota

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
cPanel Conference 2012: What's New with cPanel and WHM with Ken Power Web Hosting News 2012-11-12 13:54:56
Netcraft Continues to See a Drop in Responses for July 2012 Web Survey Web Hosting News 2012-07-03 14:35:26
Netcraft May Web Server Survey Sees First Drop in Responses in 22 Months Web Hosting News 2012-05-02 13:59:57
Web Host Heart Internet Launches SiteDesigner Based on BaseKit Website Builder Web Hosting News 2012-04-17 10:24:26
A First Look at cPanel’s new User Interface Web Hosting News 2011-09-15 19:35:40


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?