jQuery基础伪链接

Posted on 2009-01-02 16:55 胡娟 阅读(398) 评论(0)  编辑  收藏 所属分类: jQuery
伪链接的小事例
html:
1<href="http://www.blogjava.net/hujuan/archive/2009/01/02/jquery.html"  
2    title="http://hujuan.blogjava.net" class="affLink">jQuery基础ready</a>
JavaScript:
 1//伪链接
 2$(document).ready(function(){
 3        //鼠标移到class为afflink的链接上时,执行函数                
 4        $('a.affLink').mouseover(function(){
 5        window.status=this.title;
 6        //鼠标移除时执行函数
 7        return true;}
).mouseout(function(){
 8            window.status='Done';
 9            return true;}
);
10}
);

只有注册用户登录后才能发表评论。


网站导航:
 

posts - 28, comments - 5, trackbacks - 0, articles - 1

Copyright © 胡娟