Click to See Complete Forum and Search --> : text write help


Code One
08-31-2003, 06:16 PM
Hey guys,
been a long time, well I got a problem I would like to implement a script that would write loading... let it sit for a specifeied amount of time and then fade out or disappear and in it's place have playing... appear and stay until I hit a button that fires lets say the back function or forward function, and have the text say back or forward in place of playing...

Do you understand what I mean?

hope so and thanks ahead,

Code One

zachzach
09-14-2003, 03:57 PM
<body onload="A()">
<script>
mm = "Loading..."
Avar=0
function A() {
divA.innerHTML=mm
setTimeout("A()", 1000)
setTimeout("B()", 1000)
}
function B() {
Avar = Avar+1
if(Avar == 10) {
mm = "Playing..."
}
}
</script>
<div id=divA>
</div><br>
<input type=button onclick="mm='Back'" value="<< Back">
<input type=button onclick="mm='Forward'" value="Forward >>">

Code One
09-14-2003, 04:08 PM
for responding! I like this script it's pretty cool. I posted this a long time ago though and have came up with a pretty good script and it works much like yours. I appreciate the help anyway.

Thanks just the same,

Code One