<script language="JavaScript1.2">
var ie=document.all
var dom=document.getElementById
var ns4=document.layersvar bouncelimit=32 //(must be divisible by 8)
var curtop
var direction="up"
var boxheight=''function initbox(){
if (!dom && !ie && !ns4)
return
crossobj=(dom)?document.getElementById("dropin").style : ie? document.all.dropin : document.dropin
scroll_left=(ie)? document.body.scrollTop : window.pageYOffset
crossobj.left=scroll_left-250
crossobj.visibility=(dom||ie)? "visible" : "show"
dropstart=setInterval("dropin()",30)
}function dropin(){
scroll_left=(ie)? document.body.scrollTop : window.pageYOffset
if (parseInt(crossobj.left)<10+scroll_left)
crossobj.left=parseInt(crossobj.left)+10
else{
clearInterval(dropstart)
bouncestart=setInterval("bouncein()",10)
}
}function bouncein(){
crossobj.left=parseInt(crossobj.left)-bouncelimit
if (bouncelimit<0)
bouncelimit+=8
bouncelimit=bouncelimit*-1
if (bouncelimit==0){
clearInterval(bouncestart)
}
}function dismissbox(){
if (window.bouncestart) clearInterval(bouncestart)
crossobj.visibility="hidden"
}
window.onload=initbox
function onMaxClick(){
var oMax = arguments[0];
oMax.style.display = "none";
oMax.previousSibling.style.display = "inline";
oMax.parentNode.nextSibling.style.display = "inline";
}
function onCloseClick(){
arguments[0].parentNode.parentNode.style.display = 'none';
}
function onMinClick(){
var oMin = arguments[0];
oMin.style.display = "none";
oMin.nextSibling.style.display = "inline";
oMin.parentNode.nextSibling.style.display = "none";
}
</script>
<div id="dropin" style="width:300px;background-color:#FDF3D5;border: orange 1px solid;position:absolute;visibility:hidden;top:expression((this.offsetParent.clientHeight/2)-(this.clientHeight/2)+this.offsetParent.scrollTop);">
<div class="top" style="position: relative;height: 100px; float:right; width:20;background-color:orange">
<span style="position: absolute; right:130;top:0">
</span>
<span style="position: absolute; right:15;top:0;display:inline" onclick="onMinClick(this)">最小化
</span>
<span style="position: absolute; right:15;top:0;display:none" onclick="onMaxClick(this)">最大化
</span>
</div>
<div class="bottom" style="height:200px; width:100; float:right;padding: 20px; color:green; font-weight:bold;">
This is the content!
</div>
</div>
var ie=document.all
var dom=document.getElementById
var ns4=document.layersvar bouncelimit=32 //(must be divisible by 8)
var curtop
var direction="up"
var boxheight=''function initbox(){
if (!dom && !ie && !ns4)
return
crossobj=(dom)?document.getElementById("dropin").style : ie? document.all.dropin : document.dropin
scroll_left=(ie)? document.body.scrollTop : window.pageYOffset
crossobj.left=scroll_left-250
crossobj.visibility=(dom||ie)? "visible" : "show"
dropstart=setInterval("dropin()",30)
}function dropin(){
scroll_left=(ie)? document.body.scrollTop : window.pageYOffset
if (parseInt(crossobj.left)<10+scroll_left)
crossobj.left=parseInt(crossobj.left)+10
else{
clearInterval(dropstart)
bouncestart=setInterval("bouncein()",10)
}
}function bouncein(){
crossobj.left=parseInt(crossobj.left)-bouncelimit
if (bouncelimit<0)
bouncelimit+=8
bouncelimit=bouncelimit*-1
if (bouncelimit==0){
clearInterval(bouncestart)
}
}function dismissbox(){
if (window.bouncestart) clearInterval(bouncestart)
crossobj.visibility="hidden"
}
window.onload=initbox
function onMaxClick(){
var oMax = arguments[0];
oMax.style.display = "none";
oMax.previousSibling.style.display = "inline";
oMax.parentNode.nextSibling.style.display = "inline";
}
function onCloseClick(){
arguments[0].parentNode.parentNode.style.display = 'none';
}
function onMinClick(){
var oMin = arguments[0];
oMin.style.display = "none";
oMin.nextSibling.style.display = "inline";
oMin.parentNode.nextSibling.style.display = "none";
}
</script>
<div id="dropin" style="width:300px;background-color:#FDF3D5;border: orange 1px solid;position:absolute;visibility:hidden;top:expression((this.offsetParent.clientHeight/2)-(this.clientHeight/2)+this.offsetParent.scrollTop);">
<div class="top" style="position: relative;height: 100px; float:right; width:20;background-color:orange">
<span style="position: absolute; right:130;top:0">
</span>
<span style="position: absolute; right:15;top:0;display:inline" onclick="onMinClick(this)">最小化
</span>
<span style="position: absolute; right:15;top:0;display:none" onclick="onMaxClick(this)">最大化
</span>
</div>
<div class="bottom" style="height:200px; width:100; float:right;padding: 20px; color:green; font-weight:bold;">
This is the content!
</div>
</div>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货