Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Using Animated .gif on header_bg

Using Animated .gif on header_bg

Locked

Views: 2,822

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
13 May 2006, 7:49 PM
#1
afrizzle avatar

afrizzle

New Zenner

Join Date:
May 2006
Location:
Philippines
Posts:
14
Plugin Contributions:
0

Using Animated .gif on header_bg

Is it possible to use animated .gif on the header background?
If so, could somebody help me how.

And also, is it possible to use flash images? How?

Thanks :smile:

13 May 2006, 11:52 PM
#2
sermonzone avatar

sermonzone

Zen Follower

Join Date:
Oct 2005
Location:
New Mexico
Posts:
365
Plugin Contributions:
0

Re: Using Animated .gif on header_bg

Either should work. For flash take a look at http://www.zen-cart.com/forum/showthread.php?t=33871&highlight=flash. Dr.B gives the code to embed flash in the css.

Not sure how the css would work with gif.

Suggest you decide on what you want and search on that. If you decide on flash, a simple search will give you lots to read.

Good luck!

22 May 2006, 2:39 PM
#3
afrizzle avatar

afrizzle

New Zenner

Join Date:
May 2006
Location:
Philippines
Posts:
14
Plugin Contributions:
0

Re: Using Animated .gif on header_bg

thanks for the reply...

Now I've decided to use Flash as my header.

I tried everything that is posted by DrByte in but it I can't make them work..
I did use both the classic and the template_default tpl_header, but neither of them work. :no:

here's the code...flash codes starts after <!--bof-branding display-->

<?php /** * Common Template - tpl_header.php * * this file can be copied to /templates/your_template_dir/pagename<br /> * example: to override the privacy page<br /> * make a directory /templates/my_template/privacy<br /> * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_header.php<br /> * to override the global settings and turn off the footer un-comment the following line:<br /> * <br /> * $flag_disable_header = true;<br /> * * @package templateSystem * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: tpl_header.php 3392 2006-04-08 15:17:37Z birdbrain $ */ ?> <?php // Display all header alerts via messageStack: if ($messageStack->size('header') > 0) { echo $messageStack->output('header'); } if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) { echo htmlspecialchars(urldecode($_GET['error_message'])); } if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) { echo htmlspecialchars($_GET['info_message']); } else { } ?> <!--bof-branding display--> <div id="logowrapper"> <div id="logo" <td valign="middle"> <CENTER> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="banner" width="100%" height="110" align="middle" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,65,0"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="banner.swf" /> <param name="quality" value="high" /> <param name="play" value="true" /> <param name="loop" value="true" /> <param name="bgcolor" value="#ffffff" /> <embed src="banner.swf" width="100%" height="110" bgcolor="#ffffff" quality="high" loop="true" type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/go/getflashplayer" /> </embed> </object> </CENTER></td> </div> <!--eof-branding display--> <!--bof-header logo and navigation display--> <?php if (!isset($flag_disable_header) || !$flag_disable_header) { ?> <div id="headerWrapper"> <!--bof-navigation display--> <div id="navMainWrapper"> <div id="navMain"> <ul class="back"> <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li> <?php if ($_SESSION['customer_id']) { ?> <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li> <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li> <?php } else { if (STORE_STATUS == '0') { ?> <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li> <?php } } ?> <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
<li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
<?php }?> </ul> </div> <div class="navMainSearch forward"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div> <br class="clearBoth" /> </div> <!--eof-navigation display--> <!--eof-header logo and navigation display--> <!--bof-optional categories tabs navigation display--> <?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?> <!--eof-optional categories tabs navigation display--> <!--bof-header ezpage links--> <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?> <?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?> <?php } ?> <!--eof-header ezpage links--> </div> <?php } ?>

here's my site http://www.newandpreloved.com.au

thanks

22 May 2006, 2:46 PM
#4
afrizzle avatar

afrizzle

New Zenner

Join Date:
May 2006
Location:
Philippines
Posts:
14
Plugin Contributions:
0

Re: Using Animated .gif on header_bg

and you might notice that :

<embed src="banner.swf" ... coz I put the banner.swf on the same folder
<embed src="..images/banner.swf" ... tried this one also..did'nt work

thanks again

23 May 2006, 1:14 AM
#6
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

Re: Using Animated .gif on header_bg

afrizzle:

and you might notice that :

<embed src="banner.swf" ... coz I put the banner.swf on the same folder
<embed src="..images/banner.swf" ... tried this one also..did'nt work

thanks again

try the full path:
"includes/templates/nap/common/banner.swf"

24 May 2006, 3:08 AM
#7
afrizzle avatar

afrizzle

New Zenner

Join Date:
May 2006
Location:
Philippines
Posts:
14
Plugin Contributions:
0

Re: Using Animated .gif on header_bg

I used this code:

<object type="application/x-shockwave-flash" data="includes/templates/YOUR_TEMPLATES/images/your.swf" width="750" height="26"> <param name="movie" value="includes/templates/YOUR_TEMPLATES/images/your.swf" /> </object>

and it works! :thumbsup:

Thanks guys!