大雀软件园

首页 软件下载 安卓市场 苹果市场 电脑游戏 安卓游戏 文章资讯 驱动下载
技术开发 网页设计 图形图象 数据库 网络媒体 网络安全 站长CLUB 操作系统 媒体动画 安卓相关
当前位置: 首页 -> 网页设计 -> 网页特效 -> 点弹式广告代码 绿色版

点弹式广告代码 绿色版

时间: 2021-07-31 作者:daque

点击页面包车型的士任何场合城市弹出告白的代码,提防把src="zs.gif"中的图片做出通明的没有实质的空缺图片,把document.write('<a href=http://www.daque.cn中的地方换成你的告白实质页面就行。

==================================

<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.daque.cn 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>    

热门阅览

最新排行

Copyright © 2019-2021 大雀软件园(www.daque.cn) All Rights Reserved.