效果图 按钮 <!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="C…
我们在做项目是有时候会遇到设置自动滚动图片,所以我自己也遇到过两次.觉得他是一个挺有意思东西,所以做了下总结 DEMO: .h #import <UIKit/UIKit.h> @interface ImagePlayView : UIView<UIScrollViewDelegate> @property (nonatomic, strong) UIScrollView * scroll; @property (nonatomic, strong) UIPageControl *…
源码AdScrollerView,一个已经封装好的UIScrollView的子类,可以自动滚动图片以及对应的描述语,类似淘宝app首页的广告滚动效果.滚动图片数量不限,并且显示pageControl. 效果图: <ignore_js_op> 源码下载: http://code.662p.com/view/9763.html 使用方法: 导入demo中的AdScrollerView文件夹,并导入头文件: #import "AdScrollView.h" #import &qu…
以前图片轮播经常用网上的插件,然后想说自己也要认真看看,一步一步弄明白,所以就自己研究写了个图片轮播的代码,我自己觉得还算是挺简单的.如有改进的地方,欢迎你能帮我指出,共同进步. (ps:博客园如何上传代码就是可以供大家下载那种,一直没找到地方!) html: <html><body> <div class="main"> <div class="myslide"> <ul class="myslide…
ui-view Examples for autoscroll: <ui-view autoscroll/> <!-- If autoscroll present with no expression, then scroll ui-view into view --> <ui-view autoscroll/> <!-- If autoscroll present with valid expression, then scroll ui-view into v…
下面js代码可以实现8张图片点击左右按钮后切换的过渡动画效果 var pslul11=document.getElementById('pslul11')var pslspan1=document.getElementById('pslspan1')var pslspan2=document.getElementById('pslspan2')var p=0 pslspan2.onclick=function dd1(){ if (p<7) {p+=1} pslul11.style.margin…
在酷站网站下的,具体路径忘了,稍微改了一下,让它看起来像组滑动 1)被引用的js文件ScrollPic.js ?){){i+=l.length;)I=document.cookie.length;o=unescape(document.cookie.substring(i,I))}};);O="; expires="+O.toGMTString()};if(c!=null){I=";domain="+c};document.cookie=i+"="…
<!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-…
图片左右滚动的效果想必大家都有见到过吧,其实很简单.在本文将为大家介绍下使用Jquery是如何实现图片左右自动滚动的. 代码如下:<!DOCTYPE HTML>  <html>  <head>  <title>基于jQuery的控制左右滚动效果_自动滚动版本</title>  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js&quo…
效果体验网址:http://keleyi.com/keleyi/phtml/image/12.htm HTML文件代码: <!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/xh…