Unstoppable Domains โ€” Get your daily AI drops report

Expandable Menu?

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
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.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
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
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
CatchedCatched
Escrow.com
Spaceship
Domain Recover
CryptoExchange.com
Catchy
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back