JavaScriptBank
09 Jul 2009, 02:26 AM
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 (http://www.javascriptbank.com/popup-onmouseover.html)
http://www.javascriptbank.com/javascript.images/browser/popup-onmouseover.jpg (http://www.javascriptbank.com/popup-onmouseover.html)
Demo: Pop-up window onMouseOver (http://www.javascriptbank.com/javascript/browser/window/popup-onmouseover/preview/)
How to setup
Step 1: Place JavaScript below in your HEAD section
JavaScript
<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 "pop-up window"<\/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
<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 (http://www.javascriptbank.com/opening-new-windows.html)
- Make link open in new tab/window (http://www.javascriptbank.com/make-link-open-in-new-tab-window.html)
- DHTML Window widget v1.03 (http://www.javascriptbank.com/dhtml-window-widget-index.html)
You can browse some JavaScript codes about Browser (http://www.javascriptbank.com/javascript/browser/) and Window (http://www.javascriptbank.com/javascript/browser/window/)
JavaScript Reference 4 everyone (http://www.javascriptbank.com) - JavaScript Array: How? (http://www.javascriptbank.com/en+title=array) - How to Enable JavaScript (http://www.javascriptbank.com/en=enable javascript)
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.
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 (http://www.javascriptbank.com/popup-onmouseover.html)
http://www.javascriptbank.com/javascript.images/browser/popup-onmouseover.jpg (http://www.javascriptbank.com/popup-onmouseover.html)
Demo: Pop-up window onMouseOver (http://www.javascriptbank.com/javascript/browser/window/popup-onmouseover/preview/)
How to setup
Step 1: Place JavaScript below in your HEAD section
JavaScript
<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 "pop-up window"<\/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
<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 (http://www.javascriptbank.com/opening-new-windows.html)
- Make link open in new tab/window (http://www.javascriptbank.com/make-link-open-in-new-tab-window.html)
- DHTML Window widget v1.03 (http://www.javascriptbank.com/dhtml-window-widget-index.html)
You can browse some JavaScript codes about Browser (http://www.javascriptbank.com/javascript/browser/) and Window (http://www.javascriptbank.com/javascript/browser/window/)
JavaScript Reference 4 everyone (http://www.javascriptbank.com) - JavaScript Array: How? (http://www.javascriptbank.com/en+title=array) - How to Enable JavaScript (http://www.javascriptbank.com/en=enable javascript)
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.