手机
当前位置:查字典教程网 >编程开发 >Javascript教程 >Jquery右下角抖动、浮动 实例代码(兼容ie6、FF)
Jquery右下角抖动、浮动 实例代码(兼容ie6、FF)
摘要:复制代码代码如下: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();

【Jquery右下角抖动、浮动 实例代码(兼容ie6、FF)】相关文章:

jquery右下角自动弹出可关闭的广告层

加入收藏夹代码(兼容 gecko)

超酷右下浮出广告窗口代码

jQuery结合ajax实现动态加载文本内容

jquery实现动态改变div宽度和高度

JQuery中Text方法用法实例分析

JQuery中DOM事件合成用法实例分析

JQuery中上下文选择器实现方法

JQuery中attr方法和removeAttr方法用法实例

JQuery中DOM实现事件移除的方法

精品推荐
分类导航