Page 3 of 3 FirstFirst 123
Results 21 to 24 of 24
  1. #21
    Join Date
    Jun 2008
    Posts
    63
    Plugin Contributions
    0

    Default Re: New pages and page specific customisation

    Kobra, I got this code from one of the posts and it works perfectly on every page. But as it is quite different than the one I used before and many parameters are not set, the flash banner sits in the middle of the header. Can you just help me out on this to add more params for bg colour, align, etc., to make it a complete code ?

    <script type="text/javascript" src="includes/templates/mytemplate/jscript/jscript_swfobject.js"></script>

    <script type="text/javascript">
    var flashvars = {};
    var params = {};
    params.allowscriptaccess = "always";
    params.wmode = "transparent";
    var attributes = {};
    swfobject.embedSWF("includes/templates/mytemplate/images/banner.swf", "flashcontent", "550", "150", "9.0.0", false, flashvars, params, attributes);
    </script><div id="flashcontent">Adbobe Flash Player</div>

  2. #22
    Join Date
    Jun 2008
    Posts
    63
    Plugin Contributions
    0

    Default Re: New pages and page specific customisation

    After playing around a bit, I managed to get it work changing the code. I tried static publishing but didn't work with IE8. Then tried dynamic publishing - the one below - it works like a charm now. Except one thing, the right side of the banner isn't aligned with the mainwrapper, about half inch off the right edge. Does anyone know a workaround for this?

    <script type="text/javascript" src="includes/templates/mytemplate/jscript/swfobject.js"></script>

    <script type="text/javascript">
    var flashvars = {};
    var params = {};
    params.allowscriptaccess = "always";
    params.wmode = "transparent";
    params.loop = "false";
    params.menu = "false";
    params.quality = "high";
    params.bgcolor = "000000";
    var attributes = {};
    attributes.align = "right";
    swfobject.embedSWF("includes/templates/mytemplate/images/banner.swf", "flashcontent", "650", "190", "9.0.0", false, flashvars, params, attributes);
    </script><div id="flashcontent">Adobe Flash Player</div>

  3. #23
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: New pages and page specific customisation

    If you set it in a div use css
    If not - try setting it in a div
    Zen-Venom Get Bitten

  4. #24
    Join Date
    Jun 2008
    Posts
    63
    Plugin Contributions
    0

    Default Re: New pages and page specific customisation

    Just realised something, it was all about the swapping the flash files. I had two banners in different sizes. The one I used was the smaller one so that's why there were empty spaces on both sides which were visible with the help of firebug. Then used the bigger one (650x190) and it fit the content area precisely. When using the previous code, it was just enough to change the dimensions in the code and the banner streched to fit the area. But now it is a different story. Strange but true.. Thanks for the tips..

 

 
Page 3 of 3 FirstFirst 123

Similar Threads

  1. customisation of information sidebox and adding extra pages
    By abs007 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 12 Mar 2010, 08:09 PM
  2. Change CSS on specific page/pages
    By elchoco in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 1 Dec 2008, 03:23 AM
  3. Add new pages and edit page name
    By matteoraggi in forum Customization from the Admin
    Replies: 0
    Last Post: 27 Nov 2007, 03:06 PM
  4. Page specific html_header.php pages
    By mutualadvantage in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 22 Aug 2007, 11:08 PM
  5. New Products Layout, and Customisation
    By dvasdekis in forum Templates, Stylesheets, Page Layout
    Replies: 22
    Last Post: 3 Jan 2007, 03:33 AM

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