one letter




JavaScript Source Code 3000: Scrolls: One Letter

































One Letter








This script will scroll one letter at a time of your message until the entire message has been displayed! Very neat!








JavaScript Source Code 3000: Scrolls: One Letter
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 NotePad or SimpleText) and save (Control-s or Apple-s). The script is yours!




    





<!-- TWO STEPS TO INSTALL ONE LETTER SCROLL:

1. Copy the coding into the HEAD of your HTML document
2. Add the onLoad event handler to the BODY tag -->

<!-- STEP ONE: Add this code into the HEAD of your HTML document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- Original: Pun Man Kit <mkpunnl@netvigator.com> -->

<! >
<! >

<!-- Begin
function scroll(jumpSpaces,position) {
var msg = "Another JavaScript Example! Do you like it?"
var out = ""
if (killScroll) {return false}
for (var i=0; i<position; i++){
out += msg.charAt(i)}
for (i=1;i<jumpSpaces;i++) {
out += " "}
out += msg.charAt(position)
window.status = out
if (jumpSpaces <= 1) {
position++
if (msg.charAt(position) == ' ') {
position++ }
jumpSpaces = 100-position
}
else if (jumpSpaces > 3) {
jumpSpaces *= .75}
else {
jumpSpaces--}
if (position != msg.length) {
var cmd = "scroll(" + jumpSpaces + "," + position + ")";
scrollID = window.setTimeout(cmd,5);
}
else {
scrolling = false
return false}
return true;
}
function startScroller() {
if (scrolling)
if (!confirm('Re-initialize snapIn?'))
return false
killScroll = true
scrolling = true
var killID = window.setTimeout('killScroll=false',6)
scrollID = window.setTimeout('scroll(100,0)',10)
return true
}
var scrollID = Object
var scrolling = false
var killScroll = false
// End -->
</SCRIPT>
</HEAD>

<!-- STEP TWO: Add the onLoad event handler to the BODY tag -->

<BODY onLoad="startScroller()">



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












Wyszukiwarka

Podobne podstrony:
Christin Lovell [One Soldier One Letter (epub) id 2032600
Wielka czerwona jedynka (The Big Red One) cz 2
Aerosmith One Way Street
Chitra Banerjee Divakaruni One Amazing Thing
One 2 Ka 4 CD1 [2001]
Zizek The Big One Doesn t Exist
One Step From Earth v1 01
Google Page One In 30 Days
[WAŻNE] Minister Falah Bakir s letter to Wall Street Journal Don t forget Kurds role in Iraq (05
lettercactivities
letterd
All Flesh Must Be Eaten Thirteen Ways to Die, Choose One
Beatles For no one
One Fifth Avenue

więcej podobnych podstron