Free JavaSccript codes

Pop-up window onMouseOver

This is a small example intended to show you how to create a 'pop-up window'. The purpose is so you can have more information on your web page without cluttering it up.... detail


How to setup

Step 1: Place JavaScript below in your HEAD section
JavaScript
Code:
<script language="JavaScript">

<!-- hiding

var newwindow;

function showWindow()
{
        newwindow = window.open("", "newwindow", "toolbar=no,width=300,height=25,top=30,left=30");
        newwindow.document.open();
        newwindow.document.write("<html><title>The &quot;pop-up window&quot;<\/title><body bgcolor='#C0C0C0' style='margin-left:25px;margin-right:25px;text-align:center' text='#008080'><em>Here is more interesting and useful information for your visitors!<\/em><\/body><\/html>");
        newwindow.document.close();
}

function closeWindow()
{
        newwindow.close();      
}
// -->

</script>
	<!--
    	This script downloaded from www.JavaScriptBank.com
    	Come to view and download over 2000+ free javascript at www.JavaScriptBank.com
	-->
Step 2: Place HTML below in your BODY section
HTML
Code:
<a href="http://javascriptbank.com" target="_blank" onclick="return false" style="text-decoration: none;" onmouseover="return showWindow();" onmouseout="return closeWindow();">Mouse over here to see how it works.</a>
	<!--
    	This script downloaded from www.JavaScriptBank.com
    	Come to view and download over 2000+ free javascript at www.JavaScriptBank.com
	-->


Some related scripts
- Opening New Windows
- Make link open in new tab/window
- DHTML Window widget v1.03
You can browse some JavaScript codes about Browser and Window




JavaScript Reference 4 everyone - JavaScript Array: How? - How to Enable JavaScript
Quote Originally Posted by Copyright
The Site may provide, or third parties may provide, links to non-JavaScriptBank.com Internet World Wide Web sites or resources. Because JavaScriptBank.com has no control over such sites and resources, you acknowledge and agree that JavaScriptBank.com is not responsible for the availability of such external sites or resources, and does not endorse and is not responsible or liable for any content, advertising, products, or other materials on or available from such sites or resources. You further acknowledge and agree that JavaScriptBank.com shall not be responsible or liable, directly or indirectly, for any damage or loss caused or alleged to be caused by or in connection with use of or reliance on any such content, goods or services available on or through any such site or resource.