Yii Framework Forum: Myfocus For Yii Extensions - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Myfocus For Yii Extensions myfocus is a beautiful image focus js libs try it Rate Topic: -----

#1 User is offline   shoaly 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 13-August 13

Posted 13 August 2013 - 09:08 PM

#myfocus
- myfocus is a beautiful js image gally, i move it to yii, and share with others!
- myfocus project link(only chinese version +_+) : code.google.com/p/myfocus-js

#how to use

<?php  
      $data = array();
      for ($i=1;$i<=8;$i++) {
        $item =array(
        "src"=>Yii::app()->baseUrl."/images/howto/$i.png",
        'link'=>"javascript:;",
        "thumb" => "" ,
        "alt" =>"",
        "text"=>"", 
        );
        array_push($data, $item);
      }
      $mf_config = array(
        "width" =>733, //幻灯宽度
        "height"=>550, //幻灯高度
        "autoZoom"=>"true", //是否允许图片按比例缩小并居中以适应图片区域大小(注意:某些风格可能不支持)[true|false],默认值:false。
        "pattern" =>"mF_pithy_tb", //幻灯风格 mF_fancy|mF_kiki|mF_dleung|mF_kdui|mF_shutters|mF_slide3D|mF_classicHB|mF_classicHC|mF_peijianmall|mF_classicHB|mF_classicHC|mF_peijianmall|mF_pconline|mF_sohusports|mF_rapoo|mF_quwan|mF_pithy_tb|mF_qiyi|mF_liuzg|mF_liquid|mF_fscreen_tb|mF_YSlider|mF_luluJQ|mF_expo2010|mF_games_tb|mF_ladyQ|
      );
      $config = array(
          "target"=>"_self", //对应a标签的 打开方式 self, _blank
      );

      $this->widget('ext.myfocus.Myfocus',array(
        "dataProvider"=>$data,
        "mf_config"=>$mf_config,
        "config"=>$config,

        )); 
    ?>


#contact me
- email: 18295742#qq.com
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users