推荐 25 个优雅的 jQuery Tooltip 插件
jQuery 工具提示可以让网站上一些小的帮助信息显示更加直观,提升用户的体验。下面我们为你推荐 25 个最好的工具提示插件:
1. jqTooltip
2. Pop! Simple Pop Menus with jQuery
兼容IE,FF浏览器,世界各地区域的JS时间计算
<table height=”25″ cellspacing=”0″ cellpadding=”0″ border=”0″>
<tbody>
<tr valign=”top”>
<td valign=”center”>北京时间[<span id="beijing">10:24:10</span>]</td>
<td valign=”center”>伦敦时间[<span id="london">02:24:10</span>]</td>
<td valign=”center”>纽约时间[<span id="newyork">21:24:10</span>]</td>
<td valign=”center”>芝加哥时间[<span id="chicago">20:24:10</span>]</td>
<td valign=”center”>东京时间[<span id="tokyo">11:24:10</span>]</td>
</tr>
</tbody>
</table>
//<![CDATA[
function time_rota()
{
var now;
var h,m,s;
now = new Date();
h=now.getHours();
m=now.getMinutes();
s=now.getSeconds();
h=((h < 10) ? "0" : "") + h;
m=((m < 10) ? "0" : "") + m;
s=((s < 10) ? "0" : "") + s;
document.getElementById('beijing').innerHTML = h + ":" + m + ":" + s;
setTimeout("time_rota()", 1000);
}
time_rota();
function time_rota1()
{
var now;
var h,m,s;
now = new Date();
h=now.getUTCHours();
h -= -0;
if(h<0)
{h += 24;}
m=now.getUTCMinutes();
s=now.getUTCSeconds();
h=((h < 10) ? "0" : "") + h;
m=((m < 10) ? "0" : "") + m;
s=((s < 10) ? "0" : "") + s;
document.getElementById('london').innerHTML = h + ":" + m + ":" + s;
setTimeout("time_rota1()", 1000);
}
time_rota1();
function time_rota2()
{
var now;
var h,m,s;
now = new Date();
h=now.getHours();
h -= 13;
if(h<0)
{h += 24;}
m=now.getMinutes();
s=now.getSeconds();
h=((h < 10) ? "0" : "") + h;
m=((m < 10) ? "0" : "") + m;
s=((s < 10) ? "0" : "") + s;
document.getElementById('newyork').innerHTML = h + ":" + m + ":" + s;
setTimeout("time_rota2()", 1000);
}
time_rota2();
function time_rota3()
{
var now;
var h,m,s;
now = new Date();
h=now.getUTCHours();
h -= -9;
if(h<=0)
{h += 24;}
m=now.getUTCMinutes();
s=now.getUTCSeconds();
h=((h < 10) ? "0" : "") + h;
m=((m < 10) ? "0" : "") + m;
s=((s < 10) ? "0" : "") + s;
document.getElementById('tokyo').innerHTML = h + ":" + m + ":" + s;
setTimeout("time_rota3()", 1000);
}
time_rota3();
function time_rota4()
{
var now;
var h,m,s;
now = new Date();
h=now.getUTCHours();
h -= 6;
if(h<=0)
{h += 24;}
m=now.getUTCMinutes();
s=now.getUTCSeconds();
h=((h < 10) ? "0" : "") + h;
m=((m < 10) ? "0" : "") + m;
s=((s < 10) ? "0" : "") + s;
document.getElementById('chicago').innerHTML = h + ":" + m + ":" + s;
setTimeout("time_rota4()", 1000);
}
time_rota4();
//]]>
兼容ff的加入收藏和设为首页代码
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=gb2312″ />
<title>设为首页–加入收藏</title>
<script type=”text/javascript”>
function setHomePage(obj){
var aUrls=document.URL.split(“/”);
var vDomainName=”http://”+aUrls[2]+”/”;
try{//IE
obj.style.behavior=”url(#default#homepage)”;
obj.setHomePage(vDomainName);
}catch(e){//other
if(window.netscape) {//ff
try {
netscape.security.PrivilegeManager.enablePrivilege(“UniversalXPConnect”);
}
catch (e) {
alert(“此操作被浏览器拒绝!请在浏览器地址栏输入“about:config”并回车然后将[signed.applets.codebase_principal_support]设置为’true’”);
}
var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);
prefs.setCharPref(‘browser.startup.homepage’,vDomainName);
}
}
if(window.netscape)alert(“ff”);
}
function addFavorite(){
var aUrls=document.URL.split(“/”);
var vDomainName=”http://”+aUrls[2]+”/”;
var description=document.title;
try{//IE
window.external.AddFavorite(vDomainName,description);
}catch(e){//FF
window.sidebar.addPanel(description,vDomainName,”");
}
}</script>
</head>
<body>
<input type=”button” value=”设为首页” onclick=”setHomePage(this);” /> <input type=”button” value=”加入收藏” onclick=”addFavorite();” />
</body>
</html>
23个超流行的jQuery相册插件
本文罗列了23款目前非常受欢迎的jQuery插件,可以轻松建立起唯美的图片切换特效的相册功能,并且其中的一些还支持视频和Flash。
这些jQuery插件包括演示、文档说明等,欣赏吧!
1. Galleriffic
下载与文档 查看演示
2. jPhotoGrid
下载与文档 查看演示
3. Galleria
下载与文档 查看演示
4. YoxView
下载与文档 查看演示
5. Micro Image Gallery
下载与文档 查看演示
6. AD Gallery
下载与文档 查看演示
7. slideViewerPro
下载与文档 查看演示
8. Galleryview
下载与文档 查看演示
9. Pikachoose Image Gallery
下载与文档 查看演示
10. Multimedia Gallery for Images, Video and Audio
下载与文档 查看演示
11. Spacegallery
下载与文档 查看演示
12. jQuery Cycle
下载与文档 查看演示
13. Pikachoose
下载与文档 查看演示
14. s3Slider
下载与文档Tutorial & Downloads → View the Demo 查看演示→
15. slideViewer
下载与文档 查看演示
16. jFlow
下载与文档 查看演示
17. CrossSlide
下载与文档 查看演示
18. Slides – A Slideshow Plugin for jQuery
下载与文档 查看演示
19. jTag – Plugin to Tag Pictures & More
下载与文档 查看演示
20. Galleria – JavaScript Image Gallery Framework
下载与文档 查看演示
21. A Horizontal Accordion Plugin for jQuery
下载与文档 查看演示
22. jShowOff – A jQuery Content Rotator
下载与文档 查看演示
23. Zoomy – E-Magnification
下载与文档 查看演示
禁止网页复制和右键菜单,兼容ff和ie
<script language=”javascript”>
document.oncontextmenu =
document.onselectstart =
new Function(“return false”);
</script>

























