Last active
February 15, 2022 06:05
-
-
Save sharpicx/9c7751a053db22019d43875c8c934c78 to your computer and use it in GitHub Desktop.
simple scrolling title script.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
msg = " empty name -" // fill this string | |
msg = " simple scroll -"+ msg;position = 0; | |
function puter() { // simple scroll function | |
document.title = msg.substring(position, msg.length) + msg.substring(0, position); | |
position++; | |
if (position > msg.length) position = 0 | |
window.setTimeout("puter()",50); | |
} | |
puter(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment