Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2010
    Posts
    10
    Plugin Contributions
    0

    Default Embeding flash into the banner section of my template?

    Hello again, I'm trying to figure out the best way to execute embedding a flash .swf into the "Banner" section of my template.

    Here is a link to my shopping cart:
    www.completestruts.com

    Basically I have this .swf file that would fit nicely into the section where you currently see the "Free Shipping Promo"

    Is it possible?

    How?

    Thanks in advance!

  2. #2
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Embeding flash into the banner section of my template?

    good starting point link at the top tutorials

    http://www.zen-cart.com/wiki/index.php/Using_Flash
    https://www.zen-cart.com/tutorials/index.php?article=80

    Works grate.... I use flash banners all the time.
    Dave
    Always forward thinking... Lost my mind!

  3. #3
    Join Date
    Sep 2010
    Posts
    10
    Plugin Contributions
    0

    Default Re: Embeding flash into the banner section of my template?

    Hi, maybe you could help me... as of now within the banner manager section of my admin I have added this code:


    <script type="text/javascript" src="js/swfobject.js"></script>

    <script type="text/javascript">

    // JAVASCRIPT VARS
    // cache buster
    var cacheBuster = "?t=" + Date.parse(new Date());

    // stage dimensions
    var stageW = 930;//"100%";
    var stageH = 267;//"100%";


    // ATTRIBUTES
    var attributes = {};
    attributes.id = 'FlabellComponent';
    attributes.name = attributes.id;

    // PARAMS
    var params = {};
    params.bgcolor = "#ffffff";


    /* FLASH VARS */
    var flashvars = {};

    /// if commented / delete these lines, the component will take the stage dimensions defined
    /// above in "JAVASCRIPT SECTIONS" section or those defined in the settings xml
    flashvars.componentWidth = stageW;
    flashvars.componentHeight = stageH;

    /// path to the content folder(where the xml files, images or video are nested)
    /// if you want to use absolute paths(like "http://domain.com/images/....") then leave it empty("")
    flashvars.pathToFiles = "banner/";
    flashvars.xmlPath = "xml/banner.xml";


    /** EMBED THE SWF**/
    swfobject.embedSWF("preview.swf"+cacheBuster, attributes.id, stageW, stageH, "9.0.124", "js/expressInstall.swf", flashvars, params);

    </script>

    <div id="FlabellComponent">
    <p>In order to view this object you need Flash Player 9+ support!</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"/>
    </a>
    </div>


    Basically im tying to hard code the flash inside the banner manager so far I am getting this result:

    www.completestruts.com

    It is obviously showing up where I need it to... I just need to figure out what im missing for the actual flash to work!

 

 

Similar Threads

  1. flash flash banner install on Modern Zen [RI07] Template
    By firefly143 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 18 Mar 2011, 02:25 PM
  2. flash banner in the header
    By bahokan in forum Templates, Stylesheets, Page Layout
    Replies: 15
    Last Post: 1 May 2010, 01:36 PM
  3. Custom template - flash banner not showing
    By tracy_natalia in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 30 Mar 2010, 02:53 PM
  4. Putting Flash banner into pages
    By poodle101 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 7 Mar 2008, 10:33 AM

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