欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

基于jQuery的簡單九宮格實(shí)現(xiàn)代碼

 更新時間:2012年08月09日 00:00:57   作者:  
聽朋友說要作個九宮格,我也就隨便寫一個,等待完善
復(fù)制代碼 代碼如下:

<input type="button" value="1"/>
<input type="button" value="2"/>
<input type="button" value="3"/><br>
<input type="button" value="4"/>
<input type="button" value="5"/>
<input type="button" value="6"/><br>
<input type="button" value="7"/>
<input type="button" value="8"/>
<input type="button" value="9"/><br>
<input type="text" value=""/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
var items="";
jQuery(function(){
$("input:button").each(function(index){
$(this).mouseover(function(){
if(items.indexOf($('input').eq(index).val())==-1){
items+=$('input').eq(index).val();
$('input:text').val(items)
}
})
})
})
</script>

相關(guān)文章

最新評論