Hot!Ajax

  • Increase font size
  • Default font size
  • Decrease font size
  • default color
  • black color

Gsearch

Google
Home arrow jQuery arrow Photos | Other plugins arrow 链接检查器(jquery)
链接检查器(jquery)
User Rating: / 1
PoorBest 
Wednesday, 24 October 2007

原文:http://jquery.com/plugins/project/linkchecker

这个组件能够通过向服务器发送请求及要求回应来检查当前页面上的链接,如果服务器返回200则链接正常,否则不正常。

利用php作为后台。

预览:

 

使用:

{tab=head} <LINK
href="style.css" type=text/css rel=stylesheet>
<SCRIPT src="jquery.js"></SCRIPT>

<SCRIPT src="jquery.linkchecker.js"></SCRIPT>

<SCRIPT>
$(document).ready( function() {
$.linkChecker({query : 'a.goto', linksAtOnce : 2});

} );

</SCRIPT>

<STYLE>.inactive {
BACKGROUND: #ccffff; COLOR: #33ccff
}
.active {
BACKGROUND: #ffffcc; COLOR: #ffcc66
}
</STYLE>

{tab=body} <P>Just view source of that file to see example usage.
Blue means inactive link,
yellow means active</P>
<UL>
<LI><A class=goto
href="http://www.microsoft.com/en/us/default.aspx">microsoft.com</A>
<LI><A class=goto href="http://37signals.com/">37signals.com</A> (99.9%
online, I think :)
<LI><A class=goto href="http://unexistenthost.fm/">unexistenthost.fm</A> (will
be 100% offline)
<LI><A class=goto href="http://www.hotajax.org/">www.hotajax.org</A>
</LI></UL> {/tabs}
支持:

动态

下载:http://www.hotajax.org/download/jquery/linkchecker.zip

Comments (0)add comment

Write comment

busy
 
< Prev   Next >