Problem with Flash Header
Hi:
I wonder if someone can help me. I have changed my header logo into a flash on but the flash.swf doesnīt load. I mean, it seems that it loads but theres is no image and the page doesnīt finish loading.
When I roll the mouse over the flash image there is a message that says: "click to activate and use the control".
I donīt know what to do.
Please help me!!!
Re: Problem with Flash Header
Maybe it could be important: Iīm using 1.3.5 ZenCart version. How many files do I have to change in this version in order to change to a flas header?
Re: Problem with Flash Header
You are more than likely using IE to view your site and therefore you are caught in the problem with IE and Macromedia legal disputes.
See this post for information on getting flash to display properly in IE :
http://www.zen-cart.com/forum/showth...ght=java+flash
Re: Problem with Flash Header
Hi Tina, thanks a lot for answering me. I have some more questions. I understand that I have to create a javascript file but:
1. Iīm using a customized template, Do I have to create a directory name jscript" or I have to put the java script in Template_default/jscript?
2. After de java script I have to write this :"<script src="includes/templates/blue_strip/jscript/paragone.js"></script>". Where do I write it? I mean; What subdirectory or file?
Thanks a lot for your time.
Hector
Re: Problem with Flash Header
You would want to place the javascript portion in the folder includes/templates/YOUR_TEMPLATE/javascript
The code to call it will go where you would normally put you <embed....... > code so in your case it would be in includes/templates/YOUR_TEMPLATE/common/tpl_header.php since you are using a flash header.
Hope that helps clarify it a little more for you !
Re: Problem with Flash Header
Thanks again. It didnt work. Maybe thereīs something Iīm doing wrong buty I donīt know what.
Good luck!
Hector
Re: Problem with Flash Header
With refer to the other topic at Reviewer's Corner Shop has gone live: please review
Our fellow member JohneeMac suggested the following for the Flash.
SWFObject: Javascript Flash Player detection and embed script
I had tested, it works, with more functions and with XHTML validation.
And below are the steps of the test which use the JavaScript download from the above site.
1. save the header Flash file to the following directory (just for example)
includes/templates/YOUR_TEMPLATE/images/flash/YOUR_HEADER.swf
2. download the zip packaged file from the above site
3. unzip and save the included swfobject.js file (not compressed and about 6.5 KB) to your ZC template directory
includes/templates/YOUR_TEMPLTE/jscript/swfobject.js
4. If in before, the tpl_header.php had not been modified,
then copy the following file:
includes/templates/template_default/common/tpl_header.php
and save it to your template override directory:
include/templates/YOUR_TEMPALTE/common/tpl_header.php
5. Open up the new saved tpl_header.php file in your override directory
include/templates/YOUR_TEMPALTE/common/tpl_header.php
Add and modify the codes according to your requirements.
For detail usuages, please refer to the docs and the original site for more infos.
For example,
in the tpl_header.php, just insert the codes for Flash below the section of:
<!--bof-branding display-->
<div id="logoWrapper">
PHP Code:
<!--bof-branding display-->
<div id="logoWrapper">
<script type="text/javascript" src="includes/templates/YOUR_TEMPLATE/jscript/swfobject.js"></script>
<div id="flashcontent">
This text is replaced by the Flash movie.
</div>
<script type="text/javascript">
var so = new SWFObject("includes/templates/YOUR_TEMPLATE/images/flash/YOUR_HEADER.swf", "YOUR_HEADER", "750", "160", "7", "#000000");
so.write("flashcontent");
</script>
Note:
In the above codes, where:
YOUR_TEMPLATE = the name of your template.
YOUR_HEADER = the file name of your Flash file.
.
Re: Problem with Flash Header
Thanks, Iīll try.
Good luck,
Hector
Re: Problem with Flash Header
Guess I screwed up correctly for a change!
My flash file works in IE but not FF
Quote:
echo '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" height="150" width="750" id="Flash1">
<param name="Movie" value="images/main.swf" />
<param name="Quality" value="AutoLow" />
<param name="Loop" value="1" />
<param name="Play" value="1" />
<param name="Scale" value="exactfit" />
<param name="WMode" value="Window" />
<param name="SAlign" value="l" />
</object>';
Go figure!
Re: Problem with Flash Header
i've submitted a contribution that resolves this issue. if you can't wait for the review, you can download it at ############llc.com.
from your link at deconcept, the primary issue with zen cart owners is usually the 2nd bullet point under 1) The default Macromedia provided embed.
requiring flash activation before using it will certainly drive potential customers away. however, i don't buy the detection issue because of the flash penetration rate, which is over 97%. most people know of adobe(macromedia) and the flash player and trust it.
the nnez solution reduces the [script] [noscript] object embed + click to activate issues with 1 php function call.