Open / close page with mouseover
|
<SCRIPT Language="JavaScript"> <!-- Hide from old browsers function winopen1 () { msg1=open ("","WINDOW1","toolbar=no,location=no,directories=no,status=no,menubar=no, scrollbars=no,resizable=no,copyhistory=yes,width=200,height=250"); msg1.location = "TEST.htm"} function winopen2 () { msg2=open ("","WINDOW2","toolbar=no,location=no,directories=no,status=no,menubar=no, scrollbars=no,resizable=no,copyhistory=yes,width=400,height=400");"); msg2.location = "urladress.com" } </script> |
|
<div align=right> <a href="TEST.htm" onMouseOver="winopen1(); return true;" onMouseOut="msg1.close(); return true;">LINK-NAVN</a> <a href="TEST2.htm" onMouseOver="winopen2(); return true;" onMouseOut="msg2.close(); return true;">LINK_NAVN2</a> </div> |
|
To add more links add these lines of code to the script that is in your <head>-</head> tag. It goes after the "}" and before the" </script> : function winopen3() { msg3=open ("","WINDOW3","toolbar=no,location=no,directories=no,status=no,menubar=no, scrollbars=no,resizable=no,copyhistory=no,width=200,height=250"); msg3.location = "TEST3.htm"} Then put this where you want it between your <body>-tags: <a href="TEST3.htm" onMouseOver="winopen3(); return true;" onMouseOut="msg3.close(); return true;">LINK-NAME</a> |
Free JavaScripts provided
by Winfolinx.com