| Forums > Tips & Tricks > "Picture Switching code ." (2 replies)
|
|
|
Hello ! Can anyone tell me the code for the picture changing ?
Like every time you refresh your page , the picture will change ~
I'll appreciate it alot ! Thanks !
Something like this (SS taken from XiaXue's blog):
Just enter :

Refresh first :

Refresh second :
|
| |
|
| |
|
| |
I keep trying to make a post with the script in it, but it keeps messing up.
Go here...
|
| |
| |
|
| |
I Got It
From Her JS File, I Got This:
// JavaScript Document
//put your jQuery code here
var randomnumber=Math.floor(Math.random()*6);
randomnumber = randomnumber+1;
//$('.site').css('background-image','url(http://sg.nitrodesigns.com/projects/xiaxue/design/images/header'+randomnumber+'.jpg)');
document.write('.site{background-image:url(http://www.xiaxue.sg/blogfiles/images/header'+randomnumber+'.jpg)');
That Will Be Complicated
i code will be:
Just Got this Website. Blogskins smiles are affecting it!
Edited 2.8 years ago. |
| Subscribe To This Thread: RSS 2.0 or Atom (?) |
| This thread has been locked, and no new replies can be posted. |