Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2010
    Posts
    33
    Plugin Contributions
    0

    Default Header Logo on Main Page...

    MIGHTY ZEN MASTERS....

    I am once again asking for your wordly sage advice.

    Here it is: http://www.chasingamylive.com/zencart

    I want to have the flash animated logo only load on the main page - that's it. All the rest would have the same logo (just minus the animation - I can just put a different graphic with just the finished logo on it).

    Is there a way to do this?

    I just don't want the flash to start again every time you click on something and reload the page. It gets annoying.

    Thanks!!!

  2. #2
    Join Date
    Jan 2010
    Posts
    33
    Plugin Contributions
    0

    Default Re: Header Logo on Main Page...

    Hmmmm...I was hoping somebody would know...ah well. Can't win 'em all.

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Header Logo on Main Page...

    Wrap a test around the code that displays the flash:
    PHP Code:
    if($this_is_home_page){
      
    //your flash code
    }else{
      
    //your static image code


  4. #4
    Join Date
    Jan 2010
    Posts
    33
    Plugin Contributions
    0

    Default Re: Header Logo on Main Page...

    Thanks!! I appreciate your response.

    I think I'm having some syntax issues, or something. Here is what I have:


    <?php
    if ($this_is_home_page)
    echo "Home Page";
    else
    echo "Not Hom Page";
    ?>


    <?php
    if ($this_is_home_page)
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="588" height="682" id="lights" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="http://www.chasingamylive.com/lights.swf" /><param name="quality" value="high" /><param name="scale" value="exactfit" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" /><embed src="lights.swf" quality="high" scale="exactfit" wmode="transparent" bgcolor="#ffffff" width="850" height="1000" name="lights" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" />
    </object> ;
    else
    echo "Not Hom Page";
    ?>
    Now, it will display at the top of the page if it's the home page or not when I added the 1st example that you gave me but the second set of instructions where I put in my flash code doesn't work. I get a blank page (with just the background image).

    I'm sure I'm missing something in the code...can anybody help?

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Header Logo on Main Page...

    Code is very picky... you have to use all symbols correctly, and not leave out curly braces {}.

    Also, you need to transition between PHP code and HTML/javascript code. Like this:
    PHP Code:
    <?php

    if($this_is_home_page){
    ?>
    <!--  your flash code and HTML or javascript -->
    <?php
    }else{
    ?>
    <!--  your static HTML code -->
    <?php
    }

  6. #6
    Join Date
    Jan 2010
    Posts
    33
    Plugin Contributions
    0

    Default Re: Header Logo on Main Page...

    Thanks!!! I got it to work just like I wanted.

    You were a HUGE HELP!! Thank you.

 

 

Similar Threads

  1. HELP!!!!!....Need to center My logo hench logo.gif on my main page
    By Robert Cooper in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 12 Jul 2013, 01:33 PM
  2. Disappearing main logo header
    By iWinMarketing in forum Basic Configuration
    Replies: 1
    Last Post: 28 Feb 2009, 05:31 PM
  3. Main header logo - position
    By monsterfish in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 12 Dec 2008, 01:22 AM
  4. main logo/header problem
    By dieselo4o in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 7 Oct 2008, 11:18 PM
  5. Detaching header from main page - how to get main section and header size differently
    By guls_guys in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 28 Apr 2008, 06:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg