2012-09-01 29 views
0

我已經開發android phonegap應用程序使用html和jquery.I需要顯示textbox.so的工具提示我試圖在jQuery中使用mouseover,但它的工作像正常的單擊event.After我單擊文本框我我得到了警報。我也嘗試過使用JavaScript。onmouseover不工作在jquery

這裏是我的代碼:

$('#text').qtip({ 
     content: "element", 
     show: 'mouseover', 
     hide: 'mouseout' 
    }); 


<input type="text" id="text" placeholder="first"/> 
<script src="jquery.qtip-1.0.0-rc3.min.js" type="text/javascript"></script> 

敬請幫助me.Thanks提前。

回答

0

電話上沒有任何鼠標,因此不能有任何「鼠標懸停」。我知道iOS有一個移動事件,也許在Android上類似的東西可能是有用的。

+0

這可能會幫助你http://backtothecode.blogspot.se/2009/10/javascript-touch-and-gesture-events.html –