php如何增加俩skype标签。
现在有一个代码如下<scripttype="text/javascript">//<![CDATA[vartips;vartheTop=200;varold=theTop...
现在有一个
代码如下
<script type="text/javascript">
//<![CDATA[
var tips; var theTop = 200; var old = theTop;var pos = 0;
function initFloatTips() {
tips = document.getElementById('floatTips');
moveTips();
};
function moveTips() {
var tt=50;
if (window.innerHeight) {
pos = window.pageYOffset
}
else if (document.documentElement && document.documentElement.scrollTop) {
pos = document.documentElement.scrollTop
}
else if (document.body) {
pos = document.body.scrollTop;
}
pos=pos-tips.offsetTop+theTop;
pos=tips.offsetTop+pos/10;
if (pos < theTop) pos = theTop;
if (pos != old) {
tips.style.top = pos+"px";
tt=10;
}
old = pos;
setTimeout(moveTips,tt);
}
window.onload=initFloatTips;
//!]>
</script>
<!--
Skype 'Call me!' button
http://skype.tom.com/help/skypebuttons
-->
<div id="floatTips" style=" height:100px;width:160px;position:absolute; z-index:111111111; right:0; border:5px solid #ddd; padding-left:10px">
<script type="text/javascript" src="http://skype.tom.com/script/skypeCheck40.js"></script>
<a href="skype:box%2Eside?call" onclick="return skypeCheck();"><img src="http://skype.tom.com/help/skypebuttons/buttons/call_green_white_153x63.png" style="border: none;" alt="Call me!" /></a><a href="skype:box%2Eside?call" onclick="return skypeCheck();">hello</a>
</div>
现在想再增加一个skype,和已有的挨着,代码如何实现呢,不大懂js。求助~~ 展开
代码如下
<script type="text/javascript">
//<![CDATA[
var tips; var theTop = 200; var old = theTop;var pos = 0;
function initFloatTips() {
tips = document.getElementById('floatTips');
moveTips();
};
function moveTips() {
var tt=50;
if (window.innerHeight) {
pos = window.pageYOffset
}
else if (document.documentElement && document.documentElement.scrollTop) {
pos = document.documentElement.scrollTop
}
else if (document.body) {
pos = document.body.scrollTop;
}
pos=pos-tips.offsetTop+theTop;
pos=tips.offsetTop+pos/10;
if (pos < theTop) pos = theTop;
if (pos != old) {
tips.style.top = pos+"px";
tt=10;
}
old = pos;
setTimeout(moveTips,tt);
}
window.onload=initFloatTips;
//!]>
</script>
<!--
Skype 'Call me!' button
http://skype.tom.com/help/skypebuttons
-->
<div id="floatTips" style=" height:100px;width:160px;position:absolute; z-index:111111111; right:0; border:5px solid #ddd; padding-left:10px">
<script type="text/javascript" src="http://skype.tom.com/script/skypeCheck40.js"></script>
<a href="skype:box%2Eside?call" onclick="return skypeCheck();"><img src="http://skype.tom.com/help/skypebuttons/buttons/call_green_white_153x63.png" style="border: none;" alt="Call me!" /></a><a href="skype:box%2Eside?call" onclick="return skypeCheck();">hello</a>
</div>
现在想再增加一个skype,和已有的挨着,代码如何实现呢,不大懂js。求助~~ 展开
展开全部
<script type="text/javascript">
//<![CDATA[
var tips; var theTop = 200; var old = theTop;var pos = 0;
function initFloatTips() {
tips = document.getElementById('floatTips');
tips1=document.getElementById('floatTips1');
moveTips();
};
function moveTips() {
var tt=50;
if (window.innerHeight) {
pos = window.pageYOffset
}
else if (document.documentElement && document.documentElement.scrollTop) {
pos = document.documentElement.scrollTop
}
else if (document.body) {
pos = document.body.scrollTop;
}
pos=pos-tips.offsetTop+theTop;
pos=tips.offsetTop+pos/10;
if (pos < theTop) pos = theTop;
if (pos != old) {
tips.style.top = pos+"px";
tips1.style.top=(pos+100)+'px';
tt=10;
}
old = pos;
setTimeout(moveTips,tt);
}
window.onload=initFloatTips;
//!]>
</script>
<!--
Skype 'Call me!' button
http://skype.tom.com/help/skypebuttons
-->
<div id="floatTips" style=" height:100px;width:160px;position:absolute; z-index:111111111; right:0; border:5px solid #ddd; padding-left:10px">
<script type="text/javascript" src="http://skype.tom.com/script/skypeCheck40.js"></script>
<a href="skype:box%2Eside?call" onclick="return skypeCheck();"><img src="http://skype.tom.com/help/skypebuttons/buttons/call_green_white_153x63.png" style="border: none;" alt="Call me!" /></a><a href="skype:box%2Eside?call" onclick="return skypeCheck();">hello</a>
</div>
<div id="floatTips1" style=" height:100px;width:160px;position:absolute; z-index:111111111; right:0; border:5px solid #ddd; padding-left:10px">
<script type="text/javascript" src="http://skype.tom.com/script/skypeCheck40.js"></script>
<a href="skype:box%2Eside?call" onclick="return skypeCheck();"><img src="http://skype.tom.com/help/skypebuttons/buttons/call_green_white_153x63.png" style="border: none;" alt="Call me!" /></a><a href="skype:box%2Eside?call" onclick="return skypeCheck();">hello</a>
</div>
//<![CDATA[
var tips; var theTop = 200; var old = theTop;var pos = 0;
function initFloatTips() {
tips = document.getElementById('floatTips');
tips1=document.getElementById('floatTips1');
moveTips();
};
function moveTips() {
var tt=50;
if (window.innerHeight) {
pos = window.pageYOffset
}
else if (document.documentElement && document.documentElement.scrollTop) {
pos = document.documentElement.scrollTop
}
else if (document.body) {
pos = document.body.scrollTop;
}
pos=pos-tips.offsetTop+theTop;
pos=tips.offsetTop+pos/10;
if (pos < theTop) pos = theTop;
if (pos != old) {
tips.style.top = pos+"px";
tips1.style.top=(pos+100)+'px';
tt=10;
}
old = pos;
setTimeout(moveTips,tt);
}
window.onload=initFloatTips;
//!]>
</script>
<!--
Skype 'Call me!' button
http://skype.tom.com/help/skypebuttons
-->
<div id="floatTips" style=" height:100px;width:160px;position:absolute; z-index:111111111; right:0; border:5px solid #ddd; padding-left:10px">
<script type="text/javascript" src="http://skype.tom.com/script/skypeCheck40.js"></script>
<a href="skype:box%2Eside?call" onclick="return skypeCheck();"><img src="http://skype.tom.com/help/skypebuttons/buttons/call_green_white_153x63.png" style="border: none;" alt="Call me!" /></a><a href="skype:box%2Eside?call" onclick="return skypeCheck();">hello</a>
</div>
<div id="floatTips1" style=" height:100px;width:160px;position:absolute; z-index:111111111; right:0; border:5px solid #ddd; padding-left:10px">
<script type="text/javascript" src="http://skype.tom.com/script/skypeCheck40.js"></script>
<a href="skype:box%2Eside?call" onclick="return skypeCheck();"><img src="http://skype.tom.com/help/skypebuttons/buttons/call_green_white_153x63.png" style="border: none;" alt="Call me!" /></a><a href="skype:box%2Eside?call" onclick="return skypeCheck();">hello</a>
</div>
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询