Jump to content


Photo

help with AC_FL_RunContent


  • Please log in to reply
4 replies to this topic

#1 HEki_

HEki_

    Young Padawan

  • Members
  • Pip
  • 167 posts

Posted 04 September 2007 - 03:51 AM

echo "<div id=\"kontejner\">
		  <div id=\"link\" title=\"$opis\" onclick=\"bannerclick.php?tid=$stid','_blank');\"></div>
			  <div id=\"swf\" >
			<script type=\"text/javascript\">
			AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','468','height','60','src','bannerdisplay.php?tid=$stid','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','bannerdisplay.php?tid=$stid' );
			</script><noscript>
		   	<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"468\" height=\"60\">
			<param name=\"movie\" value=\"bannerdisplay.php?tid=$stid\">
			<param name=\"quality\" value=\"high\">
			<param name=\"title\" value=\"$opis\">
			<param name=\"wmode\" value=\"transparent\">
			<embed src=\"bannerdisplay.php?tid=$stid\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"468\" height=\"60\" wmode=\"transparent\"></embed>
			</object></noscript></div>
		  </div>";

this is the code that shows my banners ... banners are stored in a directory and path to those banners are stored in database. Now i would like to use the AC_FL_RunContent.js script to remove that anoying click in IE on every flash object ... But when i insert that script into my php code the swfs dont show up ... i have tried everything and i am stuck with this problem now for a few days and i cant find a solution for this ...

can anyone help me with this?
best regards

#2 Demonslay

Demonslay

    P2L Jedi

  • Members
  • PipPipPip
  • 973 posts
  • Gender:Male
  • Location:A strange world where water falls out of the sky... for no reason.
  • Interests:Graphic Design, Coding, Splinter Cell, Cats

Posted 04 September 2007 - 05:58 PM

Are you completely sure you are using the arguments to that script's function? It almost looks like you are supposed to provide it a hash.
I've never heard of this script, but try this, as it would only make sense to me.

<script type=\"text/javascript\">
AC_FL_RunContent({
	codebase: 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0',
	width: 468,
	height: 60,
	src: 'bannerdisplay.php?tid={$stid}',
	quality: 'high',
	pluginspage: 'http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash',
	movie: 'bannerdisplay.php?tid={$stid}'
});
</script>


#3 HEki_

HEki_

    Young Padawan

  • Members
  • Pip
  • 167 posts

Posted 05 September 2007 - 01:11 AM

HI,

i am using cs dreamweaver and it generates the code itself ... it also creats the .js file ...

thx for your help, ill give it a try!

#4 HEki_

HEki_

    Young Padawan

  • Members
  • Pip
  • 167 posts

Posted 05 September 2007 - 05:38 AM

now i used swfObject:

<script type=\"text/javascript\">
			var so = new SWFObject(\"bannerdisplay.php?tid=$stid\", \"mymovie\", \"468\", \"60\", \"6\", \"\" );
			so.addParam(\"quality\", \"high\");
			so.addParam(\"wmode\", \"transparent\");
			so.addParam(\"title\", \"$opis\");
			so.addParam(\"allowScriptAccess\", \"sameDomain\");
			so.addParam(\"variable\", \"value\");
			so.write(\"swf\");
			</script>

it removes that anoying frame around flash, but it shows up only 1 flash banner ... :S In firefox everything works, on the other hand, IE only shows up 1 banner ...

any ideas?

#5 HEki_

HEki_

    Young Padawan

  • Members
  • Pip
  • 167 posts

Posted 05 September 2007 - 06:29 AM

ok i got it working now ... i had to change the div id for each flash i load it in ...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users