| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| NamePros Regular | 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... |
| |
| | #3 (permalink) |
| NamePros Regular | 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>
__________________ ask me about the internet |
| |
| | #4 (permalink) |
| A Wealth of Knowledge | 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
__________________ Follow Me on Twitter: |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |