源码地带 > 电路图 > 电子资料下载 > 其他 >运用jdk > 查看压缩包源码

运用jdk

源代码在线查看: w.js

软件大小: 45734 K
上传用户: jackjinke
关键词: jdk
下载地址: 免注册下载 普通下载 VIP

相关代码

				var css1 = ('A:link{TEXT-DECORATION: none;COLOR: #336699;}A:visited{TEXT-DECORATION: none;COLOR: #336699;}A:hover{TEXT-DECORATION: underline;COLOR: #666666;}A:active{TEXT-DECORATION: none;COLOR: #336699;}BODY,TD,TH{FONT-FAMILY: 宋体;FONT-SIZE: 14px;COLOR: #000000;}');
				var css2 = ('');
				
				
				
				function initEditor () {
					EditCtrl.document.designMode="ON";
					EditCtrl.document.open();
					EditCtrl.document.write(css1);
					EditCtrl.document.write(css2);
					EditCtrl.document.close();
				}
				
				function format (what,opt){
					selectRange ();
					if (what == "small" || what == "big") 
					{
						var strHTML;
						if (RangeType == "Text")
						{
							edittxt = ""+edit.text+"";
							edit.pasteHTML (edittxt);
						}
					} 
					else
					{
						if ( opt == "")
						{
							EditCtrl.document.execCommand (what);			
						}
					}
					if (opt != "" && opt != null && what != "saveas") {
						EditCtrl.document.execCommand (what,"",opt);
					}
					EditCtrl.focus ();
				}
				
				function selectRange () {
					EditCtrl.focus ();
					edit = EditCtrl.document.selection.createRange();
					RangeType =  EditCtrl.document.selection.type;
				}			

相关资源