Dynadot โ€” .com Transfer

Expandable Menu?

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.
AfternicAfternic
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
•••
CatchedCatched
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomainEasy โ€” Payment Flexibility
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back