怎样给 h:outputText 加两个onmouseover事件?
<t:div style="width:360px;height:100px;" id="threepic">
<t:div style="width:100px;height:100px;float:left;border:1px solid #C0C0C0;margin-left:10;" >
<h:outputText value="<img src=''
onmouseover='changeTemplate(this)' style='width:100px;height:100px;'/>" escape="false"/>
</t:div>
<t:div style="width:100px;height:100px;float:left;border:1px solid #C0C0C0;margin-left:10;" >
<h:outputText value="<img src=''
onmouseover='changeTemplate(this)' style='width:100px;height:100px;'/>" escape="false"/>
</t:div>
<t:div style="width:100px;height:100px;float:left;border:1px solid #C0C0C0;margin-left:10;" >
<h:outputText value="<img src=''
onmouseover='changeTemplate(this)' style='width:100px;height:100px;'/>" escape="false"/>
</t:div>
</t:div>
上面是三张图片,每张都有一个onmouseover事件,我还想加个:
onmouseover="this.style.border='1px red solid';"
onmouseout="this.style.border='1px #fff solid';"
怎样加啊?3Q