I have just discovered the wonderful WordPress and am just trying to get my head around how things work. Thought first project would be to try and move over my existing site and learn as we go along.
var pictures = 50;
var dt = new Date();
var hr = dt.getSeconds();
var ra = hr % pictures;
var re = ++ra;
var msg="<IMG SRC=images/"+re+".jpg>";
I thought it may be just a case of placing this in the header.php file within my theme but no :-(
not as simple as that.
Is there a simple way of adapting this to work?