2011-01-13 20 views
0

我想在我的Flex 3網站上設置AdBrite。 AdBrite建議我使用iFrame。我以前從未使用過iFrame。有關如何設置它的任何建議?如何在Flex 3網站上使用iFrames設置AdBrite

謝謝。

-Laxmidi

UPDATE Flextras.com還跟張貼一些鏈接。 (我在發佈前做過Google)。我打算使用可在以下網址找到的flex-iframe:http://code.google.com/p/flex-iframe/。但是,我不知道如何去適應這個示例代碼素材集與工作:

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
       xmlns:flexiframe="http://code.google.com/p/flex-iframe/"> 

       <flexiframe:IFrame id="googleIFrame" 
          label="Google" 
          source="http://www.google.com" 
          width="80%" 
          height="80%"/> 
<mx:Application> 

如何進行的任何建議嗎?謝謝。

-Laxmidi

UPDATE:

請找到廣告代碼的下方。我需要弄清楚如何在iFrame中使用它:

<script type="text/javascript"> 
var AdBrite_Title_Color = 'FFFFFF'; 
var AdBrite_Text_Color = '000000'; 
var AdBrite_Background_Color = '8C9DD1'; 
var AdBrite_Border_Color = 'CCCCCC'; 
var AdBrite_URL_Color = '008000'; 
try{var AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==''?document.location:document.referrer;AdBrite_Referrer=encodeURIComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe='';var AdBrite_Referrer='';} 
</script> 
<span style="white-space:nowrap;"><script type="text/javascript">document.write(String.fromCharCode(60,83,67,82,73,80,84));document.write(' src="http://ads.adbrite.com/mb/text_group.php?sid=2345566&zs=2222385f3630&ifr='+AdBrite_Iframe+'&ref='+AdBrite_Referrer+'" type="text/javascript">');document.write(String.fromCharCode(60,47,83,67,82,73,80,84,62));</script> 
<a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=2345566&afsid=1"><img src="http://files.adbrite.com/mb/images/adbrite-your-ad-here-banner.gif" style="background-color:#CCCCCC;border:none;padding:0;margin:0;" alt="Your Ad Here" width="11" height="60" border="0" /></a></span> 

謝謝你的帖子。

-Laxmidi

回答

1

你有沒有谷歌Flex iFrame。它配備了一些有用的鏈接:

http://code.google.com/p/flex-iframe/

http://www.themidnightcoders.com/blog/2006/12/mixing-html-and-flex-using-iframe.html

http://www.ohloh.net/p/flex-iframe

鼓聲洞察也有柔性的HTML Component它使用的iFrame伎倆。

更新:

樓主貼出的代碼,所以此更新關於這一點。若要使用素材集IFRAME,只是通過改變源指定的URL與它的信息素材集的HTML頁面:

考慮到用戶的代碼:

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
       xmlns:flexiframe="http://code.google.com/p/flex-iframe/"> 

       <flexiframe:IFrame id="googleIFrame" 
          label="Google" 
          source="http://www.mysite.com/adBright.html" 
          width="80%" 
          height="80%"/> 
<mx:Application> 
+0

嗨Flextras.com,謝謝你的消息。我做過Google。我一直在查看http://code.google.com/p/flex-iframe/上的代碼。我還沒有弄清楚,如何使用AdBrite。我會在第二秒更詳細地更新我的問題。 -Laxmidi – Laxmidi 2011-01-13 16:04:49

相關問題