Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Header Logo on Main Page...

Header Logo on Main Page...

Locked

Views: 1,138

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
23 Jan 2010, 10:56 PM
#1
mouthtrick2009 avatar

mouthtrick2009

New Zenner

Join Date:
Jan 2010
Posts:
33
Plugin Contributions:
0

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!!!

24 Jan 2010, 10:43 PM
#2
mouthtrick2009 avatar

mouthtrick2009

New Zenner

Join Date:
Jan 2010
Posts:
33
Plugin Contributions:
0

Re: Header Logo on Main Page...

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

24 Jan 2010, 11:14 PM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Header Logo on Main Page...

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

25 Jan 2010, 5:23 AM
#4
mouthtrick2009 avatar

mouthtrick2009

New Zenner

Join Date:
Jan 2010
Posts:
33
Plugin Contributions:
0

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?

25 Jan 2010, 5:47 AM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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

<?php if($this_is_home_page){ ?> <!-- your flash code and HTML or javascript --> <?php }else{ ?> <!-- your static HTML code --> <?php } ```
25 Jan 2010, 6:33 PM
#6
mouthtrick2009 avatar

mouthtrick2009

New Zenner

Join Date:
Jan 2010
Posts:
33
Plugin Contributions:
0

Re: Header Logo on Main Page...

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

You were a HUGE HELP!! Thank you.