X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Grey border around flash (https://forum.x-cart.com/showthread.php?t=34444)

davej2k 10-08-2007 02:11 AM

Grey border around flash
 
I've inserted a flash banner into the head.tpl. Does anyone know how to remove the grey border and the 'Click to activate and use this control' message appearing when a user hovers over the area?

Ene 10-08-2007 02:33 AM

Re: Grey border around flash
 
Try this solution: SWFObject: Javascript Flash Player detection and embed script

ozi 10-13-2007 09:25 PM

Re: Grey border around flash - This works
 
Create file: ieupdate.js
copy the below code in to "ieupdate.js"
-----------------

theObjects = document.getElementsByTagName("object");
for (var i = 0; i < theObjects.length; i++) {
theObjects[i].outerHTML = theObjects[i].outerHTML;
}

--------------
Just below the last <object></object> in your HTML page, insert the following javascript:

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

Ex:

<object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0">
<param name=quality value=high>
<embed src="file.swf" quality=high pluginspage="" type="application/x-shockwave-flash" ">
</embed>
</object>
<script type="text/javascript" src="ieupdate.js"></script>

PhilJ 10-15-2007 05:29 PM

Re: Grey border around flash
 
Here's another method - http://www.bobbyvandersluis.com/ufo/

And there's a Smarty plugin - http://smarty.incutio.com/?page=FlashWithoutIeBug

But SWFObject is easiest.


All times are GMT -8. The time now is 02:34 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.