JS右下角抖动弹窗

admin11年前分享665
// JavaScript Document
$(function(){
if($.browser.msie&&$.browser.version=="6.0"&&$("html")[0].scrollHeight>$("html").height())
$("html").css("overflowY","scroll");
$("html").css("overflowX","hidden");
});
function right_down(){
document.write("<div class='foot_scroll' style='position:fixed; bottom:0; right:0; z-index:1000;_position:absolute; _top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0)));_bottom:auto;'><div id='my_img' style='position:relative; width:214px; height:124px; font-size:12px; color:#1670eb; background:url(/templates/default/skins/default/images/bomb.png) no-repeat;'><img src='/templates/default/skins/default/images/click0.gif' style='float:right; cursor:pointer;' id='guanbi' /><a href='http://lwt.zoosnet.net/LR/Chatpre.aspx?id=LWT63012690&p=qqdoudong' style='display:block; margin:90px 0 0 130px; display:inline; float:left; color:#1670eb;' target='_blank'>接受</a><span style='cursor:pointer; float:right; margin:69px 22px 0 0; display:inline;' id='guanbi0'>拒绝</span></div>");
document.write("</div>");
}
right_down();
$("#guanbi").click(function(){
$("#my_img").hide();
});
$("#guanbi0").click(function(){
$("#my_img").hide();
});
function rattleimage(){$("#my_img").animate({top:'+=3'},50);$("#my_img").animate({left:'+=3'},50);$("#my_img").animate({top:'-=3'},50);$("#my_img").animate({left:'-=3'},50);$("#my_img").animate({top:'+=3'},50);$("#my_img").animate({left:'+=3'},50);$("#my_img").animate({top:'-=3'},50);$("#my_img").animate({left:'-=3'},50);$("#my_img").animate({top:'+=3'},50);$("#my_img").animate({left:'+=3'},50);$("#my_img").animate({top:'-=3'},50);$("#my_img").animate({left:'-=3'},50);$("#my_img").animate({top:'+=3'},50);$("#my_img").animate({left:'+=3'},50);$("#my_img").animate({top:'-=3'},50);$("#my_img").animate({left:'-=3'},50);$("#my_img").animate({top:'+=3'},50);$("#my_img").animate({left:'+=3'},50);$("#my_img").animate({top:'-=3'},50); $("#my_img").animate({left:'-=3'},50);$("#my_img").fadeOut("slow");$('#my_img').fadeIn('slow');setTimeout("rattleimage()",10000);}
rattleimage();
 
aaaaaaaa

发表评论    

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。