我们现在做的系统,有的浏览器当鼠标移动到超链接时title的内容显示出来,有的浏览器显示不出来,不知道怎么样回事?
<logic:notEmpty name="csvcList"><logic:iterate id="csvc" name="csvcList" indexId="csvcIndex">
logic:equal name="csvc" property="csvcpcfg" value="Y">
<td><a href="<%=request.getContextPath()%>/mncl.do?fanu=CSVCC&main=ueCsvtCu.do?act=query~csvtcstp=<bean:write name="csvc" property="csvccstp"/>" target="_top" onmouseover="ShowHid(this)" onmouseout="HidShow(this)" title="咨询类型:<bean:write name="csvc" property="cstpname"/> 主持单位:<bean:write name="csvc" property="meacname"/> 咨询日期:<bean:write name="csvc" property="mtdtname"/> 进行状态:<bean:write name="csvc" property="pcfgname"/> 咨询介绍:<bean:write name="csvc" property="csvcinmt"/>" ><img src="<%=request.getContextPath()%>/por/images/man_<bean:write name="csvcIndex"/>.jpg" name="Image<bean:write name="csvcIndex"/>" border="0" id="Image<bean:write name="csvcIndex"/>" /></a></td>
</logic:equal>
logic:equal name="csvc" property="csvcpcfg" value="H">
<td><a href="<%=request.getContextPath()%>/mncl.do?fanu=CSVCC&main=ueCsvtCu.do?act=query~csvtcstp=<bean:write name="csvc" property="csvccstp"/>" target="_top" onmouseover="ShowHid(this)" onmouseout="HidShow(this)" title="咨询类型:<bean:write name="csvc" property="cstpname"/> 主持单位:<bean:write name="csvc" property="meacname"/> 咨询日期:<bean:write name="csvc" property="mtdtname"/> 进行状态:<bean:write name="csvc" property="pcfgname"/> 咨询介绍:<bean:write name="csvc" property="csvcinmt"/>" ><img src="<%=request.getContextPath()%>/por/images/man_<bean:write name="csvcIndex"/>.jpg" name="Image<bean:write name="csvcIndex"/>" border="0" id="Image<bean:write name="csvcIndex"/>" /></a></td>
</logic:equal>
<logic:equal name="csvc" property="csvcpcfg" value="N">
<td><a href="javascript:alert('咨询尚未进行');" onmouseover="ShowHid(this)" onmouseout="HidShow(this)" title="咨询类型:<bean:write name="csvc" property="cstpname"/> 主持单位:<bean:write name="csvc" property="meacname"/> 咨询日期:<bean:write name="csvc" property="mtdtname"/> 进行状态:<bean:write name="csvc" property="pcfgname"/> 咨询介绍:<bean:write name="csvc" property="csvcinmt"/>" ><img src="<%=request.getContextPath()%>/por/images/man_<bean:write name="csvcIndex"/>.jpg" name="Image<bean:write name="csvcIndex"/>" border="0" id="Image<bean:write name="csvcIndex"/>" /></a></td>
</logic:equal>
</logic:iterate>
</logic:notEmpty>
里面的所有的内容是我从数据库里查出来的,ie6 sp1显示不出来,ie7或者ie6 sp2可以显示出来,顺便说下我的系统是 2003!
--------------------编程问答-------------------- ShowHid(this)和HidShow(this)这两个方法是怎么定义的?里面是不是有javascript的错误
我记着只需要定义title属性即可显示,另外一个可能会出现错误的地方是你在title属性的value中出现了"(如"csvc"),不太确定这个会不会出现错误
--------------------编程问答-------------------- <logic:notEmpty name="csvcList">
<logic:iterate id="csvc" name="csvcList" indexId="csvcIndex">
<logic:equal name="csvc" property="csvcpcfg" value="Y">
<td><a href="<%=request.getContextPath()%>/mncl.do?fanu=CSVCC&main=ueCsvtCu.do?act=query~csvtcstp=<bean:write name="csvc" property="csvccstp"/>" target="_top" title="咨询类型:<bean:write name="csvc" property="cstpname"/> 主持单位:<bean:write name="csvc" property="meacname"/> 咨询日期:<bean:write name="csvc" property="mtdtname"/> 进行状态:<bean:write name="csvc" property="pcfgname"/> 咨询介绍:<bean:write name="csvc" property="csvcinmt"/>" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image<bean:write name="csvcIndex"/>','','<%=request.getContextPath()%>/por/images/manover_<bean:write name="csvcIndex"/>.jpg',1)"><img src="<%=request.getContextPath()%>/por/images/man_<bean:write name="csvcIndex"/>.jpg" name="Image<bean:write name="csvcIndex"/>" border="0" id="Image<bean:write name="csvcIndex"/>" /></a></td>
</logic:equal>
<logic:equal name="csvc" property="csvcpcfg" value="H">
<td><a href="<%=request.getContextPath()%>/mncl.do?fanu=CSVCC&main=ueCsvtCu.do?act=query~csvtcstp=<bean:write name="csvc" property="csvccstp"/>" target="_top" title="咨询类型:<bean:write name="csvc" property="cstpname"/> 主持单位:<bean:write name="csvc" property="meacname"/> 咨询日期:<bean:write name="csvc" property="mtdtname"/> 进行状态:<bean:write name="csvc" property="pcfgname"/> 咨询介绍:<bean:write name="csvc" property="csvcinmt"/>" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image<bean:write name="csvcIndex"/>','','<%=request.getContextPath()%>/por/images/manover_<bean:write name="csvcIndex"/>.jpg',1)"><img src="<%=request.getContextPath()%>/por/images/man_<bean:write name="csvcIndex"/>.jpg" name="Image<bean:write name="csvcIndex"/>" border="0" id="Image<bean:write name="csvcIndex"/>" /></a></td>
</logic:equal>
<logic:equal name="csvc" property="csvcpcfg" value="N">
<td><a href="javascript:alert('咨询尚未进行');" title="咨询类型:<bean:write name="csvc" property="cstpname"/> 主持单位:<bean:write name="csvc" property="meacname"/> 咨询日期:<bean:write name="csvc" property="mtdtname"/> 进行状态:<bean:write name="csvc" property="pcfgname"/> 咨询介绍:<bean:write name="csvc" property="csvcinmt"/>" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image<bean:write name="csvcIndex"/>','','<%=request.getContextPath()%>/por/images/manover_<bean:write name="csvcIndex"/>.jpg',1)"><img src="<%=request.getContextPath()%>/por/images/man_<bean:write name="csvcIndex"/>.jpg" name="Image<bean:write name="csvcIndex"/>" border="0" id="Image<bean:write name="csvcIndex"/>" /></a></td>
</logic:equal>
</logic:iterate>
是这段代码,onmouseover and onmouseout是切换图片的功能,但是在有的浏览器里能显示,在有的浏览器能显示! --------------------编程问答-------------------- 不知,帮顶 --------------------编程问答-------------------- 加上title属性即可
<a href="http://www.yyy.com" target="_blank" accesskey="b" title="我">提示语为“我”</a>
补充:企业软件 , WebSphere