偽鏈接的小事例
html:
html:
1
<a href="http://www.aygfsteel.com/hujuan/archive/2009/01/02/jquery.html"
2
title="http://hujuan.blogjava.net" class="affLink">jQuery基礎ready</a>
JavaScript:
2

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
});

2

3

4

5

6

7

8

9

10
