Tutorial Tuesday: Have a Different Sidebar Image each Time A User Refreshes You Page
Live View <--- Keep refreshing to see different images
PLEASE CREDIT ME, no i did not create the java, but i did create this tutorial, and the css in the code that keeps all images roughly the same width.
Paste this code under your <head> tag
<style> .sarah img{ width: 300px; } </style>
Now paste this code in your sidebar, where you want the image to be, and replace the IMAGEURL with your different image URL's
NOW I KNOW I WILL GET 324098X QUESTIONS ABOUT THIS, so what i mean by where you want it to be,
If you have a current sidebar picture, replace that code with this one
If you want it at the top of your sidebar, paste it in the beg. of your sidebar div
If you dont know your sidebar div name, or where it is, message me and i will help you find it
A good way to find where your current sidebar image is, is to search "{image:sidebar}" and delete the <img> code all the way to /> and replace it with the one below
div class="sarah"><script language="JavaScript"> <!-- /* Random Image Script- By JavaScript Kit (http://www.javascriptkit.com) Over 400+ free JavaScripts here! Keep this notice intact please */ function random_imglink(){ var myimages=new Array() //specify random images below. You can have as many as you wish myimages[1]="IMAGEURL" myimages[2]="IMAGEURL" myimages[3]="IMAGEURL" myimages[4]="IMAGEURL" myimages[5]="IMAGEURL" myimages[6]="IMAGEURL" var ry=Math.floor(Math.random()*myimages.length) if (ry==0) ry=1 document.write('<img src="'+myimages[ry]+'" border=0>') } random_imglink() //--> </script></div>















