Quote:
Originally Posted by Miguel T
Just don't with PHP 
Quicker and easier.
|
I modified this script (4 options, you can change to 3) and replace images with other JS
It worked!
But what is this php you speak of? :D I'm calling it in a wordpress theme. And the ads are in javascript to make the popup. Any ideas?
var picnumber = Math.floor((Math.random() * 4) + 1);
if (picnumber == 1){
img.src = '1.jpg';
} else if (picnumber == 2) {
img.src = '2.jpg';
} else if (picnumber == 3) {
img.src = '3.jpg';
} else {
img.src = '4.jpg';
}