⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 edit_html_changetable

📁 cms是开源的框架
💻
字号:
<?xml version="1.0" encoding="ISO-8859-1"?>
<workplace>
<template>
<![CDATA[
<HTML>
<HEAD>
<TITLE>
]]><LABEL value="title.changetable"/><![CDATA[
</TITLE>

<!-- Style Sheet to the Table Dialog -->
<STYLE TYPE="text/css">
 BODY   {margin-left:10; font-family:Verdana; font-size:12; background:menu}
 BUTTON {width:7em}
 TABLE  {font-family:Verdana; font-size:12}
 P      {text-align:center}
</STYLE>

<SCRIPT LANGUAGE=JavaScript>

<!-- Checks if a entered number is a digit -->

function IsDigit()
{
  return ((event.keyCode >= 48) && (event.keyCode <= 57)) 
}


</SCRIPT>

<!-- Reads default values received by the Explorer and adds them into the Form Input-Fields when the Dokument is loaded -->

<SCRIPT LANGUAGE=JavaScript FOR=window EVENT=onload>

  for ( elem in window.dialogArguments )
  {
    switch( elem )
    {
      case "border":
      borderln.value = window.dialogArguments["border"];      
      break;
    
      case "cellpadding":
      CellPadding.value = window.dialogArguments["cellpadding"];      
      break;
       
      case "cellspacing":
      CellSpacing.value = window.dialogArguments["cellspacing"];      
      break;
       
      case "bgcolor":
      TableColor.value = window.dialogArguments["bgcolor"]; 
      TableColorSelected.checked = true;     
      
      break;      
    }        
  }
</SCRIPT>

<!-- When the Ok-Button is pressed, the values from the Input-Fileds are stored in to an array and returned -->
<!-- to the HTML-Editor -->

<SCRIPT LANGUAGE=JavaScript FOR=Ok EVENT=onclick>
  var arr = new Array();
  arr["border"] = borderln.value;
  arr["cellpadding"] = CellPadding.value;
  arr["cellspacing"] = CellSpacing.value;

  if(TableColorSelected.checked) {
    arr["bgcolor"] = TableColor.value;
  }
  else {
    arr["bgcolor"] = "";
  }
    
  window.returnValue = arr;
  window.close();
</SCRIPT>  

<SCRIPT LANGUAGE=JavaScript>

function setTBColor(arr)
  {
  if (arr != -1) {
    if(arr == 0) {
	  TableColor.value="";	      
	  TableColorSelected.checked = false;
	}
	else {
	  TableColor.value = arr;	      
	  TableColorSelected.checked = true;
	}
    window.clearInterval(CheckTBCol);
  }
}

</SCRIPT>

<SCRIPT LANGUAGE=JavaScript FOR=TableColorBt EVENT=onclick>
  ColorSelected=-1;
  SelColor=-1;
  CheckTBCol= window.setInterval("setTBColor(SelColor)",1000);
  var SelColorWindow= window.open('edit_html_selcolor.html',"SelColor","width=500,height=400,resizable=no,top=200,left=100");
  SelColorWindow.opener = self;
  
</SCRIPT>

</HEAD>

<!-- Body of the Table Dialog. All input fields and buttons are defined and displayed -->

<BODY>
<TABLE CELLSPACING=5 cellpadding="5" border="0" width="100%">
 <TR>
    <td></td>
  <TD>]]><LABEL value="input.border"/><![CDATA[:</td>
  <TD><INPUT ID=borderln TYPE=TEXT SIZE=7 maxlength="7"  NAME=borderln ONKEYPRESS="event.returnValue=IsDigit();"></td>
  <TD>]]><LABEL value="input.borderinfo"/><![CDATA[</td>
 </tr>
 <TR>
    <td></td>
  <TD>]]><LABEL value="input.spacing"/><![CDATA[: </td>
  <TD><INPUT ID=CellSpacing TYPE=TEXT SIZE=7 maxlength="7"  NAME=CellSpacing ONKEYPRESS="event.returnValue=IsDigit();"></td>
  <TD>]]><LABEL value="input.spacinginfo"/><![CDATA[</td>
 </tr>  
 <TR>
   <td></td>
  <TD>]]><LABEL value="input.padding"/><![CDATA[: </td>
  <TD><INPUT ID=CellPadding TYPE=TEXT SIZE=7 maxlength="7"  NAME=CellPadding ONKEYPRESS="event.returnValue=IsDigit();"></td>
  <TD>]]><LABEL value="input.paddinginfo"/><![CDATA[   </td>
 </tr>
 <TR>
  <TD> <input type=checkbox  ID="TableColorSelected" name="TableColorSelected" value="TRUE"></td>
  <TD> ]]><LABEL value="input.color"/><![CDATA[:</td>
  <TD> <input type="text" id=TableColor size=7 maxlength="7" name="TableColor"></td>
  <TD><INPUT type=button  ID=TableColorBt value="]]><LABEL value="button.color"/><![CDATA["> </td>
</tr>
</TABLE>

<P>
<BUTTON ID=Ok TYPE=SUBMIT>]]><LABEL value="button.ok"/><![CDATA[</BUTTON>
<BUTTON ONCLICK="window.close();">]]><LABEL value="button.cancel"/><![CDATA[</BUTTON>

</BODY>
</HTML>
]]>
</template>
</workplace>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -