galleryview 动态图片展示及滚动特效

  1. Documentation
  2. Change Log

This extension is ...

Resources

Documentation

Requirements
  • Yii 1.0 or above
Installation
  • Extract the release file under protected/extensions
Usage

See the following code example: view.php <?php $this->widget('application.extensions.galleryview.galleryviewWidget', array( 'data'=> SdbGoods::model()->findAll("image_default IS NOT NULL "), 'size'=>5, 'bigwidth'=>280, 'bigheight'=>280, 'smallwidth'=>100, 'smallheight'=>100, //'itemview'=>'allgalleryviewWidget', //theme 'light' or 'dark' 'theme'=>'light', 'caption_text_color'=>'black', )); ?>

or

view.php

<?php

$this->widget('application.extensions.galleryview.galleryviewWidget', array( 'data'=> $images, 'bigwidth'=>Yii::app()->config->get('smallwidth'), 'bigheight'=>Yii::app()->config->get('smallheight'), 'smallwidth'=>Yii::app()->config->get('thumbwidth'), 'smallheight'=>Yii::app()->config->get('thumheight'), 'itemview'=>'allgalleryviewWidget', //theme 'light' or 'dark' 'theme'=>'light', ));

?>

最后更改\protected\extensions\galleryview\views里的两个视图文件中的变量为你的大图小图路径

Change Log

September 18, 2010
  • Initial release.
1 0
1 follower
641 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Web Service
Tags:
Developed by: johocn
Created on: Sep 18, 2010
Last updated: 13 years ago

Downloads

show all