Jquery图片展示插件(含焦点图)
日期:2010-06-27 01:54:43 来源:网络收集
看看很多Jquery学习者都发布自己的插件,我也耐不住寂寞也来发表自己做的一款图片演示插件,希望能给大家带来方便....
也希望大家参与进来多多完善...更希望高手给出更好的建议
下面是主调用页面的配置方式..希望大家发现问题及时联系本人谢谢啦my_jsj@163.com
[code]
<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""//www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<htmlxmlns="//www.w3.org/1999/xhtml">
<head>
<metahttp-equiv="Content-Type"content="text/html;charset=gb2312"/>
<title>福苑</title>
<linkrel="stylesheet"href="../css/PicBoxCss.css"type="text/css"media="screen"/>
<scripttype="text/javascript"src="../js/jquery-1.4.min.js"></script>
<scripttype="text/javascript"src="../js/PicBoxScript.js"charset="gb2312"></script>
<scripttype="text/javascript">
$(document).ready(function(){
//添加图片参数
PicInfo.add('葫芦小金刚','../images/1.jpg');
PicInfo.add('六娃会隐身','../images/2.jpg');
PicInfo.add('五娃会放火','../images/3.jpg');
PicInfo.add('大娃大力士','../images/4.jpg');
PicInfo.add('二娃千里眼和顺风耳','../images/5.jpg');
PicInfo.add('四娃会放水','../images/6.jpg');
PicInfo.add('三娃铜头铁壁','../images/7.jpg');
PicInfo.add('七娃宝葫芦','../images/8.jpg');
//幻灯式图片盒子参数1=目标位置元素;参数2=高;参数3=宽
LoadPicBoxTwo("picBox1",300,300);
//长条式图片盒子参数1=目标位置元素;参数2=高;参数3=宽
LoadPicBoxOne("picBox2",300,300);
});
</script>
</head>
<body>
<table>
<tr>
<tdheight="500px;"width="600px;"><divid="picBox1"class="PicBox"></div></td>
</tr>
<tr>
<tdwidth="600px;"><divid="picBox2"class="PicBox"></div></td>
</tr>
<tr>
<tdalign="center"><h2>沣凡之家欢迎您</h2></td>
</tr>
<tr>
<tdalign="center"><h2>美图欣赏</h2></td>
</tr>
</table>
</body>
</html>
[/code]
也希望大家参与进来多多完善...更希望高手给出更好的建议
下面是主调用页面的配置方式..希望大家发现问题及时联系本人谢谢啦my_jsj@163.com
[code]
<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""//www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<htmlxmlns="//www.w3.org/1999/xhtml">
<head>
<metahttp-equiv="Content-Type"content="text/html;charset=gb2312"/>
<title>福苑</title>
<linkrel="stylesheet"href="../css/PicBoxCss.css"type="text/css"media="screen"/>
<scripttype="text/javascript"src="../js/jquery-1.4.min.js"></script>
<scripttype="text/javascript"src="../js/PicBoxScript.js"charset="gb2312"></script>
<scripttype="text/javascript">
$(document).ready(function(){
//添加图片参数
PicInfo.add('葫芦小金刚','../images/1.jpg');
PicInfo.add('六娃会隐身','../images/2.jpg');
PicInfo.add('五娃会放火','../images/3.jpg');
PicInfo.add('大娃大力士','../images/4.jpg');
PicInfo.add('二娃千里眼和顺风耳','../images/5.jpg');
PicInfo.add('四娃会放水','../images/6.jpg');
PicInfo.add('三娃铜头铁壁','../images/7.jpg');
PicInfo.add('七娃宝葫芦','../images/8.jpg');
//幻灯式图片盒子参数1=目标位置元素;参数2=高;参数3=宽
LoadPicBoxTwo("picBox1",300,300);
//长条式图片盒子参数1=目标位置元素;参数2=高;参数3=宽
LoadPicBoxOne("picBox2",300,300);
});
</script>
</head>
<body>
<table>
<tr>
<tdheight="500px;"width="600px;"><divid="picBox1"class="PicBox"></div></td>
</tr>
<tr>
<tdwidth="600px;"><divid="picBox2"class="PicBox"></div></td>
</tr>
<tr>
<tdalign="center"><h2>沣凡之家欢迎您</h2></td>
</tr>
<tr>
<tdalign="center"><h2>美图欣赏</h2></td>
</tr>
</table>
</body>
</html>
[/code]
您可能感兴趣的脚本
菜单导航2013-02-27
菜单导航2009-05-04
菜单导航2010-07-13
焦 点 图2013-03-05
悬浮漂浮2010-05-18
菜单导航2017-04-18
焦 点 图2009-07-27
相册代码2009-05-20
菜单导航2011-08-25
在线客服2011-12-19
在线客服2014-04-15
图片特效2013-02-18
菜单导航2009-09-16
图片特效2010-05-23
相册代码2009-04-30
焦 点 图2014-12-04
菜单导航2010-07-20
相册代码2009-07-28
悬浮漂浮2010-09-03
图片特效2014-10-16
焦 点 图2009-11-09
菜单导航2015-01-04
悬浮漂浮2009-11-12
菜单导航2011-09-26