2013-06-18 103 views
0

我討厭flash,但是我們的一位客戶用clickTAG出售了一個Flash廣告,我無法讓click標籤正常工作。廣闊的搜索和無數次嘗試後,我得:Flash Click Tag w SWFObject

<div id='flashdiv'></div> 
<script type='text/javascript'> 
var flashvars = {}; 
flashvars.clickTAG = 'http://www.domain.com/track.asp?id=93'; 
var params = {}; 
var attributes = {}; 
var so = new SWFObject('/flash/ad_2013_728x90.swf', 'mymovie', '728', '90', '8', '#336699', flashvars, params, attributes);so.write('flashdiv'); 
</script> 

這可正確顯示廣告,光標指針(光標是一個指針之前,我開始實施clickTAG的嵌入),但沒有任何反應你的時候單擊。

關於我要去哪裏的任何想法都是錯誤的?

回答

0

我破解了(注意so.addVariable):

<div id='modestoflash'></div> 
<script type='text/javascript'> 
var clickTag = escape('http://www.farmbusiness.cc/track.asp?id=93'); 
var so = new SWFObject('/flash/modesto_2013_728x90.swf', 'mymovie', '728', '90', '8'); 
so.addVariable('clickTag', clickTag); 
so.write('modestoflash'); 
</script>