| | |
Dynamic pull out menus
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jun 2004
Posts: 11
Reputation:
Solved Threads: 0
Hi all, I'm new here, but I've been designing web pages for a while.
I just have a few questions regarding pull down menus. I want to design my own (learn the concept etc.), but I'm kind of confused on what to use to make them: Jacascript, ASP, DHTML? What is the best, most browser compatible out there?
(to give you an idea, i'm looking into designing something similiar to the Thread Tools/Search This Thread etc. at the top here).
Thanks for all of your time!
(Some of my work: Kahr's Carving, Halo 2: United )
I just have a few questions regarding pull down menus. I want to design my own (learn the concept etc.), but I'm kind of confused on what to use to make them: Jacascript, ASP, DHTML? What is the best, most browser compatible out there?
(to give you an idea, i'm looking into designing something similiar to the Thread Tools/Search This Thread etc. at the top here).
Thanks for all of your time!
(Some of my work: Kahr's Carving, Halo 2: United )
The menus would need to be done with a client-side language as opposed to server-side. Therefore, languages such as ASP and PHP are out. The menus here were created with a combination of DHTML and JavaScript. (DHTML for the menu itself, and JavaScript in the HTML code to call the function). Your best bet is to check out www.dynamicdrive.com - they have a bunch of similar working code snippets that will help give you ideas. No better way to learn than by example.
•
•
Join Date: Jun 2004
Posts: 11
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by cscgal
The menus would need to be done with a client-side language as opposed to server-side. Therefore, languages such as ASP and PHP are out. The menus here were created with a combination of DHTML and JavaScript. (DHTML for the menu itself, and JavaScript in the HTML code to call the function). Your best bet is to check out www.dynamicdrive.com - they have a bunch of similar working code snippets that will help give you ideas. No better way to learn than by example.
Been looking to do this for some time, but wasn't sure where to get started.
•
•
Join Date: Nov 2003
Posts: 207
Reputation:
Solved Threads: 1
Like Dani said, this would be done with client side scripting. and in this case, Javascript. 
Check out www.dynamicdrive.com or even viewing the source of this forum to check out the .js.

Check out www.dynamicdrive.com or even viewing the source of this forum to check out the .js.
•
•
Join Date: Jun 2004
Posts: 11
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by rixius
Like Dani said, this would be done with client side scripting. and in this case, Javascript.
Check out www.dynamicdrive.com or even viewing the source of this forum to check out the .js.
Also, there wasn't anything on dynamic drive (that i could find) about giving it the "wipe" or "slide" effect. It kind of just appears, which is fine, but i wanted something a bit niftier
. Thanks again for all your help.
•
•
Join Date: Nov 2003
Posts: 207
Reputation:
Solved Threads: 1
It looks good in IE, but when I browse to it in firefox, it looks pretty bad :/.
For just the sliding effect, well, you can search for just the effect itself on dynamic drive, I'm sure they'd have that, then just apply it to the whole div, or table you have as the dropout menu.
For just the sliding effect, well, you can search for just the effect itself on dynamic drive, I'm sure they'd have that, then just apply it to the whole div, or table you have as the dropout menu.
•
•
Join Date: Aug 2004
Posts: 2
Reputation:
Solved Threads: 0
You might also want to check out the example at "Drop-Down Menus, Horizontal Style" at "A List Apart" http://www.alistapart.com/articles/horizdropdowns/
•
•
Join Date: Apr 2008
Posts: 2
Reputation:
Solved Threads: 0
There is a problem with IE5 and IE6 to create this pull out menu.
I've created a solution on my website www.cartaomega.com.br. Look at file /scripts/global.js. The main function is:
I've created a solution on my website www.cartaomega.com.br. Look at file /scripts/global.js. The main function is:
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
function menuCss(elemento) { if (document.all&&document.getElementById) { if(document.getElementById(elemento)) { nav = document.getElementById(elemento); for (i=0; i<nav.childNodes.length; i++) { node = nav.childNodes[i]; if (node.nodeName=="LI") { node.onmouseover=function() { this.className+=" over"; } node.onmouseout=function() { this.className=this.className.replace(" over", ""); } } } } } }
![]() |
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Help with Swapping Images onclick
- Next Thread: script/function to lock a mouse and keyboard.
| Thread Tools | Search this Thread |
acid2 ajax ajaxcode ajaxexample ajaxhelp ajaxjspservlets animate array automatically beta box browser bug calendar captchaformproblem cart checkbox close codes column createrange() css cursor date debugger decimal dependent design dom download dropdown element embed enter error events firefox focus form frameworks getselection google gwt gxt hiddenvalue highlightedword hint html htmlform ie7 iframe images index internet java javascript javascripthelp2020 jawascriptruntimeerror jquery jsfile jsp libcurl listbox maps masterpage media menu microsoft mimic mp4 onmouseover paypal php player position post problem programming progressbar prototype redirect regex runtime safari scale scriptlets search security select size software sql text textarea unicode w3c website window windowofwords windowsxp






