古人对于鱼的别称:<a onMouseOut=nd() onMouseOver="dcc('<table border=0 cellpadding=0></a>是何意?

来源:百度文库 编辑:查人人中国名人网 时间:2024/05/05 03:45:04
<a onMouseOut=nd() onMouseOver="dcc('<table border=0 cellpadding=0><%if rs("email")="" then Response.Write"未知"</a>此段代码怎么理解?

你没写完整吧
onMouseOut=nd() onMouseOver=dcc
就是当鼠标移开和经过的时候分别调用nd,dcc这两个javascript的函数,

<%if rs("email")="" then Response.Write"未知"%>
这句是asp写的,是指当email字段为空时就显示"未知"

<a>内容</a>是超链接

偶来给一个正解吧
这个网页包含了一个js的文件,其中有两个函数:
dcc(s)这个函数是显示层,并且层随着鼠标移动,s是参数,也就是层中显示的内容
nd()这个函数的功能是将层隐藏

那么这样就好理解这段话的内容了
onMouseOut=nd()是鼠标移开时隐藏层的内容

onMouseOver="dcc('<table border=0 cellpadding=0>这句应该是你没有复制完全,应该是在层里面显示一个表格

if rs("email")="" then Response.Write"未知"这句是ASP语句,是指当rs("email")为空是时候,显示"未知"后面应该还有一句else response.write rs("email")

<a></a>是超链接就不用我说了吧.

nd()和dcc()都是JavaScript函数,要理解这段代码的意义,还要分析这两个函数。