??????澶у?舵?ㄨ??涓??ラ?ㄧ駭??JS?規??浠g??锛?涓昏?????浠ヤ?浠堕┍??avaScript?芥?幫????????劇ず??瀹?浣?涓???淇??癸?璁?elect?т歡??浠ヨ??瀹?涔?杈規?绛???瀹廣??
?ㄨ????涓??ラ?ㄧ駭??JS?規??浠g??
1??浠ヤ?浠堕┍??avaScript?芥??
浠ヤ???寮??ㄧ??娈碉?
- <!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.01Transitional//EN">
- <html>
- <head>
- <metahttp-equivmetahttp-equiv="Content-Type"
- content="text/html;charset=gb2312">
- <title>????棰???妗?lt;/title>
- <script>
- <!--
- functionhello()
- {
- aa=100
- cc='娆㈣?绗?'+aa+'娆″??涓?'
- alert(cc)
- }
- //-->
- </script>
- </head>
- <body>
- <ahrefahref="缃???"onmouseover="hello()">缃?椤靛??</a>??
- </body>
- </html>
2??JS?規??涔????????劇ず??瀹?浣?涓???淇???lt;瓒崇??骞沖?闆?虹?/p>
浠ヤ???寮??ㄧ??娈碉?
- <inputvalueinputvalue="缃?椤靛??"readonly>
3??JS?規??涔?璁?elect?т歡??浠ヨ??瀹?涔?杈規?
浠ヤ???寮??ㄧ??娈碉?
- <style>
- .box2{border:1pxsolid#00ff00;width:180px;height:17px;
- clip:rect(0px,179px,16px,0px);overflow:hidden;}
- select{position:relative;left:-2px;top:-2px;
- font-size:12px;width:183px;
- line-height:14px;border:0px;color:#909993;}
- </style>
- <divclassdivclass=box2>
- <selectidselectid=idselect1onchange="select1();
- "hidefocus>
- <optionselected>缃?椤靛??</option>
- <option>璁捐?″?ㄧ嚎</option>
- <option>????杞?浠?lt;/option>
- <option>宸ュ?瘋蔣浠?lt;option>
- </select>
- </div>
4??JS?規??涔?CSS??瑙?
浠ヤ???寮??ㄧ??娈碉?
- &l瓒崇??骞沖?闆?虹?t;htmlxmlns:v>
- <head>
- <style>
- v:*{behavior:url(#default#VML);}
- </style>
- </head>
- <body>??
- <v:RoundRectstylev:RoundRectstyle="position:relative;
- width:200;height:100px">
- <v:shadowonv:shadowon="T"type="single"
- color="#b3b3b3"offset="5px,5px"/>
- <v:textboxstylev:textboxstyle="font-size:12px">css瀹??扮??姝g????瑙?琛ㄦ??lt;/v:textbox>
- </v:RoundRect>
- </body>
- </html>
5??JS?規??涔?寤洪?跺????杈??ュ??
浠ヤ???寮??ㄧ??娈碉?
- <!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.01Transitional//EN">
- <html>
- <head>
- <metahttp-equivmetahttp-equiv="Content-Type"
- content="text/html;charset=gb2312">
- <title>????棰???妗?lt;/title>
- </head>
- <body>
- <INPUT??
- onkeydown=Calc.password.value=this.valuetitle=?誨?瀵?????
- onclick="password1=this;showkeyboard();
- this.readOnly=1;Calc.password.value=''"??
- readOnlytype=passwordmaxLength=12??
- onchange=Calc.password.value=this.valuename=LOGPASS??
- minLength="6">
- <scriptlanguagescriptlanguage="javascript"
- src="http://tech.ddvip.com/imagelist/06/45/13pvu8r78n57.js">
- </script>
- </body>
- </html>
?ㄥ???芥???磋叮????绔?:
?ㄥ????JS杩?琛?CSS?煎???????缂?0