Random background |
Random background |
Nov 19 2004, 04:00 AM
Post
#1
|
|
![]() Senior Member ![]() ![]() ![]() Group: Member Posts: 62 Joined: Feb 2004 Member No: 4,456 |
this random background code wont work. Is their another or something wrong with the one i have.
CODE <!-- begin code provided by createblog.com -->
<!-- begin code provided by createblog.com --> <script type='text/javascript'> // random background - jammers var image = new Array(); // change up the images here image[0] = 'http://img21.exs.cx/img21/8528/New-Naya1.jpg'; image[1] = 'http://img21.exs.cx/img21/9718/New-Naya2.jpg; image[2] = 'http://img21.exs.cx/img21/1536/New-Naya3.jpg; image[3] = 'http://img21.exs.cx/img21/7942/New-Naya4.jpg; image[4] = 'http://img21.exs.cx/img21/2860/New-Naya5.jpg; image[5] = 'http://img21.exs.cx/img21/644/New-Naya6.jpg; var index = Math.floor(Math.random() * image.length); document.write('<style type="text/css"> body { background-image: url('+ image[index] +')</style>'); </script> <!-- end code provided by createblog.com --> <!-- end code provided by create |
|
|
|
![]() |
Nov 19 2004, 07:08 AM
Post
#2
|
|
![]() Star of Berryz ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 406 Joined: May 2004 Member No: 15,033 |
I think u did somthing wrong.. try this la...:
CODE <!-- begin code provided by createblog.com -->
<script type='text/javascript'> // random background - jammers var image = new Array(); // change up the images here image[0] = 'http://img21.exs.cx/img21/8528/New-Naya1.jpg'; image[1] = 'http://img21.exs.cx/img21/9718/New-Naya2.jpg'; image[2] = 'http://img21.exs.cx/img21/1536/New-Naya3.jpg'; image[3] = 'http://img21.exs.cx/img21/7942/New-Naya4.jpg'; image[4] = 'http://img21.exs.cx/img21/2860/New-Naya5.jpg'; image[5] = 'http://img21.exs.cx/img21/644/New-Naya6.jpg'; var index = Math.floor(Math.random() * image.length); document.write('<style type="text/css"> body { background-image: url('+ image[index] +')</style>'); </script> <!-- end code provided by createblog.com --> |
|
|
|
![]() ![]() |