2012年7月1日 星期日

在flash上面放一個背景透明連結


因為在ie flash
getUrl("xxx.htm","_blank")另開新連結不一定跳的出來
所以在flash上面放一個透明的htm的連結

<style type="text/css">
a.linkbox{
 background-color:rgba(0%,0%,0%,0);
 display:block;
 height:100px;
 width:100px;


 background-color:#000\9;/*ie all*/
 filter:alpha(opacity=10)\9;/*ie all*/
 _background:none;/*ie6*/
}
</style>

<a href="http://www.frt.com.tw/_images/20120524094735651_0001.jpg" target="_blank" class="linkbox"></a>


google使用
background-color:rgba(0%,0%,0%,0);

firefox和ie使用
background-color:#000;
filter:alpha(opacity=10);

ie6就沒辦法了(攤手)

沒有留言:

張貼留言