|
|
Java menu script>Menu Make>Center Expand
|
| Grab your visitors attention with this script. It centers the
browser window and expands to fill the screen! |
|
The JavaScript Source: Navigation: Center Expand
Simply click inside the window below, use your cursor to highlight the script, and copy
(type Control-c or Apple-c) the script into a new file in your text editor (such as Note
Pad or Simple Text) and save (Control-s or Command-s). The script is yours!!!
|
<!-- TWO STEPS TO INSTALL CENTER EXPAND:
1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Sean Decker -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
function expand() {
for(x = 0; x < 50; x++) {
window.moveTo(screen.availWidth * -(x - 50) / 100, screen.availHeight * -(x - 50) / 100);
window.resizeTo(screen.availWidth * x / 50, screen.availHeight * x / 50);
}
window.moveTo(0,0);
window.resizeTo(screen.availWidth, screen.availHeight);
}
// End -->
</script>
</HEAD>
<!-- STEP TWO: Copy this code into the BODY of your HTML document -->
<BODY>
<a href="http://javascript.internet.com" onClick="expand();">The
JavaScript Source</a>
<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts
provided<br>
by <a href="http://javascriptsource.com">The JavaScript
Source</a></font>
</center><p>
<!-- Script Size: 1.06 KB --> |
|
|
|