Hi,
$('object').live('mousedown',function(){
url = $('.m_banner_show object param[name="movie"]').attr('value');
alert(url);
//filename = url.substring(url.lastIndexOf('/')+1);
//pridedam paspaudima
$.post( getBaseURL() + "index.php?option=com_ReklamuRodymas&controller=welcome&task=addClick&format=raw",{filename: filename});
})
The html code:
<OBJECT id=bnr_banner2_0 codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 width=468 height=60 VIEWASTEXT>
<PARAM NAME="_cx" VALUE="12382">
<PARAM NAME="_cy" VALUE="1587">
<PARAM NAME="FlashVars" VALUE="">
<PARAM NAME="Movie" VALUE="uploads/banners/file4.swf">
<PARAM NAME="Src" VALUE="uploads/banners/file4.swf">
<PARAM NAME="WMode" VALUE="Transparent">
<PARAM NAME="Play" VALUE="-1">
<PARAM NAME="Loop" VALUE="-1">
<PARAM NAME="Quality" VALUE="High">
<PARAM NAME="SAlign" VALUE="">
<PARAM NAME="Menu" VALUE="-1">
<PARAM NAME="Base" VALUE="">
<PARAM NAME="AllowScriptAccess" VALUE=""><PARAM NAME="Scale" VALUE="ShowAll"><PARAM NAME="DeviceFont" VALUE="0"><PARAM NAME="EmbedMovie" VALUE="0"><PARAM NAME="BGColor" VALUE="FFFCDA"><PARAM NAME="SWRemote" VALUE=""><PARAM NAME="MovieData" VALUE=""><PARAM NAME="SeamlessTabbing" VALUE="1"><PARAM NAME="Profile" VALUE="0"><PARAM NAME="ProfileAddress" VALUE=""><PARAM NAME="ProfilePort" VALUE="0"><PARAM NAME="AllowNetworking" VALUE="all"><PARAM NAME="AllowFullScreen" VALUE="false">
<EMBED src="uploads/banners/file4.swf" quality=high WIDTH="468" HEIGHT="60" NAME="bnr_banner2_0" ALIGN="center" wmode="transparent" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" FLASHVARS="clickTag=http://www.google.lt&clickTarget=_blank" ></EMBED></OBJECT>
you can see there is
<PARAM NAME="Movie" VALUE="uploads/banners/file4.swf">
and I want to get the url. On google chrome it gets it, but IE alerts undefined. Have you an idea why is that?