<?php if (is_page(‘28‘)) { ?>
<img src=”<?php bloginfo(‘template_url’); ?>/headers/image1.jpg” width=”920″ alt=”<?php bloginfo(‘name’); ?> header image” />
<?php } elseif (is_page(‘26‘)) { ?>
<img src=”<?php bloginfo(‘template_url’); ?>/headers/image2.jpg” width=”920″ alt=”<?php bloginfo(‘name’); ?> header image” />
<?php } elseif (is_page(‘30‘)) { ?>
<img src=”<?php bloginfo(‘template_url’); ?>/headers/image3.jpg” width=”920″ alt=”<?php bloginfo(‘name’); ?> header image” />
<?php } else { ?>
<img src=”<?php bloginfo(‘template_url’); ?>/rotating.php?image=<?php echo mt_rand(0,100); ?>” width=”920″ alt=”<?php bloginfo(‘name’); ?> Rotating Header Image” title=”<?php bloginfo(‘name’); ?> Random Header Image” />
<?php } ?>
Or if you need Random images on you WP header? Check it here
