New Zenner
- Join Date:
- Sep 2011
- Posts:
- 2
- Plugin Contributions:
- 0
Flash banner not displaying in header
I have spent many frustrating hours trying to get a flash banner to display in the header. I have tried several methods, firstly embedding the HTML object code in a banner, which works fine in Chrome and FF, but doesn't display in IE.
I then found a post showing how to create a .js script which embedded the .swf, and put the script code in the banner. This loaded the flash file, but it was blank.
So, I've recently found a third option for putting the code in the tpl_header.php file, which I have done. However, the flash file does not even load. This is the code in my tpl_header (using /includes/templates/premium1c/common/tpl_header.php)
<!--bof-branding display-->
<div id="logoWrapper">
<div id="logo">
<script type="text/javascript" src="_shoptest/includes/templates/premium1c/jscript/swfobject.js"></script>
<div id="flashcontent" align="center">
<a href="www.Zenpets.co.uk">Welcome to Zenpets</a> </div>
<script type="text/javascript">
var so = new SWFObject("_shoptest/includes/templates/premium1c/images/flash/zen3.swf", "flash3.swf", "930", "115", "7", "#ffffff");
so.write("flashcontent");
</script>
</div>
The site can be found at https://www.zenpets.co.uk/_shoptest/
I've been at this for hours, so maybe I've missed something really obvious, but if anyone can help, I'd really appreciate it as I'm going nuts trying to work it out. :(
I realise the banner will conflict with the login/cart but that will be moved out the way using CSS again (currently disabled) once the banner is working.
Zencart version is 1.3.9h