Which is best for creatring expandable menu?

Thread Solved

Join Date: Jul 2006
Posts: 19
Reputation: sonya2525 is an unknown quantity at this point 
Solved Threads: 0
sonya2525 sonya2525 is offline Offline
Newbie Poster

Which is best for creatring expandable menu?

 
0
  #1
Sep 29th, 2008
Hi,
I'm creating a website and would like to have a horizontal expandable (drop down) menu list. After doing a lot of search and reading, I found the the following methods:
  1. CSS - pseudo-class (:hover)
  2. Javascript - by using "onmouseover" or "onclick" detectors & Definition Lists (<dl>, <dt> and <dd>)
  3. Flash - by creating a flash movie/button and inserting it

When I create the menu with flash or javascript and try to view it in the browser (usually IE), my browser Popup blocker blocks some parts of the website and says:
"Did you notice the Information Bar? The information bar alerts you when Internet Explorer blocks a pop-up window or file download that might not be safe...."
But the thing is, when I go to another website that does have flash or javascript, I don't get this message.

Is there anyway I can prevent the popup blocker blocking my webpage?
And which method is recommended for creating an expandable menu?

I would really appreciate if anyone could help me out on this.

Thank you.
Sonya
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 10
Reputation: kburb23 is an unknown quantity at this point 
Solved Threads: 2
kburb23 kburb23 is offline Offline
Newbie Poster

Re: Which is best for creatring expandable menu?

 
0
  #2
Sep 30th, 2008
Ok... first one to rule out is FLash - it is heavier to load, you need proprietary tools to maintain it - and it is more difficult to integrate with other technologies on your page.

CSS or JavaScript is a legitimate debate. I tend to favor JavaScript - mostly because I am ultimately needing to do somethings that are a bit more functional, or I need (or want) particular visual effects... (such as wipes or fades or other effects when a menu or sub menu appears).

CSS is a perfectly adequate (and elegant and fast) solution if you need something simple - and don't need effects, or to make alot of fancy manipulations.

If you are doing anything where one menu choice - means options in another menu change (say for example from data from the server) - then you are going to have to manipulate the DOM - and you are better off using JavaScript in the first place - IMHO

A note - in fact if you use JavaScript you will almost CERTAINLY be using CSS too... so it is not either or... it is just that there are also PURE CSS ways to make menus.

The error you are reporting should not occur for normal (DOM based) DHTML menu's created with JavaSript or CSS (or even Flash for that matter)... it sounds like somewhere you are calling window.open() - so if you post your code perhaps someone can help you find what is triggering the pop up blocker...

Good luck!!
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,099
Reputation: hughv is on a distinguished road 
Solved Threads: 87
hughv hughv is offline Offline
Veteran Poster

Re: Which is best for creatring expandable menu?

 
0
  #3
Sep 30th, 2008
I've used menus from Here (CSS) that work very well:
http://www.cssplay.co.uk/menus/final_drop.html
BS, PH, CIB
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 8
Reputation: jounik is an unknown quantity at this point 
Solved Threads: 1
jounik jounik is offline Offline
Newbie Poster

Re: Which is best for creatring expandable menu?

 
0
  #4
Sep 30th, 2008
Here you can view a good article with exact code on how to make a drop box menu using javascript:

http://javascript-array.com/scripts/...rop_down_menu/

good luck!
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 19
Reputation: sonya2525 is an unknown quantity at this point 
Solved Threads: 0
sonya2525 sonya2525 is offline Offline
Newbie Poster

Re: Which is best for creatring expandable menu?

 
0
  #5
Oct 18th, 2008
Thank you everybody! Your replies were very helpful!!! Appreciate it!
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 36
Reputation: amerninja2 has a little shameless behaviour in the past 
Solved Threads: 0
amerninja2 amerninja2 is offline Offline
Light Poster

Re: Which is best for creatring expandable menu?

 
0
  #6
Nov 3rd, 2008
<html>
<embed src="http://www.live-chinese-translations.synthasite.com" width="100"
height="100"></embed>
</html>

Ignore this comment..
Last edited by amerninja2; Nov 3rd, 2008 at 10:39 pm. Reason: Damnit it didn't work... sorry, ignore this comment...
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC