1.  slide  db ϴ.

CREATE TABLE IF NOT EXISTS `g5_slide` (
  `nw_id` int(11) NOT NULL,
  `nw_device` varchar(10) NOT NULL DEFAULT 'both',
  `nw_begin_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `nw_end_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `nw_disable_hours` int(11) NOT NULL DEFAULT '0',
  `nw_left` int(11) NOT NULL DEFAULT '0',
  `nw_top` int(11) NOT NULL DEFAULT '0',
  `nw_height` int(11) NOT NULL DEFAULT '0',
  `nw_width` int(11) NOT NULL DEFAULT '0',
  `nw_subject` text NOT NULL,
  `nw_content` text NOT NULL,
  `nw_content_html` tinyint(4) NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

ALTER TABLE `g5_slide`
  ADD PRIMARY KEY (`nw_id`);

ALTER TABLE `g5_slide`
  MODIFY `nw_id` int(11) NOT NULL AUTO_INCREMENT;



2. 
adm
bbs
data
  ִ ϵ ε ּ.
 

3.
http:///adm/slidelist.php
  
˾ ø øϴ.


4.
Ҷ
<?php
if(defined('_INDEX_')) { 
include G5_BBS_PATH.'/slide.inc.php';
}
?>


ex) slick ̵带 ÷

<div class='part1'>
<?php
if(defined('_INDEX_')) { 
include G5_BBS_PATH.'/slide.inc.php';
}
?>
</div>
<script type='text/javascript' src='<?php echo G5_JS_URL; ?>/slick.min.js'></script>
<script>
jQuery(function($){

    $('.part1').slick({
        autoplay: true,
        autoplaySpeed: 3000,
        dots:true,
        arrows: true,
        pauseOnHover:false,
        accessibility: false
    });

    $('.part1').on('beforeChange', function(event, slick, currentSlide, nextSlide){
        $(".slick-dots li>button").removeClass("dot_timer");
	});
    $('.part1').on('afterChange', function(event, slick, currentSlide, nextSlide){
        $(".slick-active>button").addClass("dot_timer");
	});
    $(".part1").slick('slickGoTo',0);
});
</script>
