在asp.net中使用JQuery的SlideViewer插件实现图片的滚动效果
2009-08-05 17:55
1286 查看
Jquery的slideViewer插件。
1. background:
JQuery,Ext和propotype这几个js库都是很不错的东西。但是我个人还是比较喜欢JQuery,它相对于其它两个库来说更容易使用,但是Ext能够实现的一些很牛的Layout方面的东西现在JQuery还是说稍微逊色点。这里给大家介绍个使用JQuery的SlideViewer插件实现的图片的浏览功能。界面如下图所示:
2. Introduction:
这里就开始介绍下如何实现的:
第一步: 在vs2005(8)下创建一个普通的asp.net的website,如下所示:
第二步:在项目中添加用到的js文件,这里除了用到jquery.js,SlideViewer.js还有几个实现其它效果的js,如下图:
使用SlideViewer和easing功能的javascript代码:
用到的Css样式代码:
3. SourceCode:
http://download.csdn.net/source/1548637
1. background:
JQuery,Ext和propotype这几个js库都是很不错的东西。但是我个人还是比较喜欢JQuery,它相对于其它两个库来说更容易使用,但是Ext能够实现的一些很牛的Layout方面的东西现在JQuery还是说稍微逊色点。这里给大家介绍个使用JQuery的SlideViewer插件实现的图片的浏览功能。界面如下图所示:
2. Introduction:
这里就开始介绍下如何实现的:
第一步: 在vs2005(8)下创建一个普通的asp.net的website,如下所示:
第二步:在项目中添加用到的js文件,这里除了用到jquery.js,SlideViewer.js还有几个实现其它效果的js,如下图:
使用SlideViewer和easing功能的javascript代码:
<mce:script type="text/javascript"><!-- $(window).bind("load", function() { $("div#mygaltwo").slideView({ easeFunc: "easeInOutBounce", easeTime: 2200 }); }); // --></mce:script>
用到的Css样式代码:
<mce:style type="text/css"><!-- .svw {width: 50px; height: 20px; background:lightblue;} .svw ul {position: relative; left: -999em;} /*core classes*/ .svw img{ width:expression( document.body.scrollWidth); border:1px dashed #000; } #mygaltwo{ text-align:center; width:expression(document.body.scrollWidth); align:center; } .stripViewer { position: relative; overflow: hidden; border: 0px solid lightblue; margin: 0 0 1px 0; } .stripViewer ul { /* this is your UL of images */ margin: 0; padding: 0; position: relative; left: 0; top: 0; width: 1%; list-style-type: none; } .stripViewer ul li { float:left; } .stripTransmitter { overflow: auto; width: 1%; } .stripTransmitter ul { margin: 0; padding: 0; position: relative; list-style-type: none; } .stripTransmitter ul li{ width: 20px; float:left; margin: 0 1px 1px 0; } .stripTransmitter a{ font: bold 10px Verdana, Arial; text-align: center; line-height: 22px; background: lightblue; color: #fff; text-decoration: none; display: block; } .stripTransmitter a:hover, a.current{ background: #fff; color: lightblue; } /*tooltips formatting*/ #tooltip { background: #fff; color: #000; opacity: 0.85; border: 5px solid #dedede; } #tooltip h3 { font: normal 10px Verdana; margin: 0; padding: 6px 2px; border: 0; } --></mce:style><style type="text/css" mce_bogus="1"> .svw {width: 50px; height: 20px; background:lightblue;} .svw ul {position: relative; left: -999em;} /*core classes*/ .svw img{ width:expression( document.body.scrollWidth); border:1px dashed #000; } #mygaltwo{ text-align:center; width:expression(document.body.scrollWidth); align:center; } .stripViewer { position: relative; overflow: hidden; border: 0px solid lightblue; margin: 0 0 1px 0; } .stripViewer ul { /* this is your UL of images */ margin: 0; padding: 0; position: relative; left: 0; top: 0; width: 1%; list-style-type: none; } .stripViewer ul li { float:left; } .stripTransmitter { overflow: auto; width: 1%; } .stripTransmitter ul { margin: 0; padding: 0; position: relative; list-style-type: none; } .stripTransmitter ul li{ width: 20px; float:left; margin: 0 1px 1px 0; } .stripTransmitter a{ font: bold 10px Verdana, Arial; text-align: center; line-height: 22px; background: lightblue; color: #fff; text-decoration: none; display: block; } .stripTransmitter a:hover, a.current{ background: #fff; color: lightblue; } /*tooltips formatting*/ #tooltip { background: #fff; color: #000; opacity: 0.85; border: 5px solid #dedede; } #tooltip h3 { font: normal 10px Verdana; margin: 0; padding: 6px 2px; border: 0; } </style>
3. SourceCode:
http://download.csdn.net/source/1548637
相关文章推荐
- ASP.NET中使用jQuery插件实现图片幻灯效果
- Asp.net使用JQuery实现放大图片效果
- 在asp.net中使用jQuery实现类似QQ网站的图片切割效果
- ASP.NET中使用JavaScript实现图片自动水平滚动效果
- ASP.NET jQuery 实例11 通过使用jQuery validation插件简单实现用户登录页面验证功能
- Asp.net使用JQuery实现评论的无刷新分页及分段延迟加载效果
- ASP.NET jQuery 实例11 通过使用jQuery validation插件简单实现用户登录页面验证功能
- ASP.NET jQuery 食谱11 (通过使用jQuery validation插件简单实现用户登录页面验证功能)
- 使用jQuery实现ASP.NETGridView折叠伸展效果 推荐
- ASP.NET jQuery 随笔 使用allValidator插件简单实现客户端验证功能
- ASP.NET jQuery 食谱12 (通过使用jQuery validation插件简单实现用户注册页面验证功能)
- [C#]使用 C# 代码实现拓扑排序 dotNet Core WEB程序使用 Nginx反向代理 C#里面获得应用程序的当前路径 关于Nginx设置端口号,在Asp.net 获取不到的,解决办法 .Net程序员 初学Ubuntu ,配置Nignix 夜深了,写了个JQuery的省市区三级级联效果
- 使用jQuery实现ASP.NETGridView折叠伸展效果
- Asp.net使用JQuery实现评论的无刷新分页及分段延迟加载效果
- asp.net使用jquery.form实现图片异步上传
- ASP.NET jQuery 实例12 通过使用jQuery validation插件简单实现用户注册页面验证功能
- jQuery在asp.net中实现图片自动滚动
- 使用JQuery.slideBox实现图片滚动效果
- ASP.NET使用Jcrop插件实现图片上传裁剪功能
- Asp.net使用JQuery实现评论的无刷新分页及分段延迟加载效果