Forums / Templates, Stylesheets, Page Layout / New pages and page specific customisation

New pages and page specific customisation

Locked

Views: 2,434

Results 21 to 24 of 24
This thread is locked. New replies are disabled.
23 Feb 2010, 7:41 PM
#21
acummins avatar

acummins

New Zenner

Join Date:
Jun 2008
Posts:
63
Plugin Contributions:
0

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>
23 Feb 2010, 11:23 PM
#22
acummins avatar

acummins

New Zenner

Join Date:
Jun 2008
Posts:
63
Plugin Contributions:
0

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>
23 Feb 2010, 11:25 PM
#23
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

24 Feb 2010, 10:17 PM
#24
acummins avatar

acummins

New Zenner

Join Date:
Jun 2008
Posts:
63
Plugin Contributions:
0

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..:smile: