New Zenner
- Join Date:
- Jan 2009
- Posts:
- 85
- Plugin Contributions:
- 0
Flash banner according to language
I tried a few ways, but couldn't figure out how to make a flash banner in the main area of the webpage. I inserted it to the main body, and i tried to insert the flash in language files, but that didn't work, so i put it in tpl_index_default directly, the code is as following
<div id="bannerThree" class="banners"> <script type="text/javascript"> var swf_width=595 var swf_height=220 var files='images/flash/banner01.jpg|images/flash/banner02.jpg|images/flash/banner03.jpg' var links='promotion/new.html' var texts=''document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ swf_width +'" height="'+ swf_height +'">');
document.write('<param name="movie" value="images/flash/bcastr3.swf"><param name="quality" value="high">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="bcastr_file='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'">');
document.write('<embed src="images/flash/bcastr3.swf" wmode="opaque" FlashVars="bcastr_file='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'& menu="false" quality="high" width="'+ swf_width +'" height="'+ swf_height +'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); document.write('</object>');
</script>