Twopigs
Posts: 147 Joined: 8/22/2002 Status: offline
|
rotating flash banners - 12/13/2006 18:57:54
Hello, I'm sure someone knows this one. I know how to set up roatating banner ads, but I'm trying use the same script to pull in flash files..should be the same as a flash banner but it's not working? here is what I have in the flashrotator.asp file: REDIRECT http://araiamericas.com
WIDTH 436
HEIGHT 450
BORDER 0
*
flashhomepageMoto.html
http://nowhere.com
Buy stuff at BannerCompany1!
50
images/edit.gif
http://www.acme.com
Come shop at Acme.com!
50 Here is the code for flashhomepageMoto.html: <script language="javascript">AC_FL_RunContent = 0;</script>
<script src="Flash/AC_RunActiveContent.js" language="javascript"></script>
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js. In Flash, run \"Apply Active Content Update\" in the Commands menu to copy AC_RunActiveContent.js to the HTML output folder.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
'width', '436',
'height', '450',
'src', 'Flash/Hompage_flashplayer_v2',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'Hompage_flashplayer_v2',
'bgcolor', '#FFFFFF',
'name', 'Hompage_flashplayer_v2',
'menu', 'true',
'allowScriptAccess','sameDomain',
'movie', 'Flash/Hompage_flashplayer_v2',
'salign', ''
); //end AC code
}
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="900" height="190" id="Hompage_flashplayer_v2" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="Flash/Hompage_flashplayer_v2.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /> <embed src="Flash/Hompage_flashplayer_v2.swf" quality="high" bgcolor="#000000" width="436" height="450" name="Hompage_flashplayer_v2" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</noscript> I have the swf file sitting in a folder called "Flash" here is the test page (it's in the middle cell): http://velocityincadmin.com/araifs/test.asp here is the code on the test.asp page: <%
Dim ad
Set ad = Server.CreateObject("MSWC.AdRotator")
Response.Write(ad.GetAdvertisement("flashrotator.asp"))
%> Any ideas? or am I approaching it wrong? thanks in advance!
|