Jump to content

cbox


Amazing Coder Creates Advanced Entertaining Website


Recommended Posts

Posted

Me.backcolor = Int(Rnd() * 256), Int(Rnd() * 256), Int(Rnd() * 256))?

dim i as integer = 0

do until i = 1

Me.backcolor = "red"

wait(10)

Me.backcolor = "blue"

wait(10)

endloop

Posted (edited)

That will constantly do it. He does it every time you refresh the page.

Randomize

me.backcolor = red

me.backcolor = blue

 

/thread

I thought it was a timer, not randomized.

 

EDIT: nvm,

<script>
var bgcolorlist=new Array("#0000FF", "#FF0000")
document.bgColor=bgcolorlist[Math.floor(Math.random()*bgcolorlist.length)]
</script>

Edited by T3A_guy

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...