Conditional statement for flash and image rotate
-
Ok, I’m trying to get a flash banner to play on the home page.
On all the other pages I’m want a set of random images to appear in the header. So I’m trying to create somekind of conditional statement. Both work individually. But I can’t seem to get the conditional statement to work… So Iam trying to say—If at home use this html, if else , use this other html code<div role="banner" class="headerimg"> <?php if (is_home()): {echo '<object width="1000" height="296"> <param name="movie" value="ns_header.swf"> <embed src="<?php bloginfo ('template_directory');?>/images/ns_header.swf" width="1000" height="296"> </embed> </object>'}; else {echo '<img class="headerimg" src="<?php bloginfo ('template_directory');?>/images/headerimgs/rotate.php" alt="A Random Header Image"/>'};?> </div>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Conditional statement for flash and image rotate’ is closed to new replies.