How to Display Random Header Images

If you got a huge header, you can try to show to different images each time a user loads your site. You can rotate as many images as you want. But here for example we are giving you a example of three images. Hope this helps some.

One Step Procedure:

Note: Do take backup of your theme before you try this.

01. First rename your images with a underscore like these:

– randomimage_1.gif
– randomimage_2.gif
– randomimage_3.gif

02. Add this below code in your header.php file or the file where the code for your header image is placed:

<img src="http://path_to_images/headerimage_<?php echo(rand(1,3)); ?>.gif"
width="image_width" height="image_height" alt="image_alt_text" />

03. If you want to do with more images, change the number 3. That’s it.

  • Halaman

  • October 2010
    M T W T F S S
    « Sep   Nov »
  • RSS 20 Newest Free

  • RSS Brothersoft

  • RSS New Software

  • AntiVirus

  • Status Anda

  • Pengunjung

    free counters
  • Blog Stats

    • 330,331 hits
  • Add to Google Reader or Homepage Subscribe in NewsGator Online Add to netvibes Subscribe in Bloglines Add to fwicki Add to Webwag Powered by FeedBurner

  • Friends Link

  • RSS Kompas

    • An error has occurred; the feed is probably down. Try again later.
  • RSS Lowongan Kerja Terbaru 2013

    • An error has occurred; the feed is probably down. Try again later.
  • RSS

  • Info Tentang AQ

  • Meta

  • %d bloggers like this: