WordPress.org

Ready to get started?Download WordPress

Forums

Different Headers and Flash Navs per Page - Is this right? (4 posts)

  1. horizens
    Member
    Posted 8 years ago #

    OK, I'm a newbie when it comes to php. I found a way to load different page headers and flash navs per page but it seems a little sluggish when loading each page. Maybe it's just because it's laoding a different swf for every page but it's the only way I found to achieve the colorization I was after.

    Here's the wp site:

    http://www.soundmovesaudio.com/1224/

    and here is the header code:


    <div id="header" class="<?php if(is_page('home')) echo('headerHome'); ?>
    <?php if(is_page('facilities')) echo('headerFacilities'); ?>
    <?php if(is_page('recording')) echo('headerProduction'); ?>
    <?php if(is_page('mixing')) echo('headerProduction'); ?>
    <?php if(is_page('production-team')) echo('headerProduction'); ?>
    <?php if(is_page('gear')) echo('headerGear'); ?>
    <?php if(is_page('clients')) echo('headerClients'); ?>
    <?php if(is_page('contests')) echo('headerEvents'); ?>
    <?php if(is_page('soundscape-house-concerts')) echo('headerEvents'); ?>
    <?php if(is_page('location')) echo('headerContact'); ?>
    <?php if(is_page('booking-policy')) echo('headerContact'); ?> ">
    </div>

    <div id="navSwf">
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="794" height="80">
    <param name="movie" value="<?php if(is_home('home')) echo('images/sm_nav.swf'); ?>
    <?php if(is_page('facilities')) echo('images/sm_navFacilities.swf'); ?>
    <?php if(is_page('recording')) echo('images/sm_navProduction.swf'); ?>
    <?php if(is_page('mixing')) echo('images/sm_navProduction.swf'); ?>
    <?php if(is_page('production-team')) echo('images/sm_navProduction.swf'); ?>
    <?php if(is_page('gear')) echo('images/sm_navGear.swf'); ?>
    <?php if(is_page('clients')) echo('images/sm_navClients.swf'); ?>
    <?php if(is_page('contests')) echo('images/sm_navEvents.swf'); ?>
    <?php if(is_page('soundscape-house-concerts')) echo('images/sm_navEvents.swf'); ?>
    <?php if(is_page('location')) echo('images/sm_navContact.swf'); ?>
    <?php if(is_page('booking-policy')) echo('images/sm_navContact.swf'); ?>" />
    <param name="quality" value="high" />
    <embed src="<?php if(is_home('home')) echo('images/sm_nav.swf'); ?>
    <?php if(is_page('facilities')) echo('images/sm_navFacilities.swf'); ?>
    <?php if(is_page('recording')) echo('images/sm_navProduction.swf'); ?>
    <?php if(is_page('mixing')) echo('images/sm_navProduction.swf'); ?>
    <?php if(is_page('production-team')) echo('images/sm_navProduction.swf'); ?>
    <?php if(is_page('gear')) echo('images/sm_navGear.swf'); ?>
    <?php if(is_page('clients')) echo('images/sm_navClients.swf'); ?>
    <?php if(is_page('contests')) echo('images/sm_navEvents.swf'); ?>
    <?php if(is_page('soundscape-house-concerts')) echo('images/sm_navEvents.swf'); ?>
    <?php if(is_page('location')) echo('images/sm_navContact.swf'); ?>
    <?php if(is_page('booking-policy')) echo('images/sm_navContact.swf'); ?>" width="794" height="80" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
    </object>
    </div>

  2. horizens
    Member
    Posted 8 years ago #

    anyone?

  3. truck808
    Member
    Posted 8 years ago #

    Hi. Did you ever resolve this issue?

  4. mejane
    Member
    Posted 8 years ago #

    I'm a php newbie too, but your bit of code saved me a lot of time trying to work out how to do different headers. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic