📄 vartool.js
字号:
/*-----------------------------------------------------------
函数配置精灵
如果您在使用过程中发现任何错误或异常请及时联系我们。
Author: marquee (qq:278836516)
Date: 2005-5 (www.mb999.com)
-------------------------------------------------------------*/
//文章调用
function mkArticleDisplay()
{
var ArticleIsHaveIco,ArticleIsShowTime,ArticleDisplayNum,ArticleMaxWord,ArticleOrderWord,ArticleTypeID;
if(document.ArticleDisplayForm.ArticleDisplayNum.value==""){
alert("请填写显示数量!!");
document.ArticleDisplayForm.ArticleDisplayNum.focus();
return false;
}
else{
ArticleDisplayNum = document.ArticleDisplayForm.ArticleDisplayNum.value;
}
if(document.ArticleDisplayForm.ArticleMaxWord.value==""){
alert("请填写显示的最大字数!!");
document.ArticleDisplayForm.ArticleMaxWord.focus();
return false;
}
else{
ArticleMaxWord = document.ArticleDisplayForm.ArticleMaxWord.value;
}
if(document.ArticleDisplayForm.ArticleIsShowTime.checked)
ArticleIsShowTime = 1;
else
ArticleIsShowTime = 0;
if(document.ArticleDisplayForm.ArticleIsHaveIco.checked)
ArticleIsHaveIco = 1;
else
ArticleIsHaveIco = 0;
if(document.ArticleDisplayForm.ArticleIsHaveIco.checked && document.ArticleDisplayForm.ArticleIcoPath.value==""){
alert("请填写图标地址!!");
document.ArticleDisplayForm.ArticleIcoPath.focus();
return false;
}
if(document.ArticleDisplayForm.ArticleTypeID.value == "")
{
alert("必须填写一个分类ID,如果想全部调用则填0");
document.ArticleDisplayForm.ArticleTypeID.focus();
return false;
}
ArticleTypeID = document.ArticleDisplayForm.ArticleTypeID.value;
ArticleIcoPath = document.ArticleDisplayForm.ArticleIcoPath.value;
ArticleOrderWord = document.ArticleDisplayForm.ArticleOrderWord.options[document.ArticleDisplayForm.ArticleOrderWord.selectedIndex].value;
document.ArticleDisplayForm.ArticleDisplay.value = "<%call takeArticle("+ArticleTypeID+"," +ArticleDisplayNum+ "," +ArticleIsShowTime+ "," +ArticleIsHaveIco+ ",\"" +ArticleIcoPath+ "\"," +ArticleMaxWord+ ",\"" +ArticleOrderWord+ "\")%>";
}
function mkpArticleDisplay() //带分页功能文章调用
{
var pArticleIsHaveIco,pArticleIsShowTime,pArticleDisplayNum,pArticleMaxWord;
if(document.pArticleDisplayForm.pArticleDisplayNum.value==""){
alert("请填写显示数量!!");
document.pArticleDisplayForm.pArticleDisplayNum.focus();
return false;
}
else{
pArticleDisplayNum = document.pArticleDisplayForm.pArticleDisplayNum.value;
}
if(document.pArticleDisplayForm.pArticleMaxWord.value==""){
alert("请填写显示的最大字数!!");
document.pArticleDisplayForm.pArticleMaxWord.focus();
return false;
}
else{
pArticleMaxWord = document.pArticleDisplayForm.pArticleMaxWord.value;
}
if(document.pArticleDisplayForm.pArticleIsShowTime.checked)
pArticleIsShowTime = 1;
else
pArticleIsShowTime = 0;
if(document.pArticleDisplayForm.pArticleIsHaveIco.checked)
pArticleIsHaveIco = 1;
else
pArticleIsHaveIco = 0;
if(document.pArticleDisplayForm.pArticleIsHaveIco.checked && document.pArticleDisplayForm.pArticleIcoPath.value==""){
alert("请填写图标地址!!");
document.pArticleDisplayForm.pArticleIcoPath.focus();
return false;
}
pArticleIcoPath = document.pArticleDisplayForm.pArticleIcoPath.value;
document.pArticleDisplayForm.pArticleDisplay.value = "<%=displayList(\"article\"," +pArticleDisplayNum+ ","+ pArticleIsShowTime +"," +pArticleIsHaveIco+ ",\"" +pArticleIcoPath+ "\"," +pArticleMaxWord+ ",Request.QueryString(\"type\"),Request(\"keyword\"),Request.QueryString(\"page\"),Request.QueryString(\"topPage\"),Request.QueryString(\"bottomPage\"))%>";
}
//软件调用
function mkSoftDisplay()
{
var SoftIsHaveIco,SoftIsShowTime,SoftDisplayNum,SoftMaxWord,SoftOrderWord,SoftTypeID;
if(document.SoftDisplayForm.SoftDisplayNum.value==""){
alert("请填写显示数量!!");
document.SoftDisplayForm.SoftDisplayNum.focus();
return false;
}
else{
SoftDisplayNum = document.SoftDisplayForm.SoftDisplayNum.value;
}
if(document.SoftDisplayForm.SoftMaxWord.value==""){
alert("请填写显示的最大字数!!");
document.SoftDisplayForm.SoftMaxWord.focus();
return false;
}
else{
SoftMaxWord = document.SoftDisplayForm.SoftMaxWord.value;
}
if(document.SoftDisplayForm.SoftIsShowTime.checked)
SoftIsShowTime = 1;
else
SoftIsShowTime = 0;
if(document.SoftDisplayForm.SoftIsHaveIco.checked)
SoftIsHaveIco = 1;
else
SoftIsHaveIco = 0;
if(document.SoftDisplayForm.SoftIsHaveIco.checked && document.SoftDisplayForm.SoftIcoPath.value==""){
alert("请填写图标地址!!");
document.SoftDisplayForm.SoftIcoPath.focus();
return false;
}
if(document.SoftDisplayForm.SoftTypeID.value == "")
{
alert("必须填写一个分类ID,如果想全部调用则填0");
document.SoftDisplayForm.SoftTypeID.focus();
return false;
}
SoftTypeID = document.SoftDisplayForm.SoftTypeID.value;
SoftOrderWord = document.SoftDisplayForm.SoftOrderWord.options[document.SoftDisplayForm.SoftOrderWord.selectedIndex].value;
SoftIcoPath = document.SoftDisplayForm.SoftIcoPath.value;
document.SoftDisplayForm.SoftDisplay.value = "<%call takeSoft("+SoftTypeID+"," +SoftDisplayNum+ "," +SoftIsShowTime+ "," +SoftIsHaveIco+ ",\"" +SoftIcoPath+ "\"," +SoftMaxWord+ ",\"" +SoftOrderWord+ "\")%>";
}
function mkpSoftDisplay()
{
var pSoftIsHaveIco,pSoftIsShowTime,pSoftDisplayNum,pSoftMaxWord;
if(document.pSoftDisplayForm.pSoftDisplayNum.value==""){
alert("请填写显示数量!!");
document.pSoftDisplayForm.pSoftDisplayNum.focus();
return false;
}
else{
pSoftDisplayNum = document.pSoftDisplayForm.pSoftDisplayNum.value;
}
if(document.pSoftDisplayForm.pSoftMaxWord.value==""){
alert("请填写显示的最大字数!!");
document.pSoftDisplayForm.pSoftMaxWord.focus();
return false;
}
else{
pSoftMaxWord = document.pSoftDisplayForm.pSoftMaxWord.value;
}
if(document.pSoftDisplayForm.pSoftIsShowTime.checked)
pSoftIsShowTime = 1;
else
pSoftIsShowTime = 0;
if(document.pSoftDisplayForm.pSoftIsHaveIco.checked)
pSoftIsHaveIco = 1;
else
pSoftIsHaveIco = 0;
if(document.pSoftDisplayForm.pSoftIsHaveIco.checked && document.pSoftDisplayForm.pSoftIcoPath.value==""){
alert("请填写图标地址!!");
document.pSoftDisplayForm.pSoftIcoPath.focus();
return false;
}
pSoftIcoPath = document.pSoftDisplayForm.pSoftIcoPath.value;
document.pSoftDisplayForm.pSoftDisplay.value = "<%=displayList(\"Soft\"," +pSoftDisplayNum+ ","+ pSoftIsShowTime +"," +pSoftIsHaveIco+ ",\"" +pSoftIcoPath+ "\"," +pSoftMaxWord+ ",Request.QueryString(\"type\"),Request(\"keyword\"),Request.QueryString(\"page\"),Request.QueryString(\"topPage\"),Request.QueryString(\"bottomPage\"))%>";
}
//经典推荐
function mkCommend()
{
var CommendType,CommendDisplayNum;
if(document.CommendForm.CommendType[0].checked)
CommendType = document.CommendForm.CommendType[0].value;
else
CommendType = document.CommendForm.CommendType[1].value;
if(CommendForm.CommendDisplayNum.value ==""){
alert("请填写调用的数量");
document.CommendForm.CommendDisplayNum.focus();
return false;
}
else
CommendDisplayNum = document.CommendForm.CommendDisplayNum.value;
document.CommendForm.FunCommend.value = "<%=takeCommEnd(\"" +CommendType+ "\"," +CommendDisplayNum+ ")%>";
}
//公告调用
function mkAnnounce()
{
var AnnounceScroll,AnnounceScrollDirection,AnnounceWidth,AnnounceHeight;
AnnounceScroll=document.AnnounceForm.AnnounceScroll.options[document.AnnounceForm.AnnounceScroll.selectedIndex].value;
AnnounceScrollDirection=document.AnnounceForm.AnnounceScrollDirection.options[document.AnnounceForm.AnnounceScrollDirection.selectedIndex].value;
if(document.AnnounceForm.AnnounceWidth.value ==""){
alert("请填写宽度,请务必根据自己网页的实际情况而定!");
document.AnnounceForm.AnnounceWidth.focus();
return false;
}
else
AnnounceWidth = document.AnnounceForm.AnnounceWidth.value;
if (document.AnnounceForm.AnnounceHeight.value =="")
{
alert("请填写高务,请务必根据自己网页的实际情况而定!");
document.AnnounceForm.AnnounceHeight.focus();
return false;
}
else
AnnounceHeight = document.AnnounceForm.AnnounceHeight.value;
document.AnnounceForm.AnnounceFun.value = "<%=takeAnnounce(" +AnnounceScroll+ ",\"" +AnnounceScrollDirection+ "\"," +AnnounceWidth+ "," +AnnounceHeight+ ")%>";
}
//站点统计
function mkSiteCount()
{
var SiteCountIsHaveIco,SiteCountIcoPath,QueryStr,displayStr,strNum;
displayStr="";
QueryStr="";
if(document.SiteCountForm.SiteCountIsHaveIco.checked)
SiteCountIsHaveIco = true;
else
SiteCountIsHaveIco = false;
if(document.SiteCountForm.SiteCountIsHaveIco.checked && document.SiteCountForm.SiteCountIcoPath.value==""){
alert("请填写图标地址!!");
document.SiteCountForm.SiteCountIcoPath.focus();
return false;
}
else{
SiteCountIcoPath = document.SiteCountForm.SiteCountIcoPath.value;
}
strNum=1;
if(document.SiteCountForm.ArticleSum.checked){
QueryStr +="ArticleSum";
displayStr +="文章总数";
strNum++;
}
if(document.SiteCountForm.SoftSum.checked){
if(strNum>1){
QueryStr +=",SoftSum";
displayStr +=",软件总数";
}
else
{
QueryStr +="SoftSum";
displayStr +="软件总数";
}
strNum++;
}
if(document.SiteCountForm.TodayArticleCount.checked){
if(strNum>1){
QueryStr +=",TodayArticleCount";
displayStr +=",今日文章更新";
}
else
{
QueryStr +="TodayArticleCount";
displayStr +="今日文章更新";
}
strNum++;
}
if(document.SiteCountForm.TodaySoftCount.checked){
if(strNum>1){
QueryStr +=",TodaySoftCount";
displayStr +=",今日软件更新";
}
else{
QueryStr +="TodaySoftCount";
displayStr +="今日软件更新";
}
strNum++;
}
if(document.SiteCountForm.MemberCount.checked){
if(strNum>1){
QueryStr +=",MemberCount";
displayStr +=",会员总数";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -