2012-12-17 19 views
0

對於下面的代碼如何在RichFaces的按鈕變焦的onmouseover在RichFaces的

<a4j:region id="auditbutton">      
<a4j:commandButton id="audit" image="images/audit.png" 
    action="#{agentBean.retrieveAuditInformation}" oncomplete="javascript:popopen()" status="ajaxStatus"> 
<rich:toolTip for="audit" value="View History" direction="top-left" styleClass="tooltip"/> 
     </a4j:commandButton> 

回答

0
<a4j:commandButton ...... onmouseover="this.width = this.width + 5;" onmouseout="this.width = this.width - 5;"> 
+0

我想添加鼠標懸停()僅在該按鈕/ mouneout功能將圖像添加的onmouseover功能。 – Manu

+0

對不起,我不明白。當你在'image'屬性中使用''時,最終的'HTML'將會是''元素。上面的代碼通過'5'增加了它的大小。 – prageeth

+0

其增加整個​​在表中。我只需要縮放圖像在命令按鈕。我的代碼如下 Manu