Ⅰ jquery函數源代碼到哪裡有查看
把jquery下載下來 不是名字中帶min的 打開不帶min 的那個 就會有所有的源碼 帶min的是壓縮了之後的代碼
Ⅱ 下載的jQuery插件源碼怎麼使用
其他都不用管,直接把scrolld.min.js放到你的網站目錄下面,
然後在你的頁面文件中用script標簽引入這個文件
<scriptsrc="./scrolld.min.js"></script>
注意上面的src要用對應的相對路徑
Ⅲ 給我一個jquery源代碼,不要文件,就是源代碼
你要什麼效果的源代碼啊。。。
<!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" src="jquery-1.7.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function(e) {
$('.nyroModal').css("background-color","red");
});
</script>
</head>
<body>
<a href="demoSent.php" class="nyroModal" rev="modal">Ajax without closing</a>
</body>
</html>
Ⅳ <script type="text/javascript" src="/jquery/jquery.js"></script>
從你那看到的意思大概是瞎隱 寫唯改了一些javascript執行代碼放在了src 中當你在<body>中調用到其中磨山廳的函數的時候他就會去src 中找
Ⅳ 基於jquery實現的tab選項卡功能示例【附源碼下載】
本文實例講述了基於jquery實現的tab選項卡功能。分享給大家供大家參考,具體如下:
jquery這款殺手級別的js框架,顯然已成了開發界的標准js庫,在開發一般web應用的時候,常常用到。今天找到一個實現jquery
tab頁的插件,效果還不錯,比自己用javascript和css去實現一個tab頁好多了。用
tab
頁美化界面,對於用戶體驗來說是顯而易見,讓各種不同類型的數據分布在不同的tab頁中。很直觀,也避免了很多數據現在在一個界面中,顯得很臃腫,看上去就怕。這一款基於jquery
的tab
頁插件名字叫:billy.carousel.
先看看效果圖
看上去效果還不錯吧。
下面看jquery
tab
的html頁面代碼吧
<!DOCTYPE
html>
<head>
<meta
http-equiv="Content-Type"
content="text/html;
charset=utf-8"
/>
<meta
name="description"
content="jQuery實現的tab選項卡式圖片切換效果"
/>
<title>jQuery實現的tab選項卡式圖片切換效果</title>
<!--
JS
Includes
-->
<script
src="images/jquery.js"
type="text/javascript"></script>
<script
src="images/billy.carousel.jquery.min.js"
type="text/javascript"></script>
<!--
CSS
Includes
-->
<link
rel="stylesheet"
href="images/demonstration.css"
rel="external
nofollow"
type="text/css"
media="screen"
/>
<title>tab選項測試</title>
</head>
<body>
<script
type="text/javascript">
$(document).ready(
function()
{
$('#tabber').billy({
slidePause:
5000,
indicators:
$('ul#tabber_tabs'),
customIndicators:
true,
autoAnimate:
false,
noAnimation:
true
});
});
</script>
<div
id="container"
>
<h3>Jquery
Tab
選項卡測試</h3>
<p>點擊tab頁切換</p>
<!--
The
Tabs
標題
-->
<ul
id="tabber_tabs">
<li><a
href="#0"
rel="external
nofollow"
>Tab
One</a></li>
<li><a
href="#1"
rel="external
nofollow"
>Tab
Two</a></li>
<li><a
href="#2"
rel="external
nofollow"
>Tab
Three</a></li>
<li><a
href="#3"
rel="external
nofollow"
>Tab
Four</a></li>
</ul>
<!--
Tabbed
內容區
-->
<div
id="tabber_clip">
<ul
id="tabber">
<li><img
src="images/desert.jpg"
width="900"
height="400"
alt="Desert"></li>
<li>
<br
/>
我想有一座房子,面朝大海,春暖花開....
</li>
<li><img
src="images/wood.jpg"
width="900"
height="400"
alt="Wood"></li>
<li><img
src="images/pond.jpg"
width="900"
height="400"
alt="Pond"></li>
</ul>
</div>
</div>
</body>
</html>
在<head>中引入相關的jquery文件之後,按照上面的例子,就可以做出tab頁面的樣式了,非常簡單了。如果需要調整樣式,可以修改css.
代碼點擊此處本站下載。
更多關於jQuery相關內容感興趣的讀者可查看本站專題:《jQuery頁面元素操作技巧匯總》、《jQuery常見事件用法與技巧總結》、《jQuery常用插件及用法總結》、《jQuery擴展技巧總結》及《jquery選擇器用法總結》
希望本文所述對大家jQuery程序設計有所幫助。
您可能感興趣的文章:基於JQuery的6個Tab選項卡插件JQuery
Tab選項卡效果代碼改進版jQuery實現TAB選項卡切換特效簡單演示jQuery實現Tab選項卡切換效果簡單演示jquery實現超簡潔的TAB選項卡效果代碼jQuery實現滾動切換的tab選項卡效果代碼jQuery實現移動端Tab選項卡效果jQuery封裝的tab選項卡插件分享jquery實現tab選項卡切換效果(懸停、下方橫線動畫位移)動感效果的TAB選項卡jquery
插件
Ⅵ jquery.com網站點開了jquery下載,顯示了一堆jquery代碼,要全部復制粘貼到記事本里詳細點解釋本人白痴
請問你世岩指的是點擊這些鏈接嗎?
當然,如果你想在firefox或chrome上直接保存文件的話,可以右鍵點擊上面的鏈接,然後選擇「目標另存為」就可以保存到你想要的文件到相應位置了。
希望我的回答能化解你的疑問。
Ⅶ jQuery實現的導航動畫效果(附demo源碼)
本文實例講述了jQuery實現的導航動畫效果。分享給大家供大家參考,具體如下:
經常在網上看到的,滑鼠在導航上移動時,導航底部的橫條會自動移動到滑鼠懸浮的導航項上。
效果如下圖:
利用jquery的
animate
函數,很好實現。代碼很簡單!
代碼如下:
<!DOCTYPE
html>
<html>
<head>
<meta
charset="utf-8">
<title>測試</title>
<script
src="jquery-1.9.1.min.js"></script>
</head>
<body>
<div
class="nav"
style="margin:
100px
auto;
width:960px;">
<a
class="active"
href="#">首頁</a>
<a
href="#">產品</a>
<a
href="#">新聞中心</a>
<a
href="#">關於我們</a>
<a
href="#">聯系我們</a>
<a
href="#">首頁</a>
<a
href="#">首頁</a>
<div
class="line"></div>
</div>
<style>
.nav{
position:relative;
}
.nav
a{
padding:10px
20px;
border-bottom:solid
3px
#fff;
text-decoration:
none;
color:#666;
}
.nav
a:hover{
color:#66f;
}
.nav
.active,
.nav
.active:hover{
color:#f33;
}
.nav
.line{
position:absolute;
border-top:solid
2px
red;
width:0;
left:0;
top:0;
}
</style>
<script>
function
navLine(o,
bo)
{
var
x
=
''
+
(o.position().top
+
o.outerHeight()
-
2)
+
'px';
var
y
=
''
+
o.position().left
+
'px';
var
w
=
''
+
o.outerWidth()
+
'px';
var
h
=
'2px';
$('.nav
.line').stop();
if
(bo)
{
$('.nav
.line').css({width:w,
height:h,
top:x,
left:y});
}
else
{
$('.nav
.line').animate({width:w,
height:h,
top:x,
left:y});
}
}
$(function(){
navLine($('.nav
.active'),
true);
$('.nav
a').hover(function(){
navLine($(this));
},
function(){
navLine($('.nav
.active'));
});
});
</script>
</body>
</html>
完整實例代碼點擊此處本站下載。
更多關於jQuery相關內容感興趣的讀者可查看本站專題:《jQuery拖拽特效與技巧總結》、《jQuery擴展技巧總結》、《jQuery常見經典特效匯總》、《jQuery動畫與特效用法總結》、《jquery選擇器用法總結》及《jQuery常用插件及用法總結》
希望本文所述對大家jQuery程序設計有所幫助。
Ⅷ 簡單易懂的jQuery導航(三級菜單)源碼
<!--三級操蛋導航-->
<divclass="nav_left">
<divclass="nav_leftlist">
<h2><b></b>用戶系統</h2>
<dl>
<dt><b></b>用戶管理</dt>
<dd>
<aclass="cur"href="">商戶信息<b></b></a>
<ahref="">用戶信息<b></b></a>
</dd>
</dl>
</div>
<divclass="nav_leftlist">
<h2><b></b>財務系統</h2>
<dl>
<dt><b></b>系統賬務</dt>
<dd>
<ahref="">平台賬單<b></b></a>
<ahref="">賬單明細<b></b></a>
</dd>
</dl>
<dl>
<dt><b></b>商戶賬務</dt>
<dd>
<ahref="">商戶賬單<b></b></a>
<ahref="">提現管理<b></b></a>
</dd>
</dl>
<dl>
<dt><b></b>用戶賬務</dt>
<dd>
<ahref="">用戶賬單<b></b></a>
<ahref="">提現管理<b></b></a>
</dd>
</dl>
</div>
</div>
<style>
.nav_left{background:#232b35;height:100%;width:220px;min-height:600px;position:fixed;top:100px;left:0;}
.nav_leftlist{}
.nav_leftlisth2{height:50px;line-height:50px;padding-left:40px;font-size:16px;background:#3b444f;color:#999999;position:relative;cursor:pointer;}
.nav_leftlisth2b{position:absolute;top:20px;left:13px;width:16px;height:9px;background:url(../images/icon04.png)no-repeat;background-position:00;cursor:pointer;}
.nav_leftlisth2b.cur{background-position:-16px0;}
.nav_leftlistdl{}
.nav_leftlistdldt{height:50px;line-height:50px;background:#2c3643;font-size:16px;color:#ffffff;padding-left:60px;position:relative;cursor:pointer;}
.nav_leftlistdldtb{position:absolute;top:20px;left:34px;width:16px;height:9px;background:url(../images/icon04.png)no-repeat;background-position:0-10px;}
.nav_leftlistdldtb.cur{background-position:-16px-10px;}
.nav_leftlistdldd{}
.nav_leftlistdldda{display:block;height:50px;line-height:50px;color:#fff;padding-left:80px;font-size:16px;position:relative;}
.nav_leftlistdldda.cur{color:#ee581c;}
.nav_leftlistdldda.curb{display:block;position:absolute;top:16px;right:-1px;width:11px;height:18px;background:url(../images/icon04.png)no-repeat;background-position:0-20px;}
</style>
</body>
<scripttype="text/javascript"src="../js/jquery.js"></script>
<scripttype="text/javascript">
$(function(){
$('.nav_leftlist').on('click','h2',function(event){
$(this).siblings('dl').toggle();
if($(this).siblings('dl').css('display')=='none'){
$(this).find('b').addClass('cur');
}else{
$(this).find('b').removeClass('cur');
}
});
$('.nav_leftlist').on('click','dldt',function(event){
$(this).siblings('dd').toggle();
if($(this).siblings('dd').css('display')=='none'){
$(this).find('b').addClass('cur');
}else{
$(this).find('b').removeClass('cur');
}
});
})
</script>
效果圖:
Ⅸ jQuery打字效果實現方法(附demo源碼下載)
本文實例講述了jQuery打字效果實現方法。分享給大家供大家參考,具體如友鍵譽下:
運行效果截圖如下:
點擊此處查看在線演示效果。
1.前台頁面代碼:
<!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>
<title>無標題頁</title>
<script
type="text/javascript"
src="jquery-1.4.2.min.js"></script>
<script
type="text/javascript"
src="jticker_split.js"></script>
<script
type="text/javascript">
$(function(){
$("#ticker").ticker({
cursorList:
"
",
rate:
100,
delay:
4000
}).trigger("play").trigger("stop");
});
</script>
</head>
<body>
<div
id="ticker"
style="height:
200px;
width:
500px;
border:
solid
1px
#cccccc;">
<div>
<h3>
1.1
RIA與Flex</h3>
<p>
當下非常流行一個名詞叫RIA,RIA全稱是Rich
Internet
Application,翻譯成中文為豐富互聯網應用程序。RIA
是集桌面應用程序的最佳用戶界面功能與Web應用程序的普遍採用和快速、低成本布署以及互動多媒體通信的實時快捷於一體的新一代網路應用程序好段。目前WEB領域和桌面軟體領域亮罩正逐步向RIA靠攏,預計3、5年後RIA的時代將會完全到來。</p>
</div>
</div>
</body>
</html>
2.jticker_split.js腳本代碼:
復制代碼
代碼如下:eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return
d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new
RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return
p}('(3(m){5
b="Z";3
h(n,o){2(n>=o)?h(n-o,o):((n<0)?h(n+o,o):n)}3
k(p){5
q=p.u(b);5
o;17(5
n=0;n<1b;n++){4(!q.F[n]){o=n;16}}q.v=h((q.v||0),o);q.10=q.v;q.y=[q.10];q.D=0;q.v++}3
l(o){5
p={Q:o.1k().G()};5
n=o.N();4(n.7){n.R(3(q){p[q]=l(m(L))});2
p}6{p.x=o.x();2
p}}3
e(p,n){5
o;4(p[n[0]]){4(p[n[0]].x){2
p[n[0]]}6{4(n.7==1){2
K}6{o=m.T(n);2
e(p[o[0]],o.1e(1,o.7))}}}6{2
8}}3
d(n){4(n.7>1){n[n.7-1]++;2
n}6{2
8}}3
g(o,n){4(n===8){2
8}5
p=e(o,n);4(p===8){2
g(o,d(n.X(0,n.7-1)))}6{4(p===K){n[n.7]=0;2
g(o,n)}6{2
n}}}3
c(r,q,n,s){5
p,o;5
t=r.N().1c(n[0]);4(!n.7){2{P:r,x:q.x}}6{4(t.7){o=t}6{o=q[n[0]].Q.1h(r)}}p=m.T(n).X(1,n.7);2
c(o,q[n[0]],p,s)}3
i(n){5
o=n.u(b);m("*",n).G();n.G();o.H=0;o.E=0;4(o.w){w=0}}3
a(n){5
o=n.u(b);o.H=o.E}3
j(q,n,r){5
o,p;4(r.w!==8){r.w=h(r.w+1,r.z.7);r.9.U(r.z[r.w])}6{r.9.U(r.z)}o=r.D-r.H;p=r.x.18(o-1);r.9.19(p);4(r.D>=r.E){r.9.S();r.y=d(r.y);2
f(q,n)}6{2
V(3(){4(r.B==n){r.D++;j(q,n,r)}n=W},r.A)}}3
f(o,n){5
p=o.u(b);4(p.B==n){p.y=g(p.F,p.y);4(p.y===8){2
V(3(){4(p.I&&(p.B==n)){k(o);2
f(o,n)}n=W},p.C)}6{4(!p.D){i(o)}6{a(o)}}m.O(p,c(o,p.F,p.y));p.E=p.E+p.x.7;p.P.1l(p.9);2
j(o,n,p)}}m.M[b]=3(n){5
p=m.O({},m.M.Z.Y,n);2
L.R(3(){5
o=m(L);o.u(b,{A:p.A,C:p.C,F:l(o),9:p.9,z:p.z,w:(1f(p.z)=="1m")?0:8,v:0,B:0}).J("1j",3(r){5
q=o.u(b);q.I=8}).J("13",3(r){5
q=o.u(b);q.B++;q.I=K;q.v=(r.11||q.v);k(o);f(o,q.B)}).J("15",3(r){5
q=o.u(b);m().O(q,{v:r.11,A:r.A,C:r.C})}).N().S()})};m.M[b].Y={A:1d,C:12,z:"14",9:m(\'<1i
1a="9"
/>\')}})(1g);',62,85,'||return|function|if|var|else|length|false|cursor|||||||||||||||||||||data|nextItem|cursorIndex|text|elemIndex|cursorList|rate|eventIndex|delay|charIndex|sum|content|empty|start|running|bind|true|this|fn|children|extend|readout|elem|each|remove|makeArray|html|setTimeout|null|slice|defaults|ticker|currentItem|item|2000|play|_|control|break|for|charAt|before|class|200|eq|40|splice|typeof|jQuery|appendTo|span|stop|clone|append|object'.split('|'),0,{}))
完整實例代碼點擊此處本站下載。
希望本文所述對大家jQuery程序設計有所幫助。