Is there a way to have a different header image on each page according to the page id? For example, the file 'header.php' includes the following code to determine what header image to display
<?php } elseif (is_page()) { ?>
<img src="<?php bloginfo('template_url'); ?>/images/header_3.jpg" width="770" height="140" alt="<?php bloginfo('name'); ?> header image 3" title="<?php bloginfo('name'); ?> header image 3" />
This puts the image, 'header_3.jpg' on every page that uses the page template. What I'd like to do is have the header image chosen based on page_id instead like this...
<?php } elseif (is_page_id=3()) { ?>
<img src="<?php bloginfo('template_url'); ?>/images/header_3.jpg" width="770" height="140" alt="<?php bloginfo('name'); ?> header image 3" title="<?php bloginfo('name'); ?> header image 3" />
<?php } elseif (is_page_id=4()) { ?>
<img src="<?php bloginfo('template_url'); ?>/images/header_4.jpg" width="770" height="140" alt="<?php bloginfo('name'); ?> header image 4" title="<?php bloginfo('name'); ?> header image 4" />
Will that work or is there another way to code it?