One Javascript Demo
<div id="a1" style=" position:absolute; z-index:2;"></div>
<table width="200" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img src="白羊.jpg" alt="hi.baidu.com/liwya" onmousemove="show(event,'白羊.jpg','白羊座~')" onmouseout="hide(this)" /></td>
<td></td>
<td></td>
<td></td>
<td><img src="金牛.jpg" alt="hi.baidu.com/liwya" onmousemove="show(event,'金牛.jpg','金牛座~')" onmouseout="hide(this)" /></td>
<td></td>
<td></td>
<td></td>
<td><img src="双子.jpg" alt="hi.baidu.com/liwya" onmousemove="show(event,'双子.jpg','金牛座~')" onmouseout="hide(this)" /></td>
</tr>
<tr></tr>
<tr>
<td><img src="巨蟹.jpg" alt="hi.baidu.com/liwya" onmousemove="show(event,'巨蟹.jpg','巨蟹座~')" onmouseout="hide(this)" /></td>
<td></td>
<td></td>
<td></td>
<td><img src="狮子.jpg" alt="hi.baidu.com/liwya" onmousemove="show(event,'狮子.jpg','狮子座~')" onmouseout="hide(this)" /></td>
<td></td>
<td></td>
<td></td>
<td><img src="处女.jpg" alt="hi.baidu.com/liwya" onmousemove="show(event,'处女.jpg','处女座~')" onmouseout="hide(this)" /></td>
&nb
相关文档:
1.document.formName.item("itemName") 问题
说明:IE下,可以使用document.formName.item("itemName")或document.formName.elements["elementName"];Firefox下,只能使用document.formName.elements["elementName"].
解决方法:统一使用document.formName.elements["elementName"].
2.集合类对象问题
说明:IE下,可以使用() ......
14 分割字符串
1: <script language=”JavaScript”>
2: <!--
3: var myVariable = “a,b,c,d”;
4: var stringArray = myVariable.split(“,”);
5: document.write(stringArray[0]);
6: document.write(stringArra ......
JavaScript 语法集锦
click() 对象.click() 使对象被点击。
closed 对象.closed 对象窗口是否已关闭 true/false
clearTimeout(对象) 清除已设置的setTimeout对象
clearInterval(对象) 清除已设置的setInterval对象
confir ......
其实就是用me来代替this,不多说,看代码:
=============================
代码1:
<html>
<head>
<title>无标题文档</title>
</head>
<body>
<input id="testit" type=button value="测试" onclick="vbscript:me.value='完成'">
<input id="testit" type=button v ......