📄 checklogin.js
字号:
temppage += "<img src=\"" + d1 + "Skin/blue/next_d.gif\">";
temppage += " <img src=\"" + d1 + "Skin/blue/end_d.gif\">";
}
}else{
if(parseInt(p2)>1){
temppage = " <img src=\"" + d1 + "Skin/blue/prev.gif\" style=\"cursor:hand;\" onclick=\"ShowDynaPage(" + t1 + "," + (parseInt(p2)-1) + "," + rt1 + ",'" + d1 + "','" + v1 + "');\">";
}else{
temppage = " <img src=\"" + d1 + "Skin/blue/prev_d.gif\">";
}
if(parseInt(p2)<p1){
temppage += "<img src=\"" + d1 + "Skin/blue/next.gif\" style=\"cursor:hand;\" onclick=\"ShowDynaPage(" + t1 + "," + (parseInt(p2)+1) + "," + rt1 + ",'" + d1 + "','" + v1 + "');\">";
}else{
temppage += "<img src=\"" + d1 + "Skin/blue/next_d.gif\">";
}
}
$("dyna_page_" + t1).innerHTML = temppage
}else{
Element.hide("dyna_page_" + t1);
}
}
//***************************
// xmlHTTPinit
//***************************
function getHTTPObject(){
var xmlhttp_request = false;
try{
if( window.ActiveXObject ){
for( var i = 5; i; i-- ){
try{
if( i == 2 ){
xmlhttp_request = new ActiveXObject( "Microsoft.XMLHTTP" );
}else{
xmlhttp_request = new ActiveXObject( "Msxml2.XMLHTTP." + i + ".0" );
xmlhttp_request.setRequestHeader("Content-Type","text/xml");
xmlhttp_request.setRequestHeader("Content-Type","gb2312");
}
break;
}catch(e){
xmlhttp_request = false;
}
}
}else if( window.XMLHttpRequest ){
xmlhttp_request = new XMLHttpRequest();
if (xmlhttp_request.overrideMimeType) {
xmlhttp_request.overrideMimeType('text/xml');
}
}
}catch(e){
xmlhttp_request = false;
}
return xmlhttp_request ;
}
//***************************
//cont for Visitor part
//***************************
function addfangke(ibid,idir)
{
// alert(username);
if(userstat == 'login'){
if(idir==0){
var fangurl = "index.asp?action=addfang";
}else{
var fangurl = idir + "/index.asp?action=addfang";
}
var fang_dom = new ActiveXObject("Microsoft.XMLDOM");
fang_dom.async=false;
var pfang = fang_dom.createProcessingInstruction("xml","version=\"1.0\" encoding=\"gb2312\"");
fang_dom.appendChild(pfang);
var fangRoot = fang_dom.createElement("root");
var fangField = fang_dom.createNode(1,"blogid","");
fangField.text = ibid;
fangRoot.appendChild(fangField);
fangField = fang_dom.createNode(1,"username","");
fangField.text = username;
fangRoot.appendChild(fangField);
fangField = fang_dom.createNode(1,"userid","");
fangField.text = userid;
fangRoot.appendChild(fangField);
fang_dom.appendChild(fangRoot);
var VHttp = getHTTPObject();
VHttp.open("POST",fangurl,false);
VHttp.send(fang_dom);
}
}
//***************************
//Pop-it menu part
//***************************
var defaultMenuWidth="150px" //set default menu width.
var linkset=new Array()
//SPECIFY MENU SETS AND THEIR LINKS. FOLLOW SYNTAX LAID OUT
function geneinner(id,name,url,itype){
linkset[0] = '';
linkset[0] += '<a href="'+siteroot+'User/User_Space.asp?Action=AddRss&url=' + url + '"><span style="color:darkblue">add to my RssRead</span></b></a>';
return linkset;
}
// do not edit
var ie5=document.all && !window.opera
var ns6=document.getElementById
if (ie5||ns6)
document.write('<div id="popitmenu" onMouseover="clearhidemenu();" onMouseout="dynamichide(event)"></div>')
function iecompattest(){
return (document.compatMode && document.compatMode.indexOf("CSS")!=-1)? document.documentElement : document.body
}
function showmenutxt(e,content,optWidth){
if (!document.all&&!document.getElementById)
return
clearhidemenu()
menuobj=ie5? document.all.popitmenu : document.getElementById("popitmenu")
menuobj.innerHTML=content;
menuobj.style.width=(typeof optWidth!="undefined")? optWidth : defaultMenuWidth
menuobj.contentwidth=menuobj.offsetWidth
menuobj.contentheight=menuobj.offsetHeight
eventX=ie5? event.clientX : e.clientX
eventY=ie5? event.clientY : e.clientY
//Find out how close the mouse is to the corner of the window
var rightedge=ie5? iecompattest().clientWidth-eventX : window.innerWidth-eventX
var bottomedge=ie5? iecompattest().clientHeight-eventY : window.innerHeight-eventY
//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<menuobj.contentwidth)
//move the horizontal position of the menu to the left by it's width
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX-menuobj.contentwidth+"px" : window.pageXOffset+eventX-menuobj.contentwidth+"px"
else
//position the horizontal position of the menu where the mouse was clicked
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX+"px" : window.pageXOffset+eventX+"px"
//same concept with the vertical position
if (bottomedge<menuobj.contentheight)
menuobj.style.top=ie5? iecompattest().scrollTop+eventY-menuobj.contentheight+"px" : window.pageYOffset+eventY-menuobj.contentheight+"px"
else
menuobj.style.top=ie5? iecompattest().scrollTop+event.clientY+"px" : window.pageYOffset+eventY+"px"
menuobj.style.visibility="visible"
return false
}
function showmenu(e,id,name,url,optWidth){
if (!document.all&&!document.getElementById)
return
clearhidemenu()
menuobj=ie5? document.all.popitmenu : document.getElementById("popitmenu")
menuobj.innerHTML=geneinner(id,name,url,'rss');
menuobj.style.width=(typeof optWidth!="undefined")? optWidth : defaultMenuWidth
menuobj.contentwidth=menuobj.offsetWidth
menuobj.contentheight=menuobj.offsetHeight
eventX=ie5? event.clientX : e.clientX
eventY=ie5? event.clientY : e.clientY
//Find out how close the mouse is to the corner of the window
var rightedge=ie5? iecompattest().clientWidth-eventX : window.innerWidth-eventX
var bottomedge=ie5? iecompattest().clientHeight-eventY : window.innerHeight-eventY
//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<menuobj.contentwidth)
//move the horizontal position of the menu to the left by it's width
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX-menuobj.contentwidth+"px" : window.pageXOffset+eventX-menuobj.contentwidth+"px"
else
//position the horizontal position of the menu where the mouse was clicked
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX+"px" : window.pageXOffset+eventX+"px"
//same concept with the vertical position
if (bottomedge<menuobj.contentheight)
menuobj.style.top=ie5? iecompattest().scrollTop+eventY-menuobj.contentheight+"px" : window.pageYOffset+eventY-menuobj.contentheight+"px"
else
menuobj.style.top=ie5? iecompattest().scrollTop+event.clientY+"px" : window.pageYOffset+eventY+"px"
menuobj.style.visibility="visible"
return false
}
function contains_ns6(a, b) {
//Determines if 1 element in contained in another- by Brainjar.com
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}
function hidemenu(){
if (window.menuobj){
menuobj.style.visibility="hidden"
}
}
function dynamichide(e){
if (ie5&&!menuobj.contains(e.toElement)){
hidemenu()
}else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget)){
hidemenu()
}
}
function delayhidemenu(){
delayhide=setTimeout("hidemenu()",500)
}
function clearhidemenu(){
if (window.delayhide){
clearTimeout(delayhide)
}
}
function getAPIUrls(root,username,userpass){
var strTempHTML = "";
var iName,iPass;
var syskey = root.item(0).getElementsByTagName("syskey").item(0).text;
var savecookie = root.item(0).getElementsByTagName("savecookie").item(0).text;
if (savecookie != "") {
savecookie = "&savecookie=" + savecookie;
}else{
savecookie = "&savecookie=";
}
if (syskey != "" && username != "") {
iName = "&username=" + username;
if (userpass != "") {
iPass = "&password=" + userpass;
}else{
iPass = "&password=";
}
var iUrls = root.item(0).getElementsByTagName("apiurl");
for (var i=0; i<iUrls.length; i++){
strTempHTML += "<iframe frameborder=\"0\" width=\"1\" height=\"1\" src=\"" + iUrls.item(i).text + "?syskey=" + syskey + iName + iPass + savecookie + "\" \/>";
}
}
return strTempHTML;
}
if (ie5||ns6){
document.onclick=hidemenu
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -