| | |
horizontal menu
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Aug 2008
Posts: 3
Reputation:
Solved Threads: 0
hello everyone
iam new in this forum, i want to create horizontal menu contains p1,p2,p3 if iam click or move mouse to p1 new window open in right hand side show the details,and move on to p2 p1 window is get invisible and new window for p2 show the details same way in p3.
how to create above any one find it sent me the complete source code or link details
thankyou
pls refer below like same as using java script:
http://www.cssplay.co.uk/menu/one_page.html
iam new in this forum, i want to create horizontal menu contains p1,p2,p3 if iam click or move mouse to p1 new window open in right hand side show the details,and move on to p2 p1 window is get invisible and new window for p2 show the details same way in p3.
how to create above any one find it sent me the complete source code or link details
thankyou
pls refer below like same as using java script:
http://www.cssplay.co.uk/menu/one_page.html
Last edited by cskinpg; Aug 25th, 2008 at 3:12 am.
•
•
Join Date: Aug 2008
Posts: 380
Reputation:
Solved Threads: 33
•
•
•
•
how to create above any one find it sent me the complete source code or link details
thankyou
There are some great books and online tutorials on how to learn to write javascript ... check them out. :-)
Why not use the CSS method? It will be better supported than a JavaScript one.
Having said all that, here's one way you might do this ...
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
<html> <head> <style type="text/css"> /* FOR DEMONSTRATION PURPOSES ONLY */ body { padding: 30px; font-family: Arial; } .tab { cursor: pointer; padding: 10px; border: 1px solid indigo; background: orange; } .show { display: none; position: relative; top: 30px; width: 100px; height: 100px; padding: 20px; color: white; font-size: 18px; font-weight: bold; border: 1px solid indigo; background: silver; } </style> <script type="text/javascript"> window.onload = function () { show_div('one'); } function show_div ( id ) { var divs = document.getElementsByTagName('div'); for ( var i = 0; i < divs.length; i ++ ) { var div = divs.item(i); if ( /show/.test( div.className ) ) { if ( div.id == id ) { div.style.display = 'block'; } else { div.style.display = 'none'; } } } } </script> </head> <body> <div> <span class="tab" onmouseover="show_div('one')">one</span> <span class="tab" onmouseover="show_div('two')">two</span> <span class="tab" onmouseover="show_div('three')">three</span> </div> <div class="show" id="one">one</div> <div class="show" id="two">two</div> <div class="show" id="three">three</div> </body> </html>
Cheers
Last edited by langsor; Aug 25th, 2008 at 3:16 pm.
Google is the answer to all of your questions -- the trick is knowing what question to ask in your specific predicament.
![]() |
Similar Threads
- switch type menu (HTML and CSS)
- horizontal line/rule in JComboBox? (Java)
- windows.com style menu (Site Layout and Usability)
- CSS Horizontal Drop-down Menu ??? (HTML and CSS)
- Horizontal or Vertical? (Site Layout and Usability)
- Navbar popup menu difficulties (HTML and CSS)
- In need of Menu over Frames (JavaScript / DHTML / AJAX)
- Creating submenus in table cells (JavaScript / DHTML / AJAX)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Sending mail througth js
- Next Thread: Counter for selectbox
| Thread Tools | Search this Thread |
acid2 ajax ajaxcode ajaxexample ajaxhelp ajaxjspservlets animate automatically beta box browser bug captchaformproblem checkbox close codes createrange() css cursor debugger dependent disablefirebug dom download dropdown editor element engine enter error events explorer ext file firefox form forms frameworks getselection google gwt gxt hiddenvalue highlightedword hint html htmlform ie7 ie8 iframe internet java javascript javascripthelp2020 jawascriptruntimeerror jquery jsf jsfile jsp jump listbox maps masterpage math media menu microsoft mp4 object onmouseoutdivproblem onreadystatechange paypal pdf php player position programming progressbar prototype redirect regex runtime safari scale scriptlets search security select size software sql text textarea unicode w3c window windowofwords windowsxp wysiwyg \n





