?? dispaly.js
字號:
function J_Blog_Link(){
var J_Blog_ID;
var J_Blog_DO;
var J_Blog_Name;
var J_Blog_URL;
var J_Blog_Img;
var J_Blog_Type;
var J_Blog_Content;
var J_Blog_View;
var J_Blog_Auditing;
this.J_Blog_ID = J_Blog_ID;
this.J_Blog_DO = J_Blog_DO;
this.J_Blog_Name = J_Blog_Name;
this.J_Blog_URL = J_Blog_URL;
this.J_Blog_Img = J_Blog_Img;
this.J_Blog_Type = J_Blog_Type;
this.J_Blog_Content = J_Blog_Content;
this.J_Blog_View = J_Blog_View;
this.J_Blog_Auditing = J_Blog_Auditing;
}
J_Blog_Link.prototype.Show = function(){
try{
top.doSetProperty("title","鏈接屬性管理");
top.doSetProperty("description","添加和管理鏈接基礎屬性信息。");
}catch(exception){
;
}
html = ('<form name="frmLinks" action="/j_blog_post.jsp?action=link" method="post" onsubmit="return submitStatus(this);">');
html += ('<input type="hidden" name="J_Blog_DO" value="'+this.J_Blog_DO+'">');
html += ('<input type="hidden" name="J_Blog_ID" value="'+this.J_Blog_ID+'">');
html += ('<table width="96%" border="0" cellspacing="1" cellpadding="3">');
html += ('<tr bgcolor="#F6F6F6">');
html += ('<td width="20%" bgcolor="#FFFFCC">網站名稱:</td><td><input type="text" value="'+this.J_Blog_Name+'" name="J_Blog_Name" size="50" Maxlength="46" allownull="0" /></td>');
html += ('</tr>');
html += ('<tr bgcolor="#F6F6F6">');
html += ('<td width="20%" bgcolor="#FFFFCC">網站地址:</td><td><input type="text" value="'+this.J_Blog_URL+'" name="J_Blog_URL" size="50" Maxlength="50" allownull="0" /></td>');
html += ('</tr>');
html += ('<tr bgcolor="#F6F6F6">');
html += ('<td width="20%" bgcolor="#FFFFCC">Logo地址:</td><td><input type="text" value="'+this.J_Blog_Img+'" name="J_Blog_Img" size="50" Maxlength="50" allownull="0" /></td>');
html += ('</tr>');
html += ('<tr bgcolor="#F6F6F6">');
html += ('<td width="20%" bgcolor="#FFFFCC">簡單介紹:</td><td><input type="text" value="'+this.J_Blog_Content+'" name="J_Blog_Content" size="50" Maxlength="50" allownull="0" /></td>');
html += ('</tr>');
html += ('<tr bgcolor="#F6F6F6">');
html += ('<td width="20%" bgcolor="#FFFFCC">鏈接類型:</td><td><label for="J_Blog_Type1"><input type="radio" name="J_Blog_Type" Id="J_Blog_Type1" value="1" '+IIf(this.J_Blog_Type == 1," checked","")+'> 文字鏈接</label> <label for="J_Blog_Type2"><input type="radio" name="J_Blog_Type" Id="J_Blog_Type2" value="0" '+IIf(this.J_Blog_Type == 0," checked","")+'> 圖片鏈接</label></td>');
html += ('</tr>');
html += ('<tr bgcolor="#F6F6F6">');
html += ('<td width="20%" bgcolor="#FFFFCC">顯示位置:</td><td><label for="J_Blog_View1"><input type="radio" name="J_Blog_View" Id="J_Blog_View1" value="1" '+IIf(this.J_Blog_View == 1," checked","")+'> 首頁顯示</label> <label for="J_Blog_View2"><input type="radio" name="J_Blog_View" Id="J_Blog_View2" value="0" '+IIf(this.J_Blog_View == 0," checked","")+'> 內頁顯示</label></td>');
html += ('</tr>');
html += ('<tr bgcolor="#F6F6F6">');
html += ('<td width="20%" bgcolor="#FFFFCC">是否審核:</td><td><label for="J_Blog_Auditing1"><input type="radio" name="J_Blog_Auditing" Id="J_Blog_Auditing1" value="1" '+IIf(this.J_Blog_Auditing == 1," checked","")+'> 已審核</label> <label for="J_Blog_Auditing2"><input type="radio" name="J_Blog_Auditing" Id="J_Blog_Auditing2" value="0" '+IIf(this.J_Blog_Auditing == 0," checked","")+'> 未審核</label></td>');
html += ('</tr>');
html += ('</table>');
html += ('<input type="submit" style="width:0px;height:0px"/>');
html += ('<input type="reset" style="width:0px;height:0px"/>');
html += ('</form>');
this.editBar();
document.write(html);
}
J_Blog_Link.prototype.editBar = function()
{
var editbar;
var frmInfo;
var blStatus = "";
editbar = parent.frames["frmbar"].document.all.span_editarea;
frmInfo = "parent.frames['showfrm']";
try
{
editbar.innerHTML;
}
catch (e)
{
editbar = parent.frmbar;
frmInfo = "document.frames['frminc']";
}
editbar.innerHTML = ('<input type="button" id="btnAddnew" value="新 建" onclick="'+frmInfo+'.location = \'link/link.jsp?action=addnew\'" disabled> <input type="button" id="btnSubmit" value="提 交" onclick="'+frmInfo+'.doSubmit();" '+blStatus+'> <input type="button" id="btnReset" value="重 寫" onclick="'+frmInfo+'.frmLinks.reset();"> ');
}
/**
* 頻道保存狀態
*/
function submitStatus(frm)
{
if (chkform(frm))
{
try
{
parent.btnAddnew.disabled = false;
parent.btnSubmit.disabled = true;
parent.btnReset.disabled = true;
}
catch (e){
this.disabled = true;
}
return true;
}else{
return false;
}
}
function doSubmit()
{
if (submitStatus(frmLinks))
{
frmLinks.submit();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -