sliding window




JavaScript Source Code 3000: Navigation: Sliding Window








































Sliding Window







Slides the browser window off the screen when the link or button is clicked, only to return it to its original location as it loads the link page. Sweet!

(Please note the button link doesn't work correctly in Netscape, but the regular link does.)










or

Slide to Excite






JavaScript Source Code 3000: Navigation: Sliding Window
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 Apple-s). The script is yours!!!





    





<!-- TWO STEPS TO INSTALL SLIDING WINDOW:

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: Daniel Clarke (daniel.clarke@ic.ac.uk) -->


<! >
<! >

<!-- Begin
function moveWin() {
for (var i = 1; i < 1001; i++)
window.moveBy(1, 1);
window.moveBy(-1000, -1000);
}
// End -->
</script>
</HEAD>

<!-- STEP TWO: Copy this code into the BODY of your HTML document -->

<BODY>

<center>

<form>
<input type=button value="Slide to Yahoo" onClick="moveWin();window.location.href='http://www.yahoo.com';">
</form>

or

<a href="http://www.excite.com"; onClick="moveWin()">Slide to Excite</a>

</center>



<!-- Script Size: 0.96 KB -->











Wyszukiwarka