943,692 Members | Top Members by Rank

Ad:
Sep 29th, 2008
0

Which is best for creatring expandable menu?

Expand Post »
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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sonya2525 is offline Offline
19 posts
since Jul 2006
Sep 30th, 2008
0

Re: Which is best for creatring expandable menu?

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!!
Reputation Points: 10
Solved Threads: 2
Newbie Poster
kburb23 is offline Offline
10 posts
since Sep 2008
Sep 30th, 2008
0

Re: Which is best for creatring expandable menu?

I've used menus from Here (CSS) that work very well:
http://www.cssplay.co.uk/menus/final_drop.html
Reputation Points: 116
Solved Threads: 93
Veteran Poster
hughv is offline Offline
1,132 posts
since Oct 2007
Sep 30th, 2008
0

Re: Which is best for creatring expandable menu?

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!
Reputation Points: 46
Solved Threads: 1
Newbie Poster
jounik is offline Offline
8 posts
since Sep 2008
Oct 18th, 2008
0

Re: Which is best for creatring expandable menu?

Thank you everybody! Your replies were very helpful!!! Appreciate it!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sonya2525 is offline Offline
19 posts
since Jul 2006
Nov 3rd, 2008
0

Re: Which is best for creatring expandable menu?

<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...
Reputation Points: 5
Solved Threads: 0
Light Poster
amerninja2 is offline Offline
36 posts
since Oct 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Why does this site throw a 403 Error on ONLY ONE ISP, while working everywhere else?
Next Thread in HTML and CSS Forum Timeline: Float Not working





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC