0
我正嘗試向頁面廣告中的插頁式廣告添加關閉按鈕,但我無法使其工作。我試圖按照谷歌提供的說明,但沒有運氣。關閉帶有插頁式廣告的按鈕
這是我的代碼
<script>
$(document).ready(function() {
$(window.parent.document).find('body').css({
"Background-Attachment": "fixed",
"Background-Image": "url('[%Image%]')",
"Background-Position": "top center",
"Background-Repeat": "no-repeat",
});
$(window.parent.document).find('body')
.after('<a href="%%CLICK_URL_UNESC%%[%ClickthroughURL%]" target="_blank">' +
'<img src="%%VIEW_URL_UNESC%%[%Image%]" style="display:block;position:fixed;left:0;top:0;width:100%;height:100%;cursor:pointer" />/a>');
});
</script>
<script>
function closeHandler() {
Enabler.reportManualClose();
Enabler.close();
}
</script>
<style>
#close-btn {
position: absolute;
width: 20px;
height: 18px;
top: 0px;
left: 278px;
cursor: pointer;
z-index:220;
background-image: url('[%Closebtn%]');
background-repeat: no-repeat;
}
</style>
<div id="close-btn"></div>
感謝任何幫助,將不勝感激
沒有運氣還沒有其他建議嗎? –