移动到A处触发A的事件再调用B的事件写逻辑
解决方案 »
- 怎么指定 select的值?
- 帮忙将这几句prototype代码改成jquery的,
- 怎样在网页实现像在flash里一样的用手拖动图片
- 如何让netbeans 6.8支持jquery?
- FCKeditor全屏问题??
- 在网上下载了一个网页在线编辑器,在第一行输入一段javascript,预览一下然后再返回,那段javascript就不见了,怎么改啊?
- 需要在web页面中进行打印,表格数据是从数据库表查询得到的,怎样实现表格记录的分页打印,并且每个分页的表格都需要居中的标题,左上角
- 测试CSDN的新等级制度,终于五星了!
- 有没有Web的鱼骨图插件?
- HTM文件中JAVASCRIPT的某个函数,如何把下面的内容正确显示到htm网页上------刚才写错了要包含的内容
- 如何给网页加上计数器,给高分
- 为什么IE里的字体自动变小?
把如下代码加入<body>区域中
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var linktext=new Array()
linktext[0]='<table border="0" width="210" height="185" bgcolor="#EFEFEF" cellpadding="8" cellspacing="0"><tr><td valign="top"><font face="arial" size="4"><b>国内最大的建站类资源站点</b></font></td></tr></table>'
linktext[1]='<table border="0" width="210" height="185" bgcolor="#D1FD80" cellpadding="8" cellspacing="0"><tr><td valign="top"><font face="arial" size="4"><b>国内最大的也是最有名的游戏网站-第九城市</b></font></td></tr></table>'
linktext[2]='<table border="0" width="210" height="185" bgcolor="#FDB9FD" cellpadding="8" cellspacing="0"><tr><td valign="top"><font face="arial" size="4"><b>国内最大的新闻发布类站点-新浪网</b></font></td></tr></table>'
linktext[3]='<table border="0" width="210" height="185" bgcolor="#FFFF5E" cellpadding="8" cellspacing="0"><tr><td valign="top"><font face="arial" size="4"><b>国内最大的综合性娱乐站点--网易</b></font></td></tr></table>'
linktext[4]='<table border="0" width="210" height="185" bgcolor="#C2D7FC" cellpadding="8" cellspacing="0"><tr><td valign="top"><font face="arial" size="4"><b>最大的搜索引擎站点...搜狐</b></font></td></tr></table>'
var ns6=document.getElementById&&!document.all
var ie=document.all
function show_text(thetext, whichdiv){
if (ie) eval("document.all."+whichdiv).innerHTML=linktext[thetext]
else if (ns6) document.getElementById(whichdiv).innerHTML=linktext[thetext] }
function reset(whichdiv){
if (ie) eval("document.all."+whichdiv).innerHTML='<table border="0" width="210" height="185" bgcolor="#F88530" cellpadding="0" cellspacing="8"><tr><td valign="top"><font face="arial" size="4"><b>请把鼠标放到左侧相应的导航栏目上<p>看到变化效果了吗?</b></font></td></tr></table>'
else if (ns6) document.getElementById(whichdiv).innerHTML='<table border="0" width="210" height="185" bgcolor="#F88530" cellpadding="8" cellspacing="0"><tr><td valign="top"><font face="arial" size="4"><b>请把鼠标放到左侧相应的导航栏目上<p>看到变化效果了吗?</b></font></td></tr></table>'}
// End -->
</script>
<table border="0" width="370" bgcolor="black" cellpadding="3" cellspacing="0" align="center">
<tr><td><table border="0" background="stuff/index_background.gif" width="370" cellpadding="0" cellspacing="0">
<tr><td><table border="0" width="160" bgcolor="#F88530" cellpadding="8" cellspacing="0">
<tr>
<td onclick="window.location='http://www.hjwl.net'" onmouseover="bgColor='#EFEFEF'; show_text(0,'div1')" onmouseout="bgColor='#F88530'; reset('div1')" style="cursor:pointer; cursor:hand"><font face="arial" size="4"><b>好极网络</b></font></td>
</tr>
<tr>
<td onclick="window.location='http://www.the9.com'" onMouseover="bgColor='#D1FD80'; show_text(1,'div1')" onMouseout="bgColor='#F88530'; reset('div1')" style="cursor:pointer; cursor:hand"><font face="arial" size="4"><b>第九城市</b></font></td>
</tr>
<tr>
<td onclick="window.location='http://www.sina.com.cn'" onMouseover="bgColor='#FDB9FD'; show_text(2,'div1')" onMouseout="bgColor='#F88530'; reset('div1')" style="cursor:pointer; cursor:hand"><font face="arial" size="4"><b>新浪网</b></font></td>
</tr>
<tr>
<td onclick="window.location='http://www.163.com'" onMouseover="bgColor='#FFFF5E'; show_text(3,'div1')" onMouseout="bgColor='#F88530'; reset('div1')" style="cursor:pointer; cursor:hand"><font face="arial" size="4"><b>网易</b></font></td>
</tr>
<tr>
<td onclick="window.location='http://www.sohu.com'" onMouseover="bgColor='#C2D7FC'; show_text(4,'div1')" onMouseout="bgColor='#F88530'; reset('div1')" style="cursor:pointer; cursor:hand"><font face="arial" size="4"><b>搜狐</b></font></td>
</tr>
</table></td>
<td>
<span id="div1"><table border="0" width="210" height="185" bgcolor="#F88530" cellpadding="8" cellspacing="0"><tr><td valign="top"><font face="arial" size="4"><b>请把鼠标放到左侧相应的导航栏目上<p>看到变化效果了吗?</b></font></td></tr></table></span>
</td>
</tr>
</table></td>
</tr>
</table>
<a href="http://www.csdn.net" onmouseover="show(this)">中国软件</a>
<div id="div1"></div>
<script>
function show(obj)
{
div1.innerText = obj.href;
}
</script>