this.src是否无法更改图像源? [英] this.src is not working to change the image source ?
本文介绍了this.src是否无法更改图像源?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我有一个菜单项,我想在鼠标移开和鼠标悬停时更改其来源.知道图像源来自全局资源.我已经在全局资源中以正确的方式设置了图像,但是它不起作用.我在做什么
Hi all ,
I have a menu item and i want to change its source when mouse out and mouse over.Knowing that the image source is from global resource.I have set the images in correct ways in the global resource , but it is not working.Here is what i am doing
<img runat="server" alt="About Us" border="0" src="<%$ Resources:GlobalText, AboutUs%>"
onmouseover=''this.src= <%$ Resources:GlobalText, AboutUsHover%>'' onmouseout="this.src=<%$ Resources:GlobalText, AboutUs%>" />
这就是我调试javascript时生成的内容:
And this is what generated when i debug javascript :
<img src="images/AboutUs.jpg" border="0" onmouseover="this.src='<%$ Resources:GlobalText, AboutUsHover%>'" onmouseout="this.src=<%$ Resources:GlobalText, AboutUs%>" />
并且错误是无效的属性值.
请帮助.
and the error is Invalid property value.
Please help .
推荐答案
资源:GlobalText,AboutUs%> onmouseover =''this.src =<%
Resources:GlobalText, AboutUs%>" onmouseover=''this.src= <%
资源:GlobalText,AboutUsHover%>''onmouseout ="this.src =<%
Resources:GlobalText, AboutUsHover%>'' onmouseout="this.src=<%
资源:GlobalText,AboutUs%>" />
Resources:GlobalText, AboutUs%>" />
这就是我调试javascript时生成的内容:
And this is what generated when i debug javascript :
<img src="images/AboutUs.jpg" border="0" onmouseover="this.src='<%
这篇关于this.src是否无法更改图像源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文