YII1.1.7 首页三张图片轮训问题(有什么好的实现方法) [ 1.1 版本 ]
采用 SimpleFadeSlideShow 插件实现失败,图片可以显示,但是3张图片是列方向排列,问题出在哪里了? js css我已经在当前页面加入。
按提示操作失败?什么原因导致?
How to use
- download the latest from github or do a checkout (git@github.com:schlypel/Yii-SimpleFadeSlideShow.git)
- put the folder SimpleFadeSlideShow to your extensions folder, usually protected/extensions
- use the provided widget in your view
Example Markup
Thanks to Yii´s auto loading, there is no need to add this extension to your config.
Minimal markup
$this->widget(
'ext.SimpleFadeSlideShow.SimpleFadeSlideShow',
array(
'images' => array('url.to.image','url.to.another.image')
)
);
Advanced markup
$this->widget(
'ext.SimpleFadeSlideShow.SimpleFadeSlideShow',
array(
'images' => array(
array(
'src' => 'url.to.image',
'href' => 'url.to.open.on.click',
'text' => 'Some text to show as link title and image alt tag'
),
array(
'src' => 'url.to.another.image',
'href' => 'url.to.open.on.click',
'text' => 'Some text to show as link title and image alt tag'
)
),
'width' => 624,
'height' => 240,
'interval' => 10000,
'speed' => 'slow',
'ListElement' => false,
'PlayPauseElement' => false,
'autoPlay' => true,
)
);
共 0 个回答
没有找到数据。
greenjia0
注册时间:2017-02-08
最后登录:2018-01-29
在线时长:8小时6分
最后登录:2018-01-29
在线时长:8小时6分
- 粉丝1
- 金钱10
- 威望0
- 积分90