use randoms images in header
February 9, 2010 by admin · Leave a Comment
Header of a blog is a particularly important because it is the first thing seen by those who access the site. It can give a first impression on a blog.
How can you do the header images to change the reloading a page?For start: we need to make some images which have the same dimensions. File names must be like imagineheader_1.gif, imagineheader_2.gif.
After we did this we have put in file header.php following cod:
<img src="http://caleaspreimagine/imagineheader_<?php echo(rand(1,3)); ?>.gif" width="latimeimagine" height="inaltimeimagine" alt="image_alt_text" />
If we want to put more that 3images you must change only the number 3.
Related posts: