Expandable Menu?

SpaceshipSpaceship
Spacemail by SpaceshipSpacemail by Spaceship
SpaceshipSpaceship
Watch

fatihhk

Established Member
Impact
1
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... :td:
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
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.
 
0
•••
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.
 
0
•••
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
 
0
•••
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Escrowly
CryptoExchange.com
Domain Recover

NamePros updates

New in Parking: updated way to act on many domains or inquiries at once
Your domain list and inquiry list now have a bar above and below the list. Check the items you want, then choose an action in the bar...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back