The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Scrolling Status Bar

View previous topic View next topic Go down

Scrolling Status Bar

Post by uberready on March 13th 2011, 1:27 pm

I'm not sure how to do this or where to put the code. I'm just tryen to cover up the statusbar maybe with a message


<!-- Simply copy and paste it between <HEAD> and </HEAD> tags -->

<SCRIPT LANGUAGE="JavaScript" type="text/javascript">

<!--
//Visit http://rainbow.arch.scriptmania.com for this script and more.

var current = 0
var x = 0
var y = 0

// The number 100 represents the wait in milliseconds
// between the typing of each character in the message list.

var speed = 100

// The number 2000 represents the number of milliseconds
// between the changing of each message (2 seconds, here).
// Anywhere between 1500 and 5000 would be fine.

var speed2 = 2000

function initArray(n) {
this.length = n;
for (var i =1; i <= n; i++) {
this[i] = ' '
}
}

// This is Message-Number Array

typ = new initArray(4)
typ[0]="This is Message 1"
typ[1]="Now it is Message 2"
typ[2]="Oh yes, this is Message 3"
typ[3]="Yea, this message, 4, is the last message (and it's the longest)"

function typnslide() {
var m = typ[current]

window.status = m.substring(0, x++)

if (x == m.length + 1) {
x = 0

setTimeout("typnslide2()", speed2)
}

else {
setTimeout("typnslide()", speed)
}
}

function typnslide2() {
var m = typ[current]

window.status = m.substring(m.length, y++)

if (y == m.length) {
y = 0
current++

if (current > typ.length - 1) {
current = 0
}
setTimeout("typnslide()", speed)
}

else{
setTimeout("typnslide2()", speed)
}
}

typnslide();
//-->
</script>



where would i add that? is there a better one to use?

uberready
Forumember

Posts : 28
Reputation : 0
Language : english

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum