亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ref_r-r.htm

?? javascript函數(shù)大全HTML javascript函數(shù)大全HTML
?? HTM
字號:
<htm><title>網絡時空——網頁制作</title>
<link rel="shortcut icon" href="../../../../ccisn.ico">
<link href="../../../../common.css" type="text/css" rel="stylesheet"><style type="text/css">
<!--
td,p,div {font-size:9pt;font-family:宋體;}
BODY { font-family:宋體; margin-left:0; margin-top:0; font-size:9pt; background-color:#ffffff;}
A { font-size: 9pt;color:#0000aa; text-decoration:underline;font-family:宋體; }
A:hover,A:active{ color:#FF8019; text-decoration:underline;}
A.top{color:#ffffff;font-size:9pt}
-->
</style>
<body bgcolor="#ffffff" text="#000000" link="#003399" alink="#ff9900" vlink="#000000" background="../../../images/b01.jpg">
<A NAME="radio_object"><H2>radio object</H2></A>
<P>A set of radio buttons on an htm form. A set of radio buttons lets the user choose one item from a list.


<H3>語法</H3>
<P>To define a set of radio buttons, use standard htm 語法 with the addition of the onClick event handler:
<PRE>
&LTINPUT
   TYPE="radio"
   NAME="<I>radioName</I>"
   VALUE="<I>buttonValue</I>"
   [CHECKED]
   [onClick="<I>handlerText</I>"]&GT
   <I>textToDisplay</I>
</PRE>
<I>NAME="radioName"</I> specifies the name of the radio object. All radio buttons in a group have the same NAME attribute. You can access this value using the name property.
<BR><I>VALUE="buttonValue"</I> specifies a value that is returned to the server when the radio button is selected and the form is submitted. This defaults to "on". You can access this value using the value property.
<BR><I>CHECKED</I> specifies that the radio button is selected. You can access this value using the defaultChecked property.
<BR><I>textToDisplay</I> specifies the label to display beside the radio button.

<P>To use a radio button's properties and 用法:
<PRE>
1. <I>radioName</I>[<I>index1</I>].<I>propertyName</I>
2. <I>radioName</I>[<I>index1</I>].<I>methodName</I>(<I>parameters</I>)
3. <I>formName</I>.elements[<I>index2</I>].<I>propertyName</I>
4. <I>formName</I>.elements[<I>index2</I>].<I>methodName</I>(<I>parameters</I>)
</PRE>
<I>radioName</I> is the value of the NAME attribute of a radio object.
<BR><I>index1</I> is an integer representing a radio button in a radio object.
<BR><I>formName</I> is either the value of the NAME attribute of a form object or an element in the <I>forms</I> array.
<BR><I>index2</I> is an integer representing a radio button on a form. The <I>elements</I> array contains an entry for each radio button in a radio object.
<BR><I>propertyName</I> is one of the properties listed below.
<BR><I>methodName</I> is one of the 用法 listed below.


<H3>Property of</H3>
<LI><A HREF="ref_f-g.htm#form_object" form_object">form</A>


<H3>描述</H3>
<P>A radio object on a form looks as follows:
<FORM>
<P><INPUT TYPE="radio" NAME="musicChoice" CHECKED> R&B
<BR><INPUT TYPE="radio" NAME="musicChoice"> Jazz
<BR><INPUT TYPE="radio" NAME="musicChoice"> Soul
</FORM>
<P>A radio object is a form element and must be defined within a &LTFORM&GT tag.

<P>All radio buttons in a radio button group use the same name property. To access the individual radio buttons in your code, follow the object name with an index starting from zero, one for each button the same way you would for an array such as <I>forms</I>: <TT>document.forms[0].<I>radioName</I>[0]</TT> is the first, <TT>document.forms[0].<I>radioName</I>[1]</TT> is the second, etc.


<H3>Properties</H3>
<LI><A HREF="ref_a-c.htm#checked_property" checked_property">checked</A> lets you programatically select a radio button
<LI><A HREF="ref_d-e.htm#defaultChecked_property" defaultChecked_property">defaultChecked</A> reflects the CHECKED attribute
<LI><A HREF="ref_h-l.htm#length_property" length_property">length</A> reflects the number of radio buttons in a radio object
<LI><A HREF="ref_m-q.htm#name_property" name_property">name</A> reflects the NAME attribute
<LI><A HREF="ref_t-z.htm#value_property" value_property">value</A> reflects the VALUE attribute


<H3>用法</H3>
<LI><A HREF="ref_a-c.htm#click_method" click_method">click</A>


<H3>Event handlers</H3>
<LI><A HREF="ref_m-q.htm#onClick_event" onClick_event">onClick</A>


<H3>例子</H3>
<P><B>Example 1.</B> The following example defines a radio button group to choose among three music catalogs. Each radio button is given the same name, <I>NAME="musicChoice"</I>, forming a group of buttons for which only one choice can be selected. The example also defines a text field that defaults to what was chosen via the radio buttons but that allows the user to type a nonstandard catalog name as well. The onClick event handler sets the catalog name input field when the user clicks a radio button.
<XMP>
<INPUT TYPE="text" NAME="catalog" SIZE="20">
<INPUT TYPE="radio" NAME="musicChoice" VALUE="soul-and-r&b"
   onClick="musicForm.catalog.value = 'soul-and-r&b'"> Soul and R&B
<INPUT TYPE="radio" NAME="musicChoice" VALUE="jazz"
   onClick="musicForm.catalog.value = 'jazz'"> Jazz
<INPUT TYPE="radio" NAME="musicChoice" VALUE="classical"
   onClick="musicForm.catalog.value = 'classical'"> Classical
</XMP>

<P><B>Example 2.</B> The following example contains a form with three text boxes and three radio buttons. The radio buttons let the user choose whether the text fields are converted to upper case or lower case, or not converted at all. Each text field has an onChange event handler that converts the field value depending on which radio button is checked. The radio buttons for upper case and lower case have onClick event handlers that convert all fields when the user clicks the radio button.
<XMP>
<htm>
<HEAD>
<TITLE>Radio object example</TITLE>
</HEAD>
<SCRIPT>
function convertField(field) {
   if (document.form1.conversion[0].checked) {
      field.value = field.value.toUpperCase()}
   else {
   if (document.form1.conversion[1].checked) {
      field.value = field.value.toLowerCase()}
   }
}
function convertAllFields(caseChange) {
   if (caseChange=="upper") {
   document.form1.lastName.value = document.form1.lastName.value.toUpperCase()
   document.form1.firstName.value = document.form1.firstName.value.toUpperCase()
   document.form1.cityName.value = document.form1.cityName.value.toUpperCase()}
   else {
   document.form1.lastName.value = document.form1.lastName.value.toLowerCase()
   document.form1.firstName.value = document.form1.firstName.value.toLowerCase()
   document.form1.cityName.value = document.form1.cityName.value.toLowerCase()
   }
}
</SCRIPT>
<BODY>
<FORM NAME="form1">
<B>Last name:</B>
<INPUT TYPE="text" NAME="lastName" SIZE=20 onChange="convertField(this)">
<BR><B>First name:</B>
<INPUT TYPE="text" NAME="firstName" SIZE=20 onChange="convertField(this)">
<BR><B>City:</B>
<INPUT TYPE="text" NAME="cityName" SIZE=20 onChange="convertField(this)">
<P><B>Convert values to:</B>
<BR><INPUT TYPE="radio" NAME="conversion" VALUE="upper"
   onClick="if (this.checked) {convertAllFields('upper')}"> Upper case
<BR><INPUT TYPE="radio" NAME="conversion" VALUE="lower"
   onClick="if (this.checked) {convertAllFields('lower')}"> Lower case
<BR><INPUT TYPE="radio" NAME="conversion" VALUE="noChange"> No conversion
</FORM>
</BODY>
</htm>
</XMP>

<P>相關 the example for the <A HREF="ref_h-l.htm#link_object" link_object">link</A> object.


<H3>相關</H3>
<LI><A HREF="ref_a-c.htm#checkbox_object" checkbox_object">checkbox</A>, <A HREF="ref_f-g.htm#form_object" form_object">form</A>, and <A HREF="ref_s-s.htm#select_object" select_object">select</A> objects


<!------------------------------------------------------------------------------------------------->
<HR>
<A NAME="random_method"><H2>random method</H2></A>
<P>
Returns a pseudo-random number between zero and one. This method is available on Unix platforms only.

<H3>語法</H3>
<P>Math.random()

<H3>Method of</H3>
<P><A HREF="ref_m-q.htm#Math_object" Math_object">Math</A>

<H3>例子</H3>
<PRE>
//Displays a random number between 0 and 1
document.write("The random number is " + Math.random())
</PRE>

<!------------------------------------------------------------------------------------------------>
<HR>
<A NAME="referrer_property"><H2>referrer property</H2></A>
<P>
Specifies the URL of the calling document when a user clicks a link.

<H3>語法</H3>
<PRE>document.referrer</PRE>

<H3>Property of</H3>
<P><A HREF="ref_d-e.htm#document_object" document_object">document</A>

<H3>描述</H3>
<P>When a user navigates to a <I>destination</I> document by clicking a link object on a <I>source</I> document, the referrer property contains the URL of the <I>source</I> document. Evaluate the referrer property from the <I>destination</I> document.

<P>referrer is a read-only property.

<H3>例子</H3>
<P>In the following example, the <I>getReferrer()</I> function is called from the <I>destination</I> document. It returns  the URL of the <I>source</I> document.
<PRE>
function getReferrer() {
   return document.referrer
}
</PRE>

<!------------------------------------------------------------------------------------------------->
<HR>
<A NAME="reset_object"><H2>reset object</H2></A>
<P>A reset button on an htm form. A reset button resets all elements in a form to their defaults.


<H3>語法</H3>
<P>To define a reset button, use standard htm 語法 with the addition of the onClick event handler:
<PRE>
&LTINPUT
   TYPE="reset"
   NAME="<I>resetName</I>"
   VALUE="<I>buttonText</I>"
   [onClick="<I>handlerText</I>"]&GT
</PRE>
<I>NAME="resetName"</I> specifies the name of the reset object. You can access this value using the name property.
<BR><I>VALUE="buttonText"</I> specifies the text to display on the button face. You can access this value using the value property.

<P>To use a reset object's properties and 用法:
<PRE>
1. <I>resetName</I>.<I>propertyName</I>
2. <I>resetName</I>.<I>methodName</I>(<I>parameters</I>)
3. <I>formName</I>.elements[<I>index</I>].<I>propertyName</I>
4. <I>formName</I>.elements[<I>index</I>].<I>methodName</I>(<I>parameters</I>)
</PRE>
<I>resetName</I> is the value of the NAME attribute of a reset object.
<BR><I>formName</I> is either the value of the NAME attribute of a form object or an element in the <I>forms</I> array.
<BR><I>index</I> is an integer representing a reset object on a form.
<BR><I>propertyName</I> is one of the properties listed below.
<BR><I>methodName</I> is one of the 用法 listed below.


<H3>Property of</H3>
<LI><A HREF="ref_f-g.htm#form_object" form_object">form</A>


<H3>描述</H3>
<P>A reset object on a form looks as follows:
<FORM>
<P><INPUT TYPE="reset" VALUE="Defaults">
</FORM>
<P>A reset object is a form element and must be defined within a &LTFORM&GT tag.

<P>The reset button's onClick event handler cannot prevent a form from being reset; once the button is clicked, the reset cannot be canceled.


<H3>Properties</H3>
<LI><A HREF="ref_m-q.htm#name_property" name_property">name</A> reflects the NAME attribute
<LI><A HREF="ref_t-z.htm#value_property" value_property">value</A> reflects the VALUE attribute


<H3>用法</H3>
<LI><A HREF="ref_a-c.htm#click_method" click_method">click</A>


<H3>Event handlers</H3>
<LI><A HREF="ref_m-q.htm#onClick_event" onClick_event">onClick</A>


<H3>例子</H3>
<P><B>Example 1.</B> The following example displays a text object with the default value "CA" and a reset button with the text "Clear Form" displayed on its face. If the user types a state abbreviation in the text object and then clicks the Clear Form button, the original value of "CA" is restored.
<XMP>
<B>State: </B><INPUT TYPE="text" NAME="state" VALUE="CA" SIZE="2">
<P><INPUT TYPE="reset" VALUE="Clear Form">
</XMP>

<P><B>Example 2.</B> The following example displays two text objects, a select object, and three radio buttons; all of these objects have default values. The form also has a reset button with the text "Defaults" on its face. If the user changes the value of any of the objects and then clicks the Defaults button, the original values are restored.
<XMP>
<htm>
<HEAD>
<TITLE>Reset object example</TITLE>
</HEAD>
<BODY>
<FORM NAME="form1">
<BR><B>City: </B><INPUT TYPE="text" NAME="city" VALUE="Santa Cruz" SIZE="20">
<B>State: </B><INPUT TYPE="text" NAME="state" VALUE="CA" SIZE="2">
<P><SELECT NAME="colorChoice">
   <OPTION SELECTED> Blue
   <OPTION> Yellow
   <OPTION> Green
   <OPTION> Red
</SELECT>
<P><INPUT TYPE="radio" NAME="musicChoice" VALUE="soul-and-r&b"
   CHECKED> Soul and R&B
<BR><INPUT TYPE="radio" NAME="musicChoice" VALUE="jazz">
   Jazz
<BR><INPUT TYPE="radio" NAME="musicChoice" VALUE="classical">
   Classical
<P><INPUT TYPE="reset" VALUE="Defaults" NAME="reset1">
</FORM>
</BODY>
</htm>
</XMP>


<H3>相關</H3>
<LI><A HREF="ref_a-c.htm#button_object" button_object">button</A>, <A HREF="ref_f-g.htm#form_object" form_object">form</A>, and <A HREF="ref_s-s.htm#submit_object" submit_object">submit</A> objects


<!------------------------------------------------------------------------------------------------->
<HR>
<A NAME="round_method"><H2>round method</H2></A>
<P>
Returns the value of a number rounded to the nearest integer.

<H3>語法</H3>
<PRE>Math.round(<I>number</I>)</PRE>
<I>number</I> is any numeric expression or a property of an existing object.

<H3>Method of</H3>
<P><A HREF="ref_m-q.htm#Math_object" Math_object">Math</A>

<H3>描述</H3>
<P>If the fractional portion of <I>number</I> is .5 or greater, the argument is rounded to the next highest integer. If the fractional portion of <I>number</I> is less than .5, the argument is rounded to the next lowest integer.

<H3>例子</H3>
<PRE>
//Displays the value 20
document.write("The rounded value is " + Math.round(20.49))

//Displays the value 21
document.write("&ltP&gtThe rounded value is " + Math.round(20.5))

//Displays the value -20
document.write("&ltP&gtThe rounded value is " + Math.round(-20.5))

//Displays the value -21
document.write("&ltP&gtThe rounded value is " + Math.round(-20.51))
</PRE>

<!------------------------------------------------------------------------------------------------>
<HR>

<SCRIPT>
document.write("<FONT SIZE=-2>Last modified " + document.lastModified)
</SCRIPT>
<P>
</BODY>
<htm>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩国产123区| 国产成人在线视频网站| 亚洲高清视频中文字幕| 毛片av一区二区| 粉嫩av一区二区三区在线播放| 色婷婷久久久久swag精品| 欧美日韩亚洲不卡| 欧美色电影在线| 韩国av一区二区三区| 一区二区三区国产精品| 欧美一区二区福利视频| proumb性欧美在线观看| 亚洲综合免费观看高清完整版在线| 91精品国产高清一区二区三区 | 波多野结衣中文一区| 日韩中文字幕av电影| 久久―日本道色综合久久| 久久久精品日韩欧美| 欧美国产日韩一二三区| 91精品国产91热久久久做人人| www.欧美色图| 五月婷婷综合在线| 国产日韩欧美制服另类| 欧美日韩和欧美的一区二区| 国产专区欧美精品| 99视频热这里只有精品免费| 欧美经典三级视频一区二区三区| 一区二区三区免费看视频| 国产精品亚洲视频| 精品国产一区a| 久久99精品网久久| 欧美一区二区免费视频| 午夜视频在线观看一区| 欧美日韩视频在线观看一区二区三区 | 久久国产精品第一页| 91.com视频| 蜜臀av一区二区| 26uuu另类欧美亚洲曰本| 捆绑调教一区二区三区| 日韩无一区二区| 国产一区中文字幕| 国产视频一区二区在线观看| 高清国产午夜精品久久久久久| 欧美国产成人在线| 99久久婷婷国产综合精品| 亚洲丝袜制服诱惑| 精品视频一区二区三区免费| 亚洲综合色丁香婷婷六月图片| 欧美日韩综合不卡| 日韩精品免费视频人成| 欧美精品一区二区三区高清aⅴ| 国产福利一区二区三区视频| 亚洲特黄一级片| 91亚洲精品乱码久久久久久蜜桃| 亚洲欧美一区二区三区国产精品| 色综合天天性综合| 视频在线观看一区二区三区| 2023国产精品| 91尤物视频在线观看| 日韩精品乱码av一区二区| 欧美一级二级三级蜜桃| 丰满放荡岳乱妇91ww| 亚洲国产视频一区二区| 精品日韩一区二区| 91视频你懂的| 久久成人免费电影| 综合色中文字幕| 日韩三级免费观看| jlzzjlzz亚洲女人18| 日韩激情一区二区| 国产精品每日更新| 欧美一区二区黄| 99视频一区二区三区| 久久精品久久久精品美女| 中文字幕视频一区| 日韩免费看的电影| 91传媒视频在线播放| 狠狠色丁香九九婷婷综合五月| 亚洲美女偷拍久久| 久久久久久夜精品精品免费| 欧美视频在线观看一区二区| 国产馆精品极品| 免费人成在线不卡| 亚洲精品高清在线| 日本一区二区三区免费乱视频| 欧美日韩在线精品一区二区三区激情| 国产福利一区在线| 美女视频一区二区| 亚洲国产精品影院| 亚洲三级视频在线观看| 久久午夜国产精品| 欧美一区二区视频在线观看2022| 色丁香久综合在线久综合在线观看| 国产一区 二区| 另类小说综合欧美亚洲| 亚洲成av人片一区二区| 亚洲男人的天堂在线观看| 国产校园另类小说区| 精品国产亚洲在线| 欧美一级黄色录像| 制服丝袜一区二区三区| 欧美日韩国产首页在线观看| 色综合久久综合网| 97超碰欧美中文字幕| 成人app软件下载大全免费| 国产麻豆91精品| 国产一区二区在线影院| 久久国产免费看| 久久国产福利国产秒拍| 久久爱www久久做| 日本少妇一区二区| 日本三级韩国三级欧美三级| 午夜精品一区在线观看| 亚洲午夜激情av| 亚洲国产视频a| 午夜精品视频在线观看| 亚洲成在人线在线播放| 亚州成人在线电影| 三级精品在线观看| 日本伊人色综合网| 久久99精品久久久久久动态图| 男女男精品视频| 奇米一区二区三区| 久久国产精品99久久久久久老狼 | 欧美丰满少妇xxxxx高潮对白| 欧美视频一区二区三区在线观看| 欧美视频自拍偷拍| 欧美一区二区三区爱爱| 久久综合视频网| 国产精品日产欧美久久久久| 国产精品久久久久久久午夜片| 亚洲三级小视频| 日韩精品一级二级| 精久久久久久久久久久| 国产不卡免费视频| 97精品国产97久久久久久久久久久久 | 欧美精品乱人伦久久久久久| 欧美二区在线观看| 久久久久国产精品麻豆ai换脸 | 国产成人丝袜美腿| 91一区二区在线| 欧美群妇大交群中文字幕| 日韩欧美亚洲国产另类| 国产精品国模大尺度视频| 亚洲精品成人少妇| 久久99精品网久久| 99精品国产99久久久久久白柏| 欧美日韩激情在线| 国产欧美日韩中文久久| 一区二区三区鲁丝不卡| 精品综合免费视频观看| 91丝袜美女网| 亚洲精品一区在线观看| 亚洲精品成人在线| 久久精品久久综合| 91久久精品日日躁夜夜躁欧美| 欧美一区二区三区色| 亚洲欧美在线aaa| 蜜桃91丨九色丨蝌蚪91桃色| 91在线视频播放地址| 日韩一区二区在线观看视频播放 | 精品久久久久久久久久久久久久久久久| 久久网这里都是精品| 亚洲成人精品一区二区| 成人免费高清视频在线观看| 91精品久久久久久久91蜜桃| ...av二区三区久久精品| 久久精品999| 欧美日精品一区视频| 国产精品成人一区二区艾草| 精品在线视频一区| 欧美日韩一区二区三区不卡| 国产精品免费av| 激情五月婷婷综合| 91精品欧美福利在线观看| 亚洲乱码中文字幕综合| 国产99久久久精品| 精品国产污网站| 日韩一区欧美二区| 日本高清不卡一区| 国产精品久久久久影院老司| 韩日欧美一区二区三区| 91精品国产免费| 亚洲成人综合视频| 欧美性猛交xxxxxxxx| 亚洲人午夜精品天堂一二香蕉| 国产99久久久久| 国产丝袜欧美中文另类| 国产一区二区不卡在线| 精品裸体舞一区二区三区| 日韩高清中文字幕一区| 欧美日韩一区精品| 亚洲制服丝袜一区| 欧洲视频一区二区| 亚洲综合久久久| 精品视频在线免费| 午夜亚洲国产au精品一区二区| 欧美综合久久久| 亚洲午夜激情网站| 337p亚洲精品色噜噜狠狠|