Jump to content

Attach menu onclick


Mr.Shawn

Recommended Posts

<input type="button" value="Menu 1" onclick="javascript:document.getElementById('submenu').style.display='block'; return true">
<div id="submenu" style="display:none;width:200px;height:150px;border:solid 1px black;position:absolute;margin:0;z-index:1000">
<div style="width:auto;display:block;text-align:right;padding-right:5px;font-size:80%"><a href="javascript:void(0)" onclick="javascript:document.getElementById('submenu').style.display='none'; return true">Close</a></div>
<!-- Menu Content Here -->
</div>

Link to comment
https://forums.phpfreaks.com/topic/83144-attach-menu-onclick/#findComment-422962
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.