易截截图软件、单文件、免安装、纯绿色、仅160KB

JavaScript 三级级联菜单

< HTML >
< HEAD >
< TITLE > 合同申请 </ TITLE >
< meta  http-equiv ="Content-Type"  content ="text/html; charset=gb2312" >
< SCRIPT  LANGUAGE  = JavaScript >
/* * Define object Dsy 构造器
fieldValues - 三个表单域的名称, 可以通过 request.getParameter(xxx) 取值
defalutOptions - 默认选项
*/
function  Dsy(fieldValues, defalutOptions){
   this .Items  =  {};
   this .defalutOptions  =  defalutOptions; //  默认选项  
   this .fieldValues  =  fieldValues; //  三个表单域的名称

Dsy.prototype.add  =   function (id, iArray){
   this .Items[id]  =  iArray;

Dsy.prototype.Exists  =   function (id){
   if  ( typeof ( this .Items[id])  ==   " undefined " )
     return   false ;
   return   true ;
}; 
Dsy.prototype.setup  =   function () {
     this .bean_change( 0 );

//  This prototype method added by BeanSoft Studio
Dsy.prototype.bean_change  =   function (v){
   var  str  =   " 0 " ;
   for  (i  =   0 ; i  <  v; i ++ ){
    str  +=  ( " _ "   +  (document.getElementById( this .fieldValues[i]).selectedIndex  -   1 ));
  }; 
   var  ss  =  document.getElementById( this .fieldValues[v]);
   //  Avoid a null exception
   if (ss  ==   null )  return ; 
     with (ss){
      length  =   0 ;
      options[ 0 ]&nb


相关文档:

JavaScript去除空格的三种方法 (trim)

内容从网上收集,收集目的仅供研究、学习。涉及版权或不希望收录您的文章请您及时与我联系。
方法一:
个人认为最好的方法.采用的是正则表达式,这是最核心的原理.
其次.这个方法使用了JavaScript 的prototype 属性
其实你不使用这个属性一样可以用函数实现.但这样做后用起来比较方便.
下面就来看看这个属性是怎么来用的 ......

javascript 控制左右键盘

<html>  
  <head>  
          <script language="javascript">  
                  function MyClick()   ......

JavaScript 实现的简繁转换功能

//简繁转换功能
// 将指定元素中的文本转换为简体
function bodytojt(x)
{
var bodys=document.getElementById(x);
bodys.innerHTML=Simplized(bodys.innerHTML);
}
// 将指定元素中的文本转换为繁体
function bodytoft(x)
{
var bodys=document.getElementById(x);
bodys.innerHTML=Traditionalized(bodys.in ......

JavaScript CSS Style属性对照表

JavaScript代码
<mce:script type="text/javascript"><!--
function imageOver(e) {
e.style.border="1px solid red";
}
function imageOut(e) {
e.style.borderWidth=0;
}
// --></mce:script>
<img src="phplamp.gif" onmouseover="imageOver(this)" onmo ......

10种新的、有前途的JavaScript框架

1. SproutCore
SproutCore 苹果对SproutCore的解释为“开源,平台无关,类Cocoa的JavaScript框架,用于创建具有桌面应用程序外观和操作感的Web应用程序。”
SproutCore demonstrations: Photos, Sample Controls
2. Spry
Spry 是Adobe 的 Ajax framework. Spry的目的是成为实现Ajax的一种简单方式,对HTML、C ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号