📄 getannouncelist.js
字号:
function ChangeArea(Num)
{
if (Num==2)
{
document.all.DisplayMode.style.display="";
document.all.MarqueeArea.style.display="";
document.all.OpenArea.style.display="none";
}
else if (Num==1)
{
document.all.DisplayMode.style.display="none";
document.all.MarqueeArea.style.display="none";
document.all.OpenArea.style.display="";
}
else
{
document.all.DisplayMode.style.display="";
document.all.MarqueeArea.style.display="none";
document.all.OpenArea.style.display="none";
}
}
function ChangeOpenType(Num)
{
if (Num==0)
{
document.all.OpenArea.style.display="";
}
else
{
document.all.OpenArea.style.display="none";
}
}
function SetNavStatus()
{
if (document.all.NavType.value==0)
{document.all.NavWord.style.display="";
document.all.NavPic.style.display="none";}
else
{
document.all.NavWord.style.display="none";
document.all.NavPic.style.display="";}
}
function InsertScriptFun(Obj)
{ if (document.myform.LabelName.value=='')
{
alert('请输入标签名称');
document.myform.LabelName.focus();
return false
}
var AnnounceType,ShowStyle,OpenType,ShowAuthor;
var OWidth=document.myform.OWidth.value;
var OHeight=document.myform.OHeight.value;
var Width=document.myform.Width.value;
var Height=document.myform.Height.value;
var Speed=document.myform.Speed.value;
var ListNumber=document.myform.ListNumber.value;
var TitleLen=document.myform.TitleLen.value;
var ContentLen=document.myform.ContentLen.value;
var Nav,NavType=document.myform.NavType.value;
var TitleCss='"'+document.myform.TitleCss.value+'"';
for (var i=0;i<document.myform.AnnounceType.length;i++){
var KM = document.myform.AnnounceType[i];
if (KM.checked==true)
AnnounceType = KM.value
}
for (var i=0;i<document.myform.ShowStyle.length;i++){
var KM = document.myform.ShowStyle[i];
if (KM.checked==true)
ShowStyle = KM.value
}
for (var i=0;i<document.myform.OpenType.length;i++){
var KM = document.myform.OpenType[i];
if (KM.checked==true)
OpenType = KM.value
}
for (var i=0;i<document.myform.ShowAuthor.length;i++){
var KM = document.myform.ShowAuthor[i];
if (KM.checked==true)
ShowAuthor = KM.value
}
if (NavType==0) Nav='"'+document.myform.TxtNavi.value+'"'
else Nav='"'+document.myform.NaviPic.value+'"';
document.myform.LabelContent.value= '{$GetAnnounceList('+AnnounceType+','+OWidth+','+OHeight+','+Width+','+Height+','+Speed+','+ShowStyle+','+OpenType+','+ListNumber+','+TitleLen+','+ShowAuthor+','+ContentLen+','+NavType+','+Nav+','+TitleCss+')}';
document.myform.submit();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -