Zen Cart Logo

Flash next to image

Locked

Views: 1,005

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
16 May 2008, 5:38 AM
#1
charmedbytina2 avatar

charmedbytina2

Totally Zenned

Join Date:
Mar 2007
Location:
AZ
Posts:
1,890
Plugin Contributions:
0

Flash next to image

I am working on a template and I need to get a logo.swf added to the left of the "logo". Most of the research I've done indicates the code needs to go in the tlp_header.phpb ut on this template I just don't think that would be correct.

Will someone take a look at this and offer up your suggestions?

Thanks!

Tina

oops... almost forgot link ---->>> http:gotoprism.com

16 May 2008, 1:30 PM
#2
elastic avatar

elastic

New Zenner

Join Date:
Dec 2007
Location:
New Jersey
Posts:
76
Plugin Contributions:
0

Re: Flash next to image

charmed, i've been there recently. accomplished what you want to do.

You definitely want to add that swf to the tpl_header.php file for your custom template.

may I suggest you use the swf object method. You will need to download swfobject.js ( javascript file) and you can find more about that here:

http://blog.deconcept.com/swfobject/

i think follow that link tothe latest, which is version 2.0

once you have these, format your javascript like this :

<script type="text/javascript" src="swfobject.js"></script> <script type="text/javascript"> var flashvars = false; var params = { allowscriptaccess: "always" }; var attributes = false; swfobject.embedSWF("myFlashFile.swf", "showFlash", "200", "200", "8.0.0", "expressInstall.swf", flashvars, params, attributes); swfobject.addParam("quality", "high"); swfobject.addParam("wmode", "transparent"); swfobject.write("flashcontent"); </script>

// and then on the template, you place the div tag to position your swf: //

<div class="thisMYFlash" id="showFlash" > <div class="myStyleSheetReferenceHere" id="myStyleSheetReferenceHereID">

You need flash. if you have it, you'll see the flash. if not, you'll see my text here. go get it, install it!!!

</div> </div>

and that should do it. swfobject is the best bet for easiest flash embedding...