📄 all.js
字号:
var _postXmlHttpProcessPostChangeCallBack;
var _xmlHttpRequestObj;
function postXmlHttp( submitUrl, callbackFunc )
{
_postXmlHttpProcessPostChangeCallBack = callbackFunc;
if(window.createRequest)
{
try{
_xmlHttpRequestObj=window.createRequest();
_xmlHttpRequestObj.open('POST',submitUrl,true);
_xmlHttpRequestObj.onreadystatechange=postXmlHttpProcessPostChange;
_xmlHttpRequestObj.send();
}
catch(ee){}
}
else if(window.XMLHttpRequest)
{
_xmlHttpRequestObj=new XMLHttpRequest();
if (_xmlHttpRequestObj.overrideMimeType) {//设置MiME类别
_xmlHttpRequestObj.overrideMimeType('text/xml');
}
_xmlHttpRequestObj.open('POST',submitUrl,true);
_xmlHttpRequestObj.onreadystatechange=postXmlHttpProcessPostChange;
_xmlHttpRequestObj.send("");
}
else if(window.ActiveXObject)
{
_xmlHttpRequestObj=new ActiveXObject("Microsoft.XMLHTTP");
_xmlHttpRequestObj.open('POST',submitUrl,true);
_xmlHttpRequestObj.onreadystatechange=postXmlHttpProcessPostChange;
_xmlHttpRequestObj.send();
}
};
function postXmlHttpProcessPostChange( )
{
if( _xmlHttpRequestObj.readyState==4 && _xmlHttpRequestObj.status==200 )
{
setTimeout( _postXmlHttpProcessPostChangeCallBack, 1 );
}
}
function showMessage()
{
var err = document.getElementById("errMsg");
if ( err != null )
{
err.innerHTML = _xmlHttpRequestObj.responseText;
err.style.display="block";
}
}
function setalbum() {
parent.amcy_list.history.go(0);
document.getElementById("albumtitle").value = "";
}
function settopic() {
var res = _xmlHttpRequestObj.responseText;
var a = document.getElementById("observe");
var c = document.getElementById("topic1");
var b = document.getElementById("sumtopic");
var d = document.getElementById("topic2");
var u = document.getElementById("uid");
a.value = "";
res = res.split("|");
var atopic = res[0];
var stopic = res[1];
b.innerHTML = "发表评论/评论("+stopic+")";
d.style.display = "none";
ptopic(atopic,u.value);
}
function ptopic(pid,uid) {
var submitUrl = "/general/album/set_topic.php?album_photo="+pid+"&uid="+uid;
//postXmlHttp( submitUrl, stopic);
postXmlHttp( submitUrl, stopic);
}
function stopic() {
var topicres = _xmlHttpRequestObj.responseText;
var c = document.getElementById("topic");
c.innerHTML = topicres;
c.style.display = "block";
document.location.href="#topictitle";
}
function topicsum () {
var res = _xmlHttpRequestObj.responseText;
var b = document.getElementById("sumtopic");
b.innerHTML = "发表评论/评论("+res+")";
}
function showtopic() {
var sumtopic = _xmlHttpRequestObj.responseText;
var b = document.getElementById("sumtopic");
b.innerHTML = "发表评论/评论("+sumtopic+")";
var c = document.getElementById("topic");
c.style.display = "none";
var d = document.getElementById("topic2");
if (d)
{
d.style.display = "none";
}
//ptopic(imgPid[Onecurrent]);
}
var resid;
function edittopic() {
var res = _xmlHttpRequestObj.responseText;
var submitUrl = "/general/album/set_topic.php?pid="+res+"&step=2";
resid = res;
postXmlHttp( submitUrl, etopic);
}
function etopic() {
var resitem = _xmlHttpRequestObj.responseText;
var b = document.getElementById("topiccontent_"+resid);
b.innerHTML = " "+resitem+"<input type=\"hidden\" id=content_"+resid+" value="+resitem+">";
}
function atopic() {
var res = _xmlHttpRequestObj.responseText;
var b = document.getElementById("topic");
b.innerHTML = res;
document.location.href="#topictitle";
}
function listpages(page,pid) {
var submitUrl = "/general/album/modify_album.php?step=5&page_no="+page+"&pid="+pid;
postXmlHttp( submitUrl, setpages);
}
function setpages() {
var commres = _xmlHttpRequestObj.responseText;
var cele = document.getElementById("listpages");
cele.innerHTML = commres;
}
function getalbumlist(){
var res = _xmlHttpRequestObj.responseText;
var cele = document.getElementById("albumlist");
cele.innerHTML = res;
}
function listalbumpages(page,pid) {
var submitUrl = "/general/album/amcy_list.php?step=1&page_no="+page+"&pid="+pid;
postXmlHttp( submitUrl, getalbumlist);
}
function listallalbumpages(page) {
var submitUrl = "/general/album/amcy_list.php?step=3&page_no="+page;
postXmlHttp( submitUrl, getalbumlist);
}
function listshalbumpages(page) {
var submitUrl = "/general/album/amcy_list.php?step=2&page_no="+page;
postXmlHttp( submitUrl, getalbumlist);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -