當前位置:蘿卜系統下載站 > 網頁設計教程 > 詳細頁面

點彈式廣告代碼  綠色版

點彈式廣告代碼 綠色版

更新時間:2019-04-25 文章作者:未知 信息來源:網絡 閱讀次數:

網站建設是指使用標識語言(markup language),通過一系列設計、建模、和執行的過程將電子格式的信息通過互聯網傳輸,最終以圖形用戶界面(GUI)的形式被用戶所瀏覽。簡單來說,網頁設計的目的就是產生網站。簡單的信息如文字,圖片(GIF,JPEG,PNG)和表格,都可以通過使超文件標示語言、可擴展超文本標記語言等標示語言放置到網站頁面上。

點擊頁面的任何地方都會彈出廣告的代碼,注意把src="zs.gif"中的圖片做出透明的沒有內容的空白圖片,把document.write('<a href=http://www.xz7.com中的地址換成你的廣告內容頁面就行。

==================================
<Script language="javascript">
<!--
var Then = new Date();
Then.setTime(Then.getTime() + 24*60*60*1000 ); //秒分
var cookieString = new String(documents.cookie);
var cookieHeader = 'POPWIN' ;
var beginPosition = cookieString.indexOf(cookieHeader);
if (beginPosition == -1)
{
        var newtop=0
        var newleft=0
        if (navigator.appName == 'Netscape' ) {
                layerStyleRef="layer.";
                layerRef="document.layers";
                styleSwitch="";
                }
                else
                {
                layerStyleRef="layer.style.";
                layerRef="document.all";
                styleSwitch=".style";

                }
        var autoclick_ok=false;
        function toExit(){
                autoclick_ok=true;
                documents.cookie = "Cookie9=POPWIN;expires="+ Then.toGMTString() +";path=/";
    }

        function doMouseMove() {

                layerName = 'iit'
                eval('var curElement='+layerRef+'["'+layerName+'"]')
                eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"')
                
                if(!autoclick_ok)
                {
                        eval('curElement'+styleSwitch+'.visibility="visible"')
                }else{
                        eval('curElement'+styleSwitch+'.visibility="hidden"')
                }
                
                eval('newleft=document.body.clientWidth-curElement'+styleSwitch+'.pixelWidth')
                eval('newtop=document.body.clientHeight-curElement'+styleSwitch+'.pixelHeight')
                eval('height=curElement'+styleSwitch+'.height')
                eval('width=curElement'+styleSwitch+'.width')
                width=parseInt(width)
                height=parseInt(height)
                if (event.clientX > (document.body.clientWidth - 10 - width))
                {
                newleft=document.body.clientWidth + document.body.scrollLeft - 10 - width
                }
                else
                {
                newleft=document.body.scrollLeft + event.clientX-10
                }
                eval('curElement'+styleSwitch+'.pixelLeft=newleft')

                if (event.clientY > (document.body.clientHeight - 5 - height))
                {
                newtop=document.body.clientHeight + document.body.scrollTop - 5 - height
                }
                else
                {
                newtop=document.body.scrollTop + event.clientY-10
                }
                eval('curElement'+styleSwitch+'.pixelTop=newtop')
}

        document.onmousemove = doMouseMove;

        if (navigator.appName == "Netscape" ) {

        }
        else
        {
                document.write('<div ID=OuterDiv>')
                document.write('<a href=http://www.xz7.com target="_blank"><img ID=iit src="zs.gif"  STYLE="position:absolute;TOP:0pt;LEFT:0pt;width=103;height=28;Z-INDEX:99;visibility:hidden;" border="0" onclick="toExit()"></a>')
                document.write('</div>')

        }
}
-->
</Script>    

大多數人在上網的時候,都會瀏覽網頁提供給我們的信息。

溫馨提示:喜歡本站的話,請收藏一下本站!

本類教程下載

系統下載排行

亚洲嫩草影院久久精品