「泰山壓頂」式的全螢幕浮層廣告在活動檔期很常見,但如果只能關不能重播,使用者錯過就沒救了。這個版本把播放權交回手上:可以設自動播放時間,也能隨時手動停止與重播。
· 廣告內容可以是圖片,也可以是 Flash;
· 自動播放的時間長度可設定;
· 提供關閉按鈕,不破壞使用者體驗;
· 關閉後仍可選擇重播,不必重開頁面。
原始碼下載:https://hovertree.com/h/bjaf/8jy44vm8.htm

<LINK rel=stylesheet type=text/css href="https://hovertree.com/texiao/jquery/80/css/hovertree.css">
<!--廣告開始-->
<DIV class="gg_full wrapfix">
<DIV class=gg_fbtn>
<A style="DISPLAY: none" class=gg_freplay title=重播 href="javascript:;" target="_self"></A>
<A class=gg_fclose title=關閉 href="javascript:;" target="_self"></A>
</DIV>
<DIV class=gg_fcon></DIV>
</DIV>
<!--廣告結束-->
<SCRIPT type=text/javascript src="https://down.hovertree.com/jquery/jquery-1.4.2.min.js"></SCRIPT>
<SCRIPT type=text/javascript src="https://hovertree.com/texiao/jquery/80/js/hovertree.js"></SCRIPT>
整組廣告由三個元素組成:最外層的 gg_full 負責鋪滿視窗並攔住捲動,gg_fbtn 是關閉與重播按鈕的容器,gg_fcon 則是實際放素材的內容區。重播按鈕預設用 display: none 藏起來,等廣告被關掉之後才交給腳本顯示出來,這樣的設計讓第一次觀看時畫面保持乾淨。
適用瀏覽器:IE8、360、FireFox、Chrome、Safari、Opera、傲游、搜狗、世界之窗。