NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Expandable Menu?

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 06-24-2006, 02:17 PM THREAD STARTER               #1 (permalink)
NamePros Regular
 
fatihhk's Avatar
Join Date: Apr 2006
Location: Berlin
Posts: 333
fatihhk will become famous soon enoughfatihhk will become famous soon enough
 



Expandable Menu?


Hi,
I want to make expandable menu same with this one.
http://www.flyproxy.com/#
Please click "More Options" and menu will expand.
How could I do it?
Thanks for your helps...
fatihhk is offline  
Old 06-24-2006, 02:21 PM   #2 (permalink)
NamePros Member
Join Date: May 2006
Posts: 133
spacetrain will become famous soon enoughspacetrain will become famous soon enough
 



Look at the source code, it gives you the basic javascript required to do this then edit this to include the php code which generates the advanced options with the phproxy script.
spacetrain is offline  
Old 06-24-2006, 04:31 PM   #3 (permalink)
NamePros Regular
 
Jim_'s Avatar
Join Date: Aug 2005
Location: NY, USA
Posts: 610
Jim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to behold
 


Save The Children
Code:
<script>
function toggle(objid) {
var obj = document.getElementById(objid);
if(obj.style.display == "none")
  obj.style.display = "block";
else
  obj.style.display = "none";
}
</script>

<a href="#" onclick="toggle('testlayer');">Hide/Show</a>
<div id="testlayer" style="display: none;">
Hidden Text
</div>
There's a quick example.
__________________
ask me about the internet
Jim_ is offline  
Old 06-25-2006, 05:23 AM   #4 (permalink)
A Wealth of Knowledge
 
stscac's Avatar
Join Date: Aug 2004
Posts: 3,809
stscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud of
 



Jim once again hit the nail on the head.

Pretty simple code, you can see that he used javascript and the dom to hide the div layer that contained the content, and then show it upon request.

-Steve
stscac is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 01:22 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger