What Sothink DHTML Menu Can Do for You?
Back | Home | Next |
Open link in customized window
Menu item event not only can be a link, but also can be JavaScript. Following are two samples.
A. Open a customer defined window.
- Create a menu item;
- In General of Menu Item, choose "_self" in the Target box;
- In link box, input code as follows:
javascript:window.open("https://www.sothink.com","_blank","width=800,height=600,status=yes,toolbar=no,")
B. Open a user-defined function window. (Only supported by IE for Windows)
Add user-defined function into web page like this:
<script language="javascript1.2" type="text/javascript">
function myaddFavorite()
{
if(window.external)
external.AddFavorite("https://www.sothink.com","www.sothink.com");
}
</script>
- In General of Menu Item Settings, choose "_self" in the Target box;
- In Link box, input code as follows:
javascript:myaddFavorite()
General Drop Down Menu
Clone Drop Down Menu
Special Drop Down Menu