Jquery右下角抖动、浮动 实例代码(兼容ie6、FF)
2013-08-15 18:02
681 查看
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' class='foot_scroll' style='display:none;position:fixed; margin:3px;bottom:3px; right:5px;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; *left:550px; width:214px; height:124px; font-size:12px; color:#1670eb; background:url(online_cn_fk.png) no-repeat;'><img src='closed_fk.jpg' style='float:right; cursor:pointer;' id='guanbi'onclick="_gaq.push(['_trackEvent', 'QQDD', 'Click', '关闭']);" /><a href='#' target='_blank' style='display:block; margin:97px 0 0 100px; display:inline; float:left; color:#1670eb;'><img src='jieshou_fk.jpg' onclick="_gaq.push(['_trackEvent', 'QQDD', 'Click', '咨询']);" border='0'/></a><span style='cursor:pointer; float:right; margin:74px 35px 0 0; display:inline;' id='guanbi0'><img src='jujue_fk.jpg' onclick="_gaq.push(['_trackEvent', 'QQDD', 'Click', '关闭']);" /></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 自动收缩浮动在线客服代码,QQ客服、在线MSN、旺旺,兼容IE、 FF、Google Chrome
- 固定位置浮动广告代码(兼容IE6、IE7、FF)
- jquery 导航代码,兼容IE6,IE7,FF,OPREA,谷歌。自己修改其的BUG,特此保存以后研究。 (转)
- ECshop两个自动收缩浮动在线客服代码,QQ客服、在线MSN、旺旺,兼容IE、 FF
- jQuery页面滚动浮动层智能定位实例代码
- javascript获取鼠标位置部分的实例代码(兼容IE,FF)
- jquery实现文件树目录、折叠目录树代码(兼容IE6,IE7)
- 一行CSS代码解决IE6 浮动层 抖动BUG
- 兼容各类主流浏览器IE6、IE7、FF、Opera的加入收藏代码
- [JavaScript实例] 兼容IE和最新FF的复制粘贴代码
- 基于jQuery的横向/纵向下拉菜单JS代码(兼容IE6、IE7、IE8、firefox)
- 用js实现table单元格高宽调整,兼容合并单元格(兼容IE6、7、8、FF)实例
- javascript获取鼠标位置部分的实例代码(兼容IE,FF)
- javascript获取鼠标位置部分的实例代码(兼容IE,FF)
- 用js实现table单元格高宽调整,兼容合并单元格(兼容IE6、7、8、FF)实例
- 纯CSS定位的固定浮动层代码 不闪 兼容IE6 8 火狐 谷歌等
- ECshop两个自动收缩浮动在线客服代码,QQ客服、在线MSN、旺旺,兼容IE、 FF
- JavaScript经典代码【一】【DIV+CSS解决IE6,IE7,IE8,FF兼容问题】
- jQuery实现图片信息的浮动显示实例代码