Jquery右下角抖动、浮动实例代码(兼容ie6、FF)
2023-06-13 09:15:04 时间
setTimeout("document.getElementById("qq_dd").style.display="block";",5000);
//JavaScriptDocument
$(function(){
if($.browser.msie&&$.browser.version=="6.0"&&$("html")[0].scrollHeight>$("html").height())
$("html").css("overflowY","scroll");
$("html").css("overflowX","hidden");
});
functionright_down(){
document.writeln("<divid="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;"><divid="my_img"style="position:relative;*left:550px;width:214px;height:124px;font-size:12px;color:#1670eb;background:url(online_cn_fk.png)no-repeat;"><imgsrc="closed_fk.jpg"style="float:right;cursor:pointer;"id="guanbi"onclick="_gaq.push(["_trackEvent","QQDD","Click","关闭"]);"/><ahref="#" target="_blank"style="display:block;margin:97px00100px;display:inline;float:left;color:#1670eb;"><imgsrc="jieshou_fk.jpg"onclick="_gaq.push(["_trackEvent","QQDD","Click","咨询"]);" border="0"/></a><spanstyle="cursor:pointer;float:right;margin:74px35px00;display:inline;"id="guanbi0"><imgsrc="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();
});
functionrattleimage(){$("#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的Ajax实例(附完整代码)
- 初窥JQuery-Jquery简介入门了解篇
- jQuery页面滚动浮动层智能定位实例代码
- input和textarea输入框最大文字限制的jquery插件
- jquery使用ColorBox弹出图片组浏览层实例演示
- jquery多选项卡效果实例代码(附效果图)
- jquery图片放大镜功能的实例代码
- Jquery图片滚动与幻灯片的实例代码
- jQuery学习笔记(2)--用jquery实现各种模态提示框代码及项目构架
- jquery实现的可隐藏重现的靠边悬浮层实例代码
- 用jquery生成二级菜单的实例代码
- 基于jquery编写的横向自适应幻灯片切换特效的实例代码
- jquery利用ajax调用后台方法实例
- jquery实现手风琴效果实例代码
- jQuery处理xml格式的返回数据(实例解析)
- jquery实现动态菜单的实例代码
- JQuery处理json与ajax返回JSON实例代码
- jquery中$.post()方法的简单实例
- JQuery+Ajax无刷新分页的实例代码
- jQuery文本框得失焦点的简单实例
- Jquery实现点击按钮,连续地向textarea中添加值的实例代码
- jQuery队列操作方法实例
- jQuery实现HTML5placeholder效果实例
- jQuery+PHP实现的掷色子抽奖游戏实例
- jQuery实现拖动调整表格单元格大小的代码实例
- jQuery使用之标记元素属性用法实例
- jQuery使用之设置元素样式用法实例