Javascript技巧大集合时间
onBlur:当失去输入焦点后产生该事件
onFocus:当输入获得焦点后,产生该文件
Onchange:当文字值改变时,产生该事件
Onselect:当文字加亮后,产生该文件
<input type="text" value="郭强" onfocus="if(value=='郭强') {value=''}" onblur="if
(value=='') {value='郭强'}">点击时文字消失,失去焦点时文字再出现
<input type=button name="Submit1" value="郭强" size=10 class=s02
style="background-color:rgb(235,207,22)">
<input type="submit" value="找吧" name="B1" onMouseOut=="blue"
onMouseOver=="red" class="button">
<input type=submit value=订阅 style="border:1px solid :#666666; height:17px; width:25pt; font-size:9pt;
BACKGROUND-COLOR: #E8E8FF; color:#666666" name="submit">
<input type=text name="nick" style="border:1px solid #666666; font-size:9pt; height:17px;
BACKGROUND-COLOR: #F4F4FF; color:#ff6600" size="15" maxlength="16">
<input type="text" name="T1" size="20" style="border-style: solid; border-width: 1">
<script>
(300,283);
</script>
<marquee direction=up scrollamount=1 scrolldelay=100 onmouseover='()' onmouseout='()'
height=60>
<!-- head_scrolltext -->
<tr>
<td>
共和国
</table> <!-- end head_scrolltext -->
</marquee>
<base onmouseover="='网站建设/' ;return true">
<br>
<input type="radio" name="regtype" value="A03" id="A03">
<label for="A03"> 情侣: 一次注册两个帐户</label> <br>
</a>打印网页
<a href='javascript: ()'>
<input type="text" name="key" size="12" value="关键字" onFocus=() onMouseOver=()
class="line">
<script language=javascript>
function hi(str)
{
()
alert("hi"+str+"!")
}
</script>
<html>
<head>
<script language="LiveScript">
<!-- Hiding
function hello() {
alert("哈罗!");
}
</script>
</head>
<body>
<a href="" onMouseOver="hello()">link</a>
</b
Javascript技巧大全 来自淘豆网m.daumloan.com转载请标明出处.