PHP to JPG random image scrolling?
Hey all.
I've seen it done, especially with website banners and forum signatures, Every time you reload the page, the image is changed.. Exactly like the one here [url=http://simppeli.org/~flie/sigiruletti/kuvaruletti.jpg]here[/b]..
I've come up with a bit of javascript code to do it..
Code:
<center><SCRIPT LANGUAGE="JavaScript">
var theImages = new Array()
theImages[0] = ''"
var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
preBuffer[i] = new Image()
preBuffer[i].src = theImages[i]
**
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
**
showImage();
</script></center>
But the problem is that most forums doesn't support javascript. just like the image in my example.. to include a PHP Code in a jpg image file .. so that everytime someone loads the page.. my forum signature would be different?
Thanks.
~d2D.