Advertisement
Guest User

jquery - supersized

a guest
May 9th, 2012
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.88 KB | None | 0 0
  1. <script type="text/javascript">        
  2. jQuery(function($){
  3.     $.supersized({
  4.    
  5.         //Functionality
  6.         slideshow               :   1,      //Slideshow on/off
  7.         autoplay                :   1,      //Slideshow starts playing automatically
  8.         start_slide             :   1,      //Start slide (0 is random)
  9.         random                  :   0,      //Randomize slide order (Ignores start slide)
  10.         slide_interval          :   7000,   //Length between transitions
  11.         transition              :   1,     
  12.         transition_speed        :   1600,   //Speed of transition
  13.         new_window              :   1,      //Image links open in new window/tab
  14.         pause_hover             :   0,      //Pause slideshow on hover
  15.         keyboard_nav            :   1,      //Keyboard navigation on/off
  16.         performance             :   2,     
  17.         image_protect           :   1,      //Disables image dragging and right click with Javascript
  18.         image_path              :   'img/', //Default image path
  19.  
  20.         //Size & Position
  21.         min_width               :   0,      //Min width allowed (in pixels)
  22.         min_height              :   950,        //Min height allowed (in pixels)
  23.         vertical_center         :   1,      //Vertically center background
  24.         horizontal_center       :   1,      //Horizontally center background
  25.         fit_portrait            :   0,      //Portrait images will not exceed browser height
  26.         fit_landscape           :   0,      //Landscape images will not exceed browser width
  27.        
  28.         //Components
  29.         navigation              :   1,      //Slideshow controls on/off
  30.         thumbnail_navigation    :   1,      //Thumbnail navigation
  31.         slide_counter           :   1,      //Display slide numbers
  32.         slide_captions          :   1,      //Slide caption (Pull from "title" in slides array)
  33.         slides                  :   [       //Slideshow Images
  34.         <?php    // this will looping  image background custom - xx_rusly_xx
  35.         $images = getFieldOrder('background_slideshow_image');
  36.             foreach($images as $image){
  37.                 echo "{image : '";
  38.                 echo get('background_slideshow_image',1,$image);
  39.                 echo "'},";
  40.             }
  41.         ?>
  42.                                     ]                          
  43.     });
  44. });
  45.  
  46. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement