Random header imagaes


/ Published in: PHP
Save to your folder(s)

Image files are: header_1 , header_2, header_3, header_4


Copy this code and paste it in your HTML
  1. <div id="header">
  2. <img src="<?php bloginfo('template_url'); ?>/images/header_<?php echo(rand(1,4)); ?>.jpg" width="472" height="136" alt="<?php bloginfo('name'); ?> Reducing the global burden of disease" />
  3.  
  4. </div>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.