www.pudn.com > 多媒体新闻系统.rar > EDIT.JS


function Check(t,n) 
{ 
if(n==1) t.className ="Up" 
else 
if(n==2) t.className ="Down" 
else t.className ="None" 
} 
 
function fortable() 
{ 
  var arr = showModalDialog("table.html", "", "dialogWidth:13.5em; dialogHeight:10.5em; status:0;help:0"); 
   
  if (arr != null){ 
  var ss; 
  ss=arr.split("*") 
  row=ss[0]; 
  col=ss[1]; 
  var string; 
  string=""; 
  for(i=1;i<=row;i++){ 
  string=string+""; 
  for(j=1;j<=col;j++){ 
  string=string+""; 
  } 
  string=string+""; 
  } 
  string=string+"
"; content=message.document.body.innerHTML; content=content+string; message.document.body.innerHTML=content; } else message.focus(); } function swf() { var arr = showModalDialog("flash.asp", "", "dialogWidth:15em; dialogHeight:15em; status:0;help:0"); if (arr != null){ var ss; ss=arr.split("*") path=ss[0]; row=ss[1]; col=ss[2]; var string; string="" content=message.document.body.innerHTML; content=content+string; message.document.body.innerHTML=content; } else message.focus(); } function wmv() { var arr = showModalDialog("media.asp", "", "dialogWidth:16.5em; dialogHeight:15em; status:0;help:0"); if (arr != null){ var ss; ss=arr.split("*") path=ss[0]; row=ss[1]; col=ss[2]; var string; string="" content=message.document.body.innerHTML; content=content+string; message.document.body.innerHTML=content; } else message.focus(); } function rm() { var arr = showModalDialog("rm.asp", "", "dialogWidth:16.5em; dialogHeight:15em; status:0;help:0"); if (arr != null){ var ss; ss=arr.split("*") path=ss[0]; row=ss[1]; col=ss[2]; var string; string="
" content=message.document.body.innerHTML; content=content+string; message.document.body.innerHTML=content; } else message.focus(); } function pic() { var arr = showModalDialog("pic.asp", "", "dialogWidth:16.5em; dialogHeight:13.5em; status:0;help:0"); if (arr != null){ var ss; ss=arr.split("*") a=ss[0]; b=ss[1]; c=ss[2]; d=ss[3]; e=ss[4]; var str1; str1=""+b+"" content=message.document.body.innerHTML; content=content+str1; message.document.body.innerHTML=content; } else message.focus(); } function FIELDSET() { var arr = showModalDialog("fieldset.htm", "", "dialogWidth:16.5em; dialogHeight:13.5em; status:0;help:0"); if (arr != null){ var ss; ss=arr.split("*") a=ss[0]; b=ss[1]; c=ss[2]; d=ss[3]; var str1; str1="
标题内容
" content=message.document.body.innerHTML; content=content+str1; message.document.body.innerHTML=content; } else message.focus(); } function iframe() { var arr = showModalDialog("iframe.htm", "", "dialogWidth:20em; dialogHeight:13.5em; status:0;help:0"); if (arr != null){ var ss; ss=arr.split("*") a=ss[0]; b=ss[1]; c=ss[2]; d=ss[3]; e=ss[4]; var str1; str1="" content=message.document.body.innerHTML; content=content+str1; message.document.body.innerHTML=content; } else message.focus(); } function hr() { var arr = showModalDialog("hr.htm", "", "dialogWidth:20em; dialogHeight:13.5em; status:0;help:0"); if (arr != null){ var ss; ss=arr.split("*") a=ss[0]; b=ss[1]; c=ss[2]; d=ss[3]; e=ss[4]; var str1; str1="" content=message.document.body.innerHTML; content=content+str1; message.document.body.innerHTML=content; } else message.focus(); } function insertbr(br){ document.form1.title.value+=br; document.form1.title.focus(); } function insertbr1(br){ document.form1.hongtou.value+=br; document.form1.hongtou.focus(); } function title_color_onchange() { var title_colorIndex; title_colorIndex = form1.title_color.selectedIndex; form1.title.select (); switch (title_colorIndex) { case 1: form1.title.style.color = "#000000"; break; case 2: form1.title.style.color = "#000000"; break; case 3: form1.title.style.color = "#FFFFFF"; break; case 4: form1.title.style.color = "#008000"; break; case 5: form1.title.style.color = "#800000"; break; case 6: form1.title.style.color = "#808000"; break; case 7: form1.title.style.color = "#000080"; break; case 8: form1.title.style.color = "#800080"; break; case 9: form1.title.style.color = "#808080"; break; case 10:form1.title.style.color = "#FFFF00"; break; case 11:form1.title.style.color = "#00FF00"; break; case 12:form1.title.style.color = "#00FFFF"; break; case 13:form1.title.style.color = "#FF00FF"; break; case 14:form1.title.style.color = "#FF0000"; break; case 15:form1.title.style.color = "#0000FF"; break; case 16:form1.title.style.color = "#008080"; break; } form1.title.focus (); } function title_size_onchange() { var title_sizeIndex; title_sizeIndex = form1.title_size.selectedIndex; form1.title.select (); switch (title_sizeIndex) { case 1: form1.title.style.fontSize = "9pt"; break; case 2: form1.title.style.fontSize = "8px"; break; case 3: form1.title.style.fontSize = "10px"; break; case 4: form1.title.style.fontSize = "12px"; break; case 5: form1.title.style.fontSize = "14px"; break; case 6: form1.title.style.fontSize = "18px"; break; case 7: form1.title.style.fontSize = "24px"; break; case 8: form1.title.style.fontSize = "36px"; break; } form1.title.focus (); } function title_type_onchange() { var title_typeIndex; title_typeIndex = form1.title_type.selectedIndex; form1.title.select (); switch (title_typeIndex) { case 1: form1.title.style.removeAttribute ("fontWeight"); form1.title.style.removeAttribute ("fontStyle"); form1.title.style.removeAttribute ("textDecoration"); break; case 2: form1.title.style.removeAttribute ("fontStyle"); form1.title.style.removeAttribute ("textDecoration"); form1.title.style.fontWeight = "bolder"; break; case 3: form1.title.style.removeAttribute ("fontWeight"); form1.title.style.removeAttribute ("textDecoration"); form1.title.style.fontStyle = "italic"; break; case 4: form1.title.style.removeAttribute ("fontStyle"); form1.title.style.removeAttribute ("fontWeight"); form1.title.style.textDecoration = "underline"; break; case 5: form1.title.style.removeAttribute ("textDecoration"); form1.title.style.fontWeight = "bolder"; form1.title.style.fontStyle = "italic"; break; } form1.title.focus (); } function title_face_onchange() { var title_faceIndex; title_faceIndex = form1.title_face.selectedIndex; form1.title.select (); switch (title_faceIndex) { case 1: form1.title.style.family = "宋体"; break; case 2: form1.title.style.family = "楷体_GB2312"; break; case 3: form1.title.style.family = "新宋体"; break; case 4: form1.title.style.family = "黑体"; break; case 5: form1.title.style.family = "隶书"; break; case 6: form1.title.style.family = "幼圆"; break; } form1.title.focus (); } function IsDigit() { return ((event.keyCode >= 48) && (event.keyCode <= 57)); }