Results 1 to 7 of 7
  1. #1
    Join Date
    May 2006
    Location
    Philippines
    Posts
    18
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Oct 2005
    Location
    New Mexico
    Posts
    393
    Plugin Contributions
    0

    Default Re: Using Animated .gif on header_bg

    Either should work. For flash take a look at http://www.zen-cart.com/forum/showth...ighlight=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!

  3. #3
    Join Date
    May 2006
    Location
    Philippines
    Posts
    18
    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.


    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="clsid27CDB6E-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

  4. #4
    Join Date
    May 2006
    Location
    Philippines
    Posts
    18
    Plugin Contributions
    0

    Default 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

  5. #5
    Join Date
    Oct 2005
    Location
    New Mexico
    Posts
    393
    Plugin Contributions
    0

    Default Re: Using Animated .gif on header_bg

    Suggest you take a look at http://www.zen-cart.com/forum/showth...ht=flash+xhtml. Seems to be much less code this way.

  6. #6
    Join Date
    Feb 2004
    Posts
    1,774
    Plugin Contributions
    14

    Default Re: Using Animated .gif on header_bg

    Quote Originally Posted by 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"

  7. #7
    Join Date
    May 2006
    Location
    Philippines
    Posts
    18
    Plugin Contributions
    0

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

    Thanks guys!

 

 

Similar Threads

  1. Animated .gif vs. jQuery
    By strugglingnovice in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 11 Sep 2012, 04:52 PM
  2. Animated GIF not working. Why?
    By cdcr in forum General Questions
    Replies: 0
    Last Post: 30 Dec 2011, 06:03 PM
  3. GIF banner - animated, how do i upload it to my site?
    By theAymen in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 Jul 2010, 12:46 PM
  4. Animated gif
    By Veronika7747 in forum General Questions
    Replies: 3
    Last Post: 19 Mar 2008, 02:20 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR