Jquery右下角抖动、浮动 实例代码(兼容ie6、FF)
Jquery右下角抖动、浮动 实例代码(兼容ie6、FF)
发布时间:2016-12-30 来源:查字典编辑
摘要:复制代码代码如下:setTimeout("document.getElementById('qq_dd').style.display='b...

复制代码 代码如下:

setTimeout("document.getElementById('qq_dd').style.display='block'; ",5000);

// 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.writeln("<div id='qq_dd'|0)-(parseInt(this.currentStyle.marginBottom,10)||0)));_bottom:auto;'><div id='my_img'><img src='closed_fk.jpg' id='guanbi'onclick="_gaq.push(['_trackEvent', 'QQDD', 'Click', '关闭']);" /><a href='#' target='_blank'><img src='jieshou_fk.jpg' border='0'/></a><span id='guanbi0'><img src='jujue_fk.jpg' /></span></div></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();

推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
相关阅读
网友关注
最新Javascript教程学习
热门Javascript教程学习
编程开发子分类