JavaScript编写变色菜单
<html>
<body>
<script language="JavaScript">
function
openme(object)
{
object.style.background="#FFFFCC";
}
function
closeme(object)
{
object.style.background="#99FFFF";
}
</script>
<table border="1" cellspacing="2" width="30%"
bgcolor="#99FFFF" cellpadding="2" class=p2>
<tr>
<td align="center" width="15%"
onMouseOver="openme(this);"
onMouseOut="closeme(this);">
<a
href="http://www.hongen.com/pc/index.htm">
<strong>电脑乐园</strong>
</a>
</td>
<tr>
<td align="center" width="15%"
onMouseOver="openme(this);"
onMouseOut="closeme(this);">
<a href="http://www.hongen.com/eng/index.htm"
>
<strong>轻松英语</strong>
</a>
</td>
</tr>
<tr>
<td align="center" width="15%"
onMouseOver="openme(this);"
onMouseOut="closeme(this);">
<a href="http://www.hongen.com/proedu/index.htm"
>
<strong>继续教育</strong>
</a>
</td>
</tr>
<tr>
<td align="center" width="15%"
onMouseOver="openme(this);"
onMouseOut="closeme(this);">
<a
href="http://www.hongen.com/album/index.htm">
<strong>同窗名录</strong>
</a></td>
</tr>
<tr>
<td align="center" width="15%"
onMouseOver="openme(this);"
onMouseOut="closeme(this);">
<a
href="http://www.hongen.com/edu/index.htm">
<strong>动感校园</strong>
</a>
</td>
</tr>
</table>
</body>
</html>
- 01:58
- 浏览 (41)
- 评论 (0)
- 分类: JavaScript&Ajax
- 相关推荐
发表评论
- 浏览: 1257 次
- 性别:

- 来自: 北京

- 详细资料
搜索本博客
最近加入圈子
最新评论
-
Session的创建时间
Session ID 只是一个号码,对应一个Session存储空间。 浏览器进 ...
-- by buaawhl -
Session的创建时间
如果用了url重写,所有的链接都要用到url重写,非常的麻烦,与其url重写,还 ...
-- by gotothework -
Session的创建时间
不用大惊小怪啊,多看看sun的文档,或者sun的那个第二级的考试指南就有讲的。另 ...
-- by eddie404956 -
关于XMLHttpRequest.open( ...
看到了kimmking的回帖,太感谢了。因为我是初学,只会用穷举法列出所有的可能 ...
-- by holdbelief -
setTimeout调用有返回值的 ...
var retValue = ''; 可以去掉 IE和FF中都通过
-- by kimmking






评论排行榜