document.write('
'); function showMsg(){ var xy = fetchOffset(document.getElementById("showMsgA")); var top = xy.top+document.getElementById("showMsgA").offsetHeight; var left = xy.left; $("#showMsgUl").css({"position":"absolute","left":left+"px","top":top+"px","zIndex":99999}); $("#showMsgUl").show(); } var userId = "0"; var remindCount = ""; var online = "1905"; var totalMembers = "118162"; if(userId>0 && remindCount>0){ $(document).ready(function(){ $("body").append(''); $("#remindWindow").css({"position":"absolute"}); moveRemindWindow(); $(window).scroll( function(){ moveRemindWindow(); }).resize(function(){ moveRemindWindow(); }); }); } function moveRemindWindow(){ document.getElementById("remindWindow").style.top=(document.documentElement.scrollTop+document.documentElement.clientHeight-document.getElementById("remindWindow").offsetHeight)+"px"; document.getElementById("remindWindow").style.left=(document.documentElement.scrollLeft+document.documentElement.clientWidth-document.getElementById("remindWindow").offsetWidth)+"px"; } function closeRemindWindow(){ if(document.getElementById("noWindow").checked){ var url = webhost+"/Ajax.php"; $.getScript(url+"?ac=remind"); } $("#remindWindow").slideUp(); } function addfavorite(){ if (document.all){ // window.external.addFavorite('http:/www.ttpet.com','天天宠物网'); window.external.addFavorite(window.location.href,window.document.title); }else if (window.sidebar) { window.sidebar.addPanel('天天宠物网', 'http:/www.ttpet.com', ""); } } $(document).ready(function(){ var now=new Date(); //$("#favoriteIndex").html("设为首页"); //$("#favoriteIndex").append(" | 加入收藏"); $("#onlineMembers").html("当前在线人数:"+online+"人 / 共有"+totalMembers+"位宠友已经加入天天大家庭"); $("#onlineMembers").append(""+now.getFullYear()+"年"+(now.getMonth()+1)+"月"+now.getDate()+"日
"); });