PHP header code

want to remove header image from pages except homepage

Page 1 of 1

2 Replies - 2265 Views - Last Post: 26 September 2010 - 10:34 AM Rate Topic: -----

#1 ananya2312   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 22-September 10

PHP header code

Posted 22 September 2010 - 11:12 AM

I have php.index file for my template.

My header image is displayed in all the links and homepage as well.

But i want to remove the header image from the other pages..i want it only on homepage.

this is the code.plzz helpp

<div class="art-Header">
  
  <div class="art-Header-jpeg"><object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="900" height="400">
    <param name="movie" value="templates/lexx2_club_dance/images/Header.jpg" />
    <param name="quality" value="high" />
    <param name="wmode" value="opaque" />
    <param name="swfversion" value="6.0.65.0" />
    <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
    <param name="expressinstall" value="templates/lexx2_club_dance/Scripts/expressInstall.swf" />
    <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash" data="templates/lexx2_club_dance/images/Header.jpg" width="900" height="400">
      <!--<![endif]-->
      <param name="quality" value="high" />
      <param name="wmode" value="opaque" />
      <param name="swfversion" value="6.0.65.0" />
      <param name="expressinstall" value="Scripts/expressInstall.swf" />
      <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
      <div>
        <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
        <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
      </div>
      <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
  </object></div>

</div>

This post has been edited by Dormilich: 22 September 2010 - 11:17 AM
Reason for edit:: please use [code] /* your code source here */ [/code] tags when posting code


Is This A Good Question/Topic? 0
  • +

Replies To: PHP header code

#2 CTphpnwb   User is offline

  • D.I.C Lover
  • member icon

Reputation: 3837
  • View blog
  • Posts: 13,994
  • Joined: 08-August 08

Re: PHP header code

Posted 22 September 2010 - 11:38 AM

Here's a suggestion: put php in your index.php file and leave the html for an html file. That way your php can determine what page is being requested and if that page is the home page then it can include your headers.
Was This Post Helpful? 0
  • +
  • -

#3 runthis   User is offline

  • New D.I.C Head

Reputation: -9
  • View blog
  • Posts: 8
  • Joined: 26-September 10

Re: PHP header code

Posted 26 September 2010 - 10:34 AM

View Postananya2312, on 22 September 2010 - 10:12 AM, said:

I have php.index file for my template.

My header image is displayed in all the links and homepage as well.

But i want to remove the header image from the other pages..i want it only on homepage.

this is the code.plzz helpp

<div class="art-Header">
  
  <div class="art-Header-jpeg"><object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="900" height="400">
    <param name="movie" value="templates/lexx2_club_dance/images/Header.jpg" />
    <param name="quality" value="high" />
    <param name="wmode" value="opaque" />
    <param name="swfversion" value="6.0.65.0" />
    <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you donít want users to see the prompt. -->
    <param name="expressinstall" value="templates/lexx2_club_dance/Scripts/expressInstall.swf" />
    <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash" data="templates/lexx2_club_dance/images/Header.jpg" width="900" height="400">
      <!--<![endif]-->
      <param name="quality" value="high" />
      <param name="wmode" value="opaque" />
      <param name="swfversion" value="6.0.65.0" />
      <param name="expressinstall" value="Scripts/expressInstall.swf" />
      <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
      <div>
        <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
        <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
      </div>
      <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
  </object></div>

</div>



Sometimes its a simple easy fix

<?
if($_GET['page'] == 'home'){
?>
THE HEADER IMAGE YOU ONLY WANT ON HOMEPAGE, OR WHATEVER ONLY ON HOMEPAGE
<? } ?>


Was This Post Helpful? 0
  • +
  • -

Page 1 of 1