web前端|js教程
右侧悬浮,在线qq客服
web前端-js教程
网页右侧悬浮滚动QQ在线客服代码
网址导航源码php下载,ubuntu重启的命令,爬虫直播间数据,nte php,哈尔滨seo教师lzw
网站源码能用吗,如何查看ubuntu位数,反爬虫怎么处理,线上php代码,郑州快照seolzw
function myEvent(obj,ev,fn){
if (obj.attachEvent){
obj.attachEvent(on+ev,fn);
}else{
obj.addEventListener(ev,fn,false);
};
};
function getbyClass(id,sClass){
var oParent = document.getElementById(id);
var all = oParent.getElementsByTagName(*);
var array = [];
for (var i=0; i if (all[i].className == sClass){
array.push(all[i]);
};
};
return array;
};
function getStyle(obj,name){
if(obj.currentStyle){
return obj.currentStyle[name];
}else{
return getComputedStyle(obj,false)[name];
};
};
function Running(obj,json,fnEnd){
clearInterval(obj.timer);
obj.timer=setInterval(function(){
var now=0;
var bStop=true;
for (var attr in json){
if(attr==opacity){
now=Math.round(parseFloat(getStyle(obj,attr))*100);
}else{
now=parseInt(getStyle(obj,attr));
};
var speed=(json[attr]-now)/5;
speed=speed>0?Math.ceil(speed):Math.floor(speed);
if(now!=json[attr])bStop=false;
if(attr==opacity){
obj.style.filter=alpha(opacity:+now+speed+);
obj.style.opacity=(now+speed)/100;
}else{
obj.style[attr]=speed+now+px;
};
}
if(bStop){
clearInterval(obj.timer);
if(fnEnd)fnEnd();
}
}, 30);
}
function Flexing(obj,json,fnEnd){
clearInterval(obj.timer);
obj.timer=setInterval(function(){
var now=0;
var bStop=true;
for (var attr in json){
if(!obj.speed)obj.speed={};
if(!obj.speed[attr])obj.speed[attr]=0;
now=parseInt(getStyle(obj,attr));
if(Math.abs(json[attr]-now)>1 || Math.abs(obj.speed[attr])>1){
bStop=false;
obj.speed[attr]+=(json[attr]-now)/5;
obj.speed[attr]*=0.85;
var MaxSpeed=65;
if(Math.abs(obj.speed[attr])>MaxSpeed){
obj.speed[attr]=obj.speed[attr]>0?MaxSpeed:-MaxSpeed;
};
obj.style[attr]=now+obj.speed[attr]+px;
};
};
if(bStop){
clearInterval(obj.timer);
obj.style[attr]=json[attr]+px;
if(fnEnd)fnEnd();
};
}, 30);
}
function setqq(obj,num){
if (obj.length!=num.length){
alert(\ span的个数与QQ号码的个数不符,请设置5个QQ号码!\n\n[设置未成功!]);
return;
}else{
for (var i=0; i<num.length; i++){
obj[i].innerHTML = "";
};
};
};
function settop(id,id2,top){
var obj = document.getElementById(id);
var box = document.getElementById(id2);
obj.style.top = box.style.top = top+px;
};
function dealy(id,time){
var obj = document.getElementById(id);
var timer = setTimeout(function(){
Flexing(obj,{right:-100});
},time*1000);
};
function click_fn(id,id2){
var obj = document.getElementById(id);
var box = document.getElementById(id2);
obj.onclick = function(){
Running(obj,{right:-200},function(){
box.style.display = lock;
Running(box,{right:10, opacity:100});
});
};
box.onclick = function(){
timer = setTimeout(function(){
Running(box,{right:-220,opacity:0},function(){
box.style.display = one;
Flexing(obj,{right:-100});
});
},3000);
};
};
域名注册查询源码,ubuntu系统全盘备份,爬虫宠物 玉米蛇,php 多等,开原seo排名lzw