javascript 常用代码大全(7)

2008-02-23 07:43:18来源:互联网 阅读 ()

新老客户大回馈,云服务器低至5折

//Build Window
include.startDownload(CW_url, function(source){content=source});

function insert_content(){
var temp = "";
CW_Body.style.overflow= "hidden";
CW_Body.style.backgroundColor= "white";
CW_Body.style.border= "solid black 1px";
content = content.replace(/<a ([^>]*)>/g,"<a onclick='parent.open(this.href);return false' $1>");
temp = "<table width=100% height=100% cellpadding=0 cellspacing=0 border=0>";
temp = "<tr style=';font-size:12px;background:#0099CC;height:20;cursor:default' ondblclick=\"Max.innerText=Max.innerText=='1'?'2':'1';parent.if_max=!parent.if_max;parent.show_CW();\" onmouseup='parent.drag_up(event)' onmousemove='parent.drag_move(event)' onmousedown='parent.drag_down(event)' onselectstart='return false' oncontextmenu='return false'>";
temp = "<td style='color:#ffffff;padding-left:5px'>Chromeless Window For IE6 SP1</td>";
temp = "<td style='color:#ffffff;padding-right:5px;' align=right>";
temp = "<span id=Help onclick=\"alert('Chromeless Window For IE6 SP1 - Ver 1.0\\n\\nCode By Windy_sk\\n\\nSpecial Thanks For andot')\" style=\"" CSStext "font-family:System;padding-right:2px;\">?</span>";
temp = "<span id=Min onclick='parent.New_CW.hide();parent.blur()' style=\"" CSStext "font-family:Webdings;\" title='Minimum'>0</span>";
temp = "<span id=Max onclick=\"this.innerText=this.innerText=='1'?'2':'1';parent.if_max=!parent.if_max;parent.show_CW();\" style=\"" CSStext "font-family:Webdings;\" title='Maximum'>1</span>";
temp = "<span id=Close onclick='parent.opener=null;parent.close()' style=\"" CSStext "font-family:System;padding-right:2px;\" title='Close'>x</span>";
temp = "</td></tr><tr><td colspan=2>";
temp = "<div id=include style='overflow:scroll;overflow-x:hidden;overflow-y:auto; HEIGHT: 100%; width:" CW_width "'>";
temp = content;
temp = "</div>";
temp = "</td></tr></table>";
CW_Body.innerHTML = temp;
}

setTimeout("insert_content()",1000);

var if_max = true;
function show_CW(){
window.moveTo(10000, 10000);
if(if_max){
New_CW.show(CW_top, CW_left, CW_width, CW_height);
if(typeof(New_CW.document.all.include)!="undefined"){
New_CW.document.all.include.style.width = CW_width;
New_CW.document.all.Max.innerText = "1";
}

}else{
New_CW.show(0, 0, screen.width, screen.height);
New_CW.document.all.include.style.width = screen.width;
}
}

window.onfocus = show_CW;
window.onresize = show_CW;

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:用JavaScript实现上下文字滚动特效

下一篇:java方式来写js程序(demo)