Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Embeding flash into the banner section of my template?

Embeding flash into the banner section of my template?

Locked

Views: 693

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
7 Sep 2010, 9:24 PM
#1
kylepoyser avatar

kylepoyser

New Zenner

Join Date:
Sep 2010
Posts:
10
Plugin Contributions:
0

Embeding flash into the banner section of my template?

Hello again, I'm trying to figure out the best way to execute embedding a flash .swf into the "Banner" section of my template.

Here is a link to my shopping cart:
www.completestruts.com

Basically I have this .swf file that would fit nicely into the section where you currently see the "Free Shipping Promo"

Is it possible?

How?

Thanks in advance!

8 Sep 2010, 2:58 PM
#3
kylepoyser avatar

kylepoyser

New Zenner

Join Date:
Sep 2010
Posts:
10
Plugin Contributions:
0

Re: Embeding flash into the banner section of my template?

Hi, maybe you could help me... as of now within the banner manager section of my admin I have added this code:

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

		// JAVASCRIPT VARS
		// cache buster
		var cacheBuster = "?t=" + Date.parse(new Date());		
		
		// stage dimensions
		var stageW = 930;//"100%";
		var stageH = 267;//"100%";
		
		
		// ATTRIBUTES
	    var attributes = {};
	    attributes.id = 'FlabellComponent';
	    attributes.name = attributes.id;
	    
		// PARAMS
		var params = {};
		params.bgcolor = "#ffffff";
		

	    /* FLASH VARS */
		var flashvars = {};				
		
		/// if commented / delete these lines, the component will take the stage dimensions defined 
		/// above in "JAVASCRIPT SECTIONS" section or those defined in the settings xml			
		flashvars.componentWidth = stageW;
		flashvars.componentHeight = stageH;
		
		/// path to the content folder(where the xml files, images or video are nested)
		/// if you want to use absolute paths(like "http://domain.com/images/....") then leave it empty("")
		flashvars.pathToFiles = "banner/";
		flashvars.xmlPath = "xml/banner.xml";
					
		
		/** EMBED THE SWF**/
		swfobject.embedSWF("preview.swf"+cacheBuster, attributes.id, stageW, stageH, "9.0.124", "js/expressInstall.swf", flashvars, params);
		
	</script>
<div id="FlabellComponent"> <p>In order to view this object you need Flash Player 9+ support!</p> <a href="http://www.adobe.com/go/getflashplayer"> <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player"/> </a> </div>

Basically im tying to hard code the flash inside the banner manager so far I am getting this result:

www.completestruts.com

It is obviously showing up where I need it to... I just need to figure out what im missing for the actual flash to work!