var turn = function(target,time,opts){target.find('a').hover(function(){$(this).find('.class_01').stop().animate(opts[0],time,function(){$(this).hide().next().show();$(this).next().animate(opts[1],time);});},function(){$(this).find('.info').animate(opts[0],time,function(){$(this).hide().prev().show();$(this).prev().animate(opts[1],time);});});}想讓鼠標(biāo)懸停改成鼠標(biāo)點(diǎn)擊,target.find('a').hover改成target.find('a').click沒用
1 回答

達(dá)令說
TA貢獻(xiàn)1821條經(jīng)驗(yàn) 獲得超6個(gè)贊
·就是你獲取到的具體節(jié)點(diǎn)對象后.target就可以了,其實(shí)你仔細(xì)看API都可以看懂的:如果是對于tree插件 find方法的描述[mw_shl_code=javascript,true]Find the specifed node and return the node object. Code example:// find a node and then select itvar node = $('#tt').tree('find', 12);//找到id值為12的節(jié)點(diǎn)對象$('#tt').tree('select', node.target);//選中該節(jié)點(diǎn)[/mw_shl_code]
添加回答
舉報(bào)
0/150
提交
取消