📄 error lnk2001 unresolved external symbol _main解决办法.mht
字号:
Content-Transfer-Encoding: quoted-printable
Content-Location: http://blog.zndev.com/js/pw_ajax.js
var http_request =3D false;
function send_request(url,callback,data){
http_request=3Dfalse;
if(window.XMLHttpRequest){
http_request=3Dnew XMLHttpRequest();
if(http_request.overrideMimeType){
http_request.overrideMimeType("text/xml");
}
}else if(window.ActiveXObject){
try{
http_request=3Dnew ActiveXObject("Msxml2.XMLHTTP");
}catch(e){
try{
http_request=3Dnew ActiveXObject("Microsoft.XMLHTTP");
}catch(e){}
}
}
if(!http_request){
window.alert("Can't creat XMLHttpRequest Object.");
return false;
}
nowtime =3D new Date().getTime();
url +=3D (url.indexOf("?") >=3D 0) ? "&nowtime=3D" + nowtime : =
"?nowtime=3D" + nowtime;
if(typeof(data) =3D=3D'undefined'){
http_request.open("GET",url,true);
http_request.send(null);
}else{
http_request.open('POST' , url, true);
http_request.setRequestHeader("Content-Length",data.length);
=
http_request.setRequestHeader("Content-Type","application/x-www-form-urle=
ncoded");
http_request.send(data);
}
if(typeof(callback) =3D=3D "function" ){
http_request.onreadystatechange =3D function (){
if (http_request.readyState =3D=3D 1){
=09
}else if(http_request.readyState =3D=3D 2){
=09
}else if(http_request.readyState =3D=3D 3){
=09
}else if(http_request.readyState =3D=3D 4){
if(http_request.status =3D=3D 200 || http_request.status =3D=3D =
304){
=09
callback(http_request);
}else{
alert("Error loading page\n" + http_request.status + ":" + =
http_request.statusText);
}
=09
}
}
}
}
function ajax_convert(str){
f =3D new Array(/\r?\n/g, /\+/g, /\&/g);
r =3D new Array('%0A', '%2B', '%26');
for (var i =3D 0; i < f.length; i++){
str =3D str.replace(f[i], r[i]);
}
return str;
}
------=_NextPart_000_0029_01C790EB.ECA5C670
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://blog.zndev.com/js/function.js
function GetImgSize(img,MaxWidth,MaxHeight){=20
// =
if(img.readyState!=3D"complete"){//=C3=BB=D3=D0=BC=D3=D4=D8=CD=EA=B1=CF
// img.width=3DMaxWidth;=20
// img.height=3DMaxHeight;
// }else{
if(img.offsetWidth<=3DMaxWidth && img.offsetHeight<=3DMaxHeight){
return;
}else{
if(MaxHeight*img.offsetWidth/img.offsetHeight>=3DMaxWidth){
img.width=3DMaxWidth;=20
img.height=3DMaxWidth*img.offsetHeight/img.offsetWidth;
}else{
img.height=3DMaxHeight;
img.width=3DMaxHeight*img.offsetWidth/img.offsetHeight;
}
}
// }
}
function MediaPlay(Type,Obj,strURL,intWidth,intHeight){
=
if(Obj.innerHTML!=3D'=B5=A5=BB=F7=B2=A5=B7=C5=C3=BD=CC=E5=CE=C4=BC=FE'){
Obj.innerHTML =3D =
'=B5=A5=BB=F7=B2=A5=B7=C5=C3=BD=CC=E5=CE=C4=BC=FE';
}else{
switch(Type){
case "swf":
tmpstr=3D'=B9=D8=B1=D5=C3=BD=CC=E5=B2=A5=B7=C5<object =
codebase=3D"http://download.macromedia.com/pub/shockwave/cabs/flash/swfla=
sh.cab#version=3D7,0,0,0" =
classid=3D"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" =
width=3D"'+intWidth+'" height=3D"'+intHeight+'"><param name=3D"movie" =
value=3D"'+strURL+'" /><param name=3D"quality" value=3D"high" /><param =
name=3D"AllowScriptAccess" value=3D"never" /><embed src=3D"'+strURL+'" =
quality=3D"high" =
pluginspage=3D"http://www.macromedia.com/go/getflashplayer" =
type=3D"application/x-shockwave-flash" width=3D"'+intWidth+'" =
height=3D"'+intHeight+'" /></object><br />[<a target=3D_blank =
href=3D'+strURL+'>Full Screen</a>]';
break;
case "wmv":
tmpstr=3D'=B9=D8=B1=D5=C3=BD=CC=E5=B2=A5=B7=C5<object =
classid=3D"clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" =
codebase=3D"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp=
2inf.cab#Version=3D6,0,02,902" type=3D"application/x-oleobject" =
standby=3D"Loading..." width=3D"'+intWidth+'" =
height=3D"'+intHeight+'"><param name=3D"FileName" VALUE=3D"'+strURL+'" =
/><param name=3D"ShowStatusBar" value=3D"-1" /><param name=3D"AutoStart" =
value=3D"true" /><embed type=3D"application/x-mplayer2" =
pluginspage=3D"http://www.microsoft.com/Windows/MediaPlayer/" =
src=3D"'+strURL+'" autostart=3D"true" width=3D"'+intWidth+'" =
height=3D"'+intHeight+'" /></object>';
break;
case "rm":
tmpstr=3D'=B9=D8=B1=D5=C3=BD=CC=E5=B2=A5=B7=C5<object =
classid=3D"clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" =
width=3D"'+intWidth+'" height=3D"'+intHeight+'"><param name=3D"SRC" =
value=3D"'+strURL+'" /><param name=3D"CONTROLS" VALUE=3D"ImageWindow" =
/><param name=3D"CONSOLE" value=3D"one" /><param name=3D"AUTOSTART" =
value=3D"true" /><embed src=3D"'+strURL+'" nojava=3D"true" =
controls=3D"ImageWindow" console=3D"one" width=3D"'+intWidth+'" =
height=3D"'+intHeight+'" /></object>'+
'<br/><object =
classid=3D"clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" =
width=3D"'+intWidth+'" height=3D"32" /><param name=3D"CONTROLS" =
value=3D"StatusBar" /><param name=3D"AUTOSTART" value=3D"true" /><param =
name=3D"CONSOLE" value=3D"one" /><embed src=3D"'+strURL+'" =
nojava=3D"true" controls=3D"StatusBar" console=3D"one" =
width=3D"'+intWidth+'" height=3D"24" /></object>'+'<br /><object =
classid=3D"clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" =
width=3D"'+intWidth+'" height=3D"32" /><param name=3D"CONTROLS" =
value=3D"ControlPanel" /><param name=3D"AUTOSTART" value=3D"true" =
/><param name=3D"CONSOLE" value=3D"one" /><embed src=3D"'+strURL+'" =
nojava=3D"true" controls=3D"ControlPanel" console=3D"one" =
width=3D"'+intWidth+'" height=3D"24" autostart=3D"true" loop=3D"false" =
/></object>';
break;
case "qt":
tmpstr=3D'=B9=D8=B1=D5=C3=BD=CC=E5=B2=A5=B7=C5<embed =
src=3D"'+strURL+'" autoplay=3D"true" loop=3D"false" controller=3D"true" =
playeveryframe=3D"false" cache=3D"false" scale=3D"TOFIT" =
bgcolor=3D"#000000" kioskmode=3D"false" targetcache=3D"false" =
pluginspage=3D"http://www.apple.com/quicktime/" />';
}
Obj.innerHTML =3D tmpstr;
}
}=09
function CopyCode(obj){
var js =3D document.body.createTextRange();
js.moveToElementText(obj);
js.select();=20
js.execCommand("Copy");
}
function delblog(id){
=
if(confirm('=C4=FA=C8=B7=C8=CF=D2=AA=C9=BE=B3=FD=B4=CB=C6=AA=CE=C4=D5=C2=A3=
=BF')){
var url=3Dajxurl+"/blogcp.php?action=3Ddelblog&selid=3D"+id;
itemid=3Did;
send_request(url,del_blog);
}
}
function del_blog(){
if(http_request.responseText=3D=3D2){
GE(itemid).style.display=3D'none';
}else{
alert(http_request.responseText);
}
}
function delcmt(id){
=
if(confirm('=C4=FA=C8=B7=C8=CF=D2=AA=C9=BE=B3=FD=B4=CB=C6=AA=BB=D8=B8=B4=A3=
=BF')){
var url=3Dajxurl+"/blogcp.php?action=3Ddelcmt&id=3D"+id;
itemid=3Did;
send_request(url,del_cmt);
}
}
function del_cmt(){
if(http_request.responseText=3D=3D2){
GE(itemid).style.display=3D'none';
GE("sum").innerHTML=3DGE("sum").innerHTML-1;
}else{
alert("=C4=E3=C3=BB=D3=D0=C8=A8=CF=DE=A3=A1");
}
}
function delconfirm(){
if(confirm('=C8=B7=B6=A8=C9=BE=B3=FD=A3=BF')) {=09
return true;
}else{
return false;
}
}
function addtoclt(id,type){
if(id){
var =
url=3Dajxurl+"/ajax.php?action=3Daddtoclt&itemid=3D"+id+"&type=3D"+type;
send_request(url,addto_clt);
}
}
function addto_clt(){
var msg=3D'';
switch(http_request.responseText){
case '2':msg=3D"=C7=EB=CF=C8=B5=C7=C2=BC";
break;
case '1':msg=3D"=CC=ED=BC=D3=B3=C9=B9=A6";
break;
case =
'4':msg=3D"=C4=FA=D2=D1=BE=AD=CA=D5=B2=D8=C1=CB=B4=CB=C4=DA=C8=DD=A3=AC=C7=
=EB=B2=BB=D2=AA=D6=D8=B8=B4=CC=ED=BC=D3";
break;
case =
'3':msg=3D"=C0=E0=D0=CD=B4=ED=CE=F3=BB=F2=CE=C4=D5=C2=B2=BB=B4=E6=D4=DA=A3=
=A1";
break;
}
alert(msg);
}
//gbook function
function postmsg(){
msg =3D GE("msg_box").value;
username =3D GE("username").value;
msggd =3D GE("msggd").value;
if(msg){
addurl =3D '';
if (msggd) {
addurl =3D "&gdcode=3D" + GE("gdcode").value;
}
var url =3D ajxurl + "/postmsg.php?action=3Dnew";
var param =3D "uid=3D" + uid + "&msg=3D" + ajax_convert(msg) + =
"&username=3D" + ajax_convert(username) + addurl;
send_request(url,post_response,param);
}else{
alert('=C1=F4=D1=D4=C4=DA=C8=DD=B2=BB=C4=DC=CE=AA=BF=D5=A3=A1');
}
}
function post_response(){
GE("msg_box").value=3D'';
if (http_request.responseText =3D=3D 'gdfalse') {
=
alert('=D1=E9=D6=A4=C2=EB=B4=ED=CE=F3=A3=AC=C7=EB=D6=D8=D0=C2=CA=E4=C8=EB=
');
} else{
GE("msgbox").innerHTML=3Dhttp_request.responseText + =
GE("msgbox").innerHTML;
scroll(0,0);
}
}
function gbookcheck()
{
if(document.form1.msg_box.value =3D=3D "")
{
alert("=C1=F4=D1=D4=C4=DA=C8=DD=B2=BB=C4=DC=CE=AA=BF=D5=A3=A1");
document.form1.msg_box.focus();
return false;
}
}
function showreplybox(id){
if(GE("reply_" + id).style.display=3D=3D"none"){
GE("reply_" + id).style.display=3D"";
GE("r_div_" + id).style.display=3D"none";
}else{
GE("reply_" + id).style.display=3D"none";
GE("r_div_" + id).style.display=3D"";
promsg =3D GE("r_content_" + id) ? GE("r_content_" + id).innerText : =
'';
GE("r_div_" + id).innerHTML =3D
"<div id=3D\"g_reply\">" +
"<div style=3D\"padding:1px;margin-bottom:5px;\">" +
"<textarea id=3D\"r_box_" + id +"\" =
style=3D\"width:346px;height:80px;\">" + promsg + "</textarea> " +
"</div>" +
"<div style=3D\"text-align:right;width:350px;\">" +=20
" <input type=3D\"button\" value=3D\"=BB=D8=B8=B4\" =
style=3D\"background-color:#EEEEEE;border:1px solid #333333;\" =
onclick=3D\"replymsg(" + id + ")\"> " +
"</div>" +
"</div><br>";
}
}
function replymsg(id){
msg =3D GE("r_box_" + id).value;
if(msg){
GE("tmpid").value=3Did;
var url =3D ajxurl + "/postmsg.php?action=3Dreply&uid=3D" + uid;
var param =3D "id=3D" + id + "&msg=3D" + ajax_convert(msg);
send_request(url,reply_response,param);
}else{
alert('=BB=D8=B8=B4=B5=C4=C4=DA=C8=DD=B2=BB=C4=DC=CE=AA=BF=D5=A3=A1');
}
}
function reply_response(){
id=3DGE("tmpid").value;
GE("reply_" + id).innerHTML=3Dhttp_request.responseText;
GE("reply_" + id).style.display=3D"";
GE("r_div_" + id).style.display=3D"none";
}
function delmsg(id){
=
if(confirm('=C4=FA=C8=B7=C8=CF=D2=AA=C9=BE=B3=FD=B4=CB=CC=F5=C1=F4=D1=D4=A3=
=A1')){
var url=3Dajxurl + "/postmsg.php?action=3Ddel&uid=3D$uid&id=3D" + id;
send_request(url,del_response);
}
}
function del_response(){
GE("msg_"+http_request.responseText).style.display=3D'none';
}
function getcate(type){
if(type){
var url=3Dajxurl + "/ajax.php?action=3Dgetcate&type=3D"+type;
send_request(url,get_cate);
}else{
GE("scid").innerHTML=3D"";
}
}
function get_cate(){
GE("scid").innerHTML=3Dhttp_request.responseText;
}
function advck(id){
if(id){
var url=3Dajxurl + "/adv.php?id=3D"+id;
send_request(url);
}
}
function commentcheck()
{
if(document.form1.content.value =3D=3D "")
{
alert("=C6=C0=C2=DB=C4=DA=C8=DD=CE=AA=BF=D5!");
document.form1.content.focus();
return false;
}
}
function replaceimg(url){
GE('img_container').src=3Durl;
}
function addfootprint(id){
if(id){
var url=3Dajxurl + "/ajax.php?action=3Dfootprint&itemid=3D"+id;
send_request(url,add_footprint);
}
}
function add_footprint(){
var msg=3D'';
switch(http_request.responseText){
case '2':msg=3D"=B4=ED=CE=F3=B5=C4=CE=C4=D5=C2id";
break;
case =
'1':msg=3D"=C4=FA=B3=C9=B9=A6=B5=C4=CD=C6=BC=F6=C1=CB=B4=CB=C6=AA=CE=C4=D5=
=C2";
break;
case '4':msg=3D"=C4=FA=D2=D1=BE=AD=CD=C6=BC=F6=B9=FD=C1=CB!";
break;
case '3':msg=3D"=CE=B4=B5=C7=C2=BD=B2=BB=C4=DC=CD=C6=BC=F6!";
break;
}
alert(msg);
}
function commendtomenu(){
var url=3Dajxurl + "/commendto.php?action=3Dcommendtomenu";
send_request(url,commendto_menu);
}
function commendto_menu(){
if(http_request.responseText=3D=3D2){
alert('=C7=EB=CF=C8=B5=C7=C2=BD');
}else{
GE('commendtomenu').innerHTML=3Dhttp_request.responseText+'<input =
type=3D"button" value=3D"=CD=C6 =BC=F6" class=3D"btn" =
onclick=3D"commendto();" />';
}
}
function commendto(){
var touid=3DGE('fuid').value;
var url=3Dajxurl + =
"/commendto.php?action=3Dcommendto&itemid=3D"+itemid+"&touid=3D"+touid;
send_request(url,commend_to);
}
function commend_to(){
if(http_request.responseText=3D=3D2){
alert('=C7=EB=CF=C8=B5=C7=C2=BD');
}else if(http_request.responseText=3D=3D3){
alert('=C3=BB=D3=D0=B4=CB=CE=BB=BA=C3=D3=D1');
}else if(http_request.responseText=3D=3D4){
alert('=B4=ED=CE=F3=B5=C4=CE=C4=D5=C2id');
}else{
GE('commendtomenu').innerHTML=3D'<input type=3D"button" =
value=3D"=CD=C6=BC=F6=BA=C3=D3=D1" onclick=3D"commendtomenu();" =
class=3D"btn" />';
alert('=CD=C6=BC=F6=B3=C9=B9=A6');
}
}
/*
HTMLElement.prototype.__defineGetter__=20
(=20
"innerText",=20
function () {=20
var anyString =3D "";=20
var childS =3D this.childNodes;=20
for(var i=3D0; i<childS.length; i++) {=20
if(childS[i].nodeType=3D=3D1) {
anyString +=3D childS[i].tagName=3D=3D"BR" ? '\n' : =
childS[i].innerText;=20
}else if(childS[i].nodeType=3D=3D3) {
anyString +=3D childS[i].nodeValue;=20
}
}=20
return anyString;=20
}=20
);=20
*/
------=_NextPart_000_0029_01C790EB.ECA5C670--
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -