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

📄 model.htm

📁 oracle DBA的资料
💻 HTM
📖 第 1 页 / 共 2 页
字号:
<html>

<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<title>Generating HTML</title>
<meta name="generator" content="Namo WebEditor v5.0">
<script language="javascript">

var nameForCreating=""

function clearText1(object){

object.value=""

}



function noButtonForm1(){


var tmpStr
var outStr
var p = 0
var flag = true


//	clearText1(document.outputForm.t1)
	
        tmpStr = escape(document.inputForm.t1.value)
          
        tmpStr = tmpStr.replace(/%20/g,"@");
        tmpStr = tmpStr.replace(/%0A/g,"!") 
          
       // document.outputForm.t1.value = tmpStr
       //document.outputForm.t1.value = document.inputForm.t1.value
       //document.outputForm.t1.value = tmpStr
        
        
        
              outStr = "<table border=\"1\" bordercolor=\"gray\">\n"

              outStr += "\t<span style=\"font-size:18pt;\">\n"
              outStr += "\t<tr>\n"
              outStr += "\t\t<td align=\"center\" bgcolor=\"#99CCFF\">\n"
              outStr += "\t\t\t<p><b>"
              
              
        
        for(var i = 0; i < tmpStr.length; i++){
              var oneChar = tmpStr.charAt(i)
              
 		if ( i+1 == tmpStr.length){
               	 	continue
             	 }            
              
              if (oneChar == "!" )
                {
                 if (tmpStr.charAt(i+1) != ""){
                   outStr +=  "<\/p><\/b>\n"
                   outStr += "\t\t<\/td>\n"
                   outStr += "\t<\/tr>\n"
                   outStr += "\t<tr>\n"
                   outStr += "\t\t<td align=\"center\" bgcolor=\"white\">\n"
                   outStr += "\t\t\t<p><b>"
                   flag = false
                   }
                }
             else{   
              if (oneChar != "@" ){
                 outStr += oneChar
                 }
              else{
              
                if(tmpStr.charAt(i+1) == "@" || tmpStr.charAt(i+1) == "!"){ continue }
                
                outStr += "<\/p><\/b>\n"
                outStr += "\t\t<\/td>\n" 
              //  outStr += "\t\t<td>\n"
                if (!flag){
                      outStr += "\t\t<td align=\"center\" bgcolor=\"white\">\n"
                      }
                   else{
                      outStr += "\t\t<td align=\"center\" bgcolor=\"#99CCFF\">\n"
                    }
                outStr += "\t\t\t<b><p>"       
                          
                }
              }
              
              
              
              
              
              
           //   if (oneChar != "@"){}
          //    outStr +=
       	
       }
       
        outStr += "<\/p><\/b>\n" 
        outStr += "\t\t<\/td>\n" 
        outStr += "\t<\/tr>\n"
        outStr += "\t<\/span>\n"
        outStr += "<\/table>\n"
      
       
        outStr =unescape(outStr)       
        document.outputForm.t1.value += outStr
       
        
        
}


function tableStructure()
{
var tmpStr
var outStr



//	clearText1(document.outputForm.t1)
	
        tmpStr = escape(document.inputForm.t1.value)
          
        tmpStr = tmpStr.replace(/%20/g,"@");
        tmpStr = tmpStr.replace(/%0A/g,"!") 
          
       
              outStr = "<table border=\"1\" bordercolor=\"gray\">\n"
              outStr += "\t<tr>\n"
              outStr += "\t\t<td align=\"left\" width=\"486\" bgcolor=\"#99CCFF\">\n"
              outStr += "\t\t\t<p><b>"
              
              
        
        for(var i = 0; i < tmpStr.length; i++){
              var oneChar = tmpStr.charAt(i)
     	 
              if (oneChar == "!" )
                {
                 if (tmpStr.charAt(i+1) != ""){
                   outStr +=  "<\/b><\/p>\n"
                   outStr += "\t\t<\/td>\n"
                   outStr += "\t<\/tr>\n"
                   outStr += "\t<tr>\n"
                   outStr += "\t\t<td align=\"left\" bgcolor=\"white\">\n"
                   outStr += "\t\t\t<p><b>"
                  }
                   
                }
             else{   
               if (oneChar == "@"){
                   oneChar = "  "
                  } 
                outStr += oneChar
                 
                }
         
       }
       
        outStr += "<\/b><\/p>\n" 
        outStr += "\t\t<\/td>\n" 
        outStr += "\t<\/tr>\n"
        outStr += "<\/table>\n"
      
        outStr =unescape(outStr)
               
        document.outputForm.t1.value += outStr
      
        }


function bottonTable(buttType){
var buttType
var tmpStr
var outStr

//	clearText1(document.outputForm.t1)
	
        tmpStr = escape(document.inputForm.t1.value)
          
 //       tmpStr = tmpStr.replace(/%20/g,"@");
        tmpStr = tmpStr.replace(/%0A/g,"!") 
        tmpStr = unescape(tmpStr)  
       
              outStr = "<table border=\"1\" bordercolor=\"gray\" width=\"665\">\n"
              outStr += "\t<form name=\"youAnsForm\">\n"
              outStr += "\t<span style=\"font-size:18pt;\">\n"
              outStr += "\t<tr>\n"
              outStr += "\t\t<td align=\"center\" width=\"89\">\n"
              outStr += "\t\t\t<p><b>"
              outStr += "<input type=\"" + buttType + "\" name=\"AN\" value=\"A\">"
              outStr += "  A."
              outStr += "<\/b><\/p>\n"
              outStr += "\t\t<\/td>\n"
              outStr += "\t\t<td align=\"left\" width=\"566\">\n\t\t\t<p>"
              
        for(var i = 2; i < tmpStr.length; i++){
              var oneChar = tmpStr.charAt(i)   
             if ( i+1 == tmpStr.length){
                continue
              }
             
                               
              if (oneChar == "!"){
                 if (tmpStr.charAt(i+2) == "." && tmpStr.charAt(i+1)>= "A" && tmpStr.charAt(i+1)<= "H"){
                  	outStr += "\n\t\t\t<\/p>\n\t\t<\/td>\n\t<\/tr>\n"
                  	outStr += "\t<tr>\n"
                  	outStr += "\t\t<td align=\"center\" width=\"89\">\n\t\t\t<p><b>"
          
                  	
                  	
               		outStr += "<input type=\"" + buttType + "\" name=\"AN\" value=\""
               		outStr += tmpStr.charAt(i+1)
               		outStr += "\">  " + tmpStr.charAt(i+1) + ".<\/b><\/p>\n\t\t<\/td>\n\t\t"
               		outStr += "<td align=\"left\" width=\"566\">\n\t\t\t<p>"
               		tmpStr = tmpStr.replace((tmpStr.charAt(i+1) + tmpStr.charAt(i+2)),"  ")
               		
               		continue
               	     }
                 else{
                        
                        outStr += "<br>\n\t\t\t  "
                        continue
                     }
              }
              
              
              
               outStr += oneChar
              
              
            }  
	outStr += "<\/b><\/p>\n" 
        outStr += "\t\t<\/td>\n" 
        outStr += "\t<\/tr>\n"
        outStr += "\t<\/span>\n"
        outStr += "\t<\/form>\n"
        outStr += "<\/table>\n"
      
        outStr = unescape(outStr)
               
        document.outputForm.t1.value += outStr
}

function validateNum(inputVal){
   inputStr = inputVal.toString()
   for(var i = 0; i < inputStr.length; i++){
     var oneChar = inputStr.charAt(i)
     if(oneChar < "0" || oneChar > "9"){
        return false
	}
    }
        
    return true
}



function genFileName(){

var tmp
var type = document.fileSec.fileType.selectedIndex?"que_":"exp_"
var num = document.fileSec.num.value

	if (!validateNum(num)){
	   alert ("illegal file number!")
	   return(-1)
	}
	num = (parseInt(num)+1) + ""
	
	tmp = type + num + ".htm"
	document.fileSec.bb.value = tmp

	document.fileSec.num.value = num
	
	
	document.fileSec.bb.select()
	

⌨️ 快捷键说明

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