這樣?
var stylestr="onmouseover=\"this.className='boldStyle'\" onmouseout=\"this.className=''\"";
var stylestr="onmouseover=\"this.className='boldStyle'\" onmouseout=\"this.className=''\"";
解决方案 »
- <a href="" style="a:link {color: #FF0000}">aaa</a>这句代码为什么无效果?
- 求输出2到100的开方值的javascropt代码,不要调用开放函数,要自定义函数,急……
- 继续那个“圆角div”的讨论
- 弹出窗口的刷新问题 急
- 为什么有的IE不能 new ActiveXObject("MSXML2.XMLHTTP");
- 鼠标移上小图片,大图片从小图片的中间向两边拉开显示js效果
- Extjs4 store给store赋值问题
- 有没有Netscape的Javascript和Microsoft的Js语法区别的对照表?
- 怎样在链接一个页面时同时传一个参数,被链接的那页来接收这个参数呢??
- js 中传递自身
- 如何知道返回的一个对象的元素类型?(document.all)
- 关于JS触发事件让表单空变色的问题
var stylestr="onmouseover=\"this.className='boldStyle'\" onmouseout=\"this.className=''\""
或者var stylestr='onmouseover="this.className=\'boldStyle\'" onmouseout="this.className=\'\'"'
onmouseover:"this.className='boldStyle'"
,onmouseout:"this.className=''"
};
JSON格式的不是更好?,哈哈,我是在瞎揣测楼主朋友...勿见怪.