菜问题,一定有大哥知道! 移动到A处触发A的事件再调用B的事件写逻辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 脚本说明: 把如下代码加入<body>区域中 <SCRIPT LANGUAGE="JavaScript"><!-- Beginvar 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.allvar ie=document.allfunction 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.baidu.com" onmouseover="show(this)">百度中国</a><a href="http://www.csdn.net" onmouseover="show(this)">中国软件</a><div id="div1"></div><script>function show(obj){ div1.innerText = obj.href;}</script> 文字忽隐忽现的jQuery代码加入变量出现错误 关于日历插件 如何选中下拉框的某一value值(下拉框的选中问题) 研究蜘蛛网选座页面JS问题! 请大家来帮忙 高手帮忙!!!!图片显示问题! 特殊格式符不能正常显示? 如何判断表单没有某个对象??? 关于页面刷新的问题? 关于多个单选框的验证问题 如何给网页加上计数器,给高分 为什么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>