Supersized Slideshow가 실행 중입니다. 슬라이드가 표시되면 새로 고침/새로 고침해야합니다. 사진은 내 서버에서 동적으로 가져오고 슬라이드 쇼가 재생되는 동안 새 사진을 추가 할 수 있습니다. 사진을 재생하고 새로 고침하여 새 사진을 확인할 수 있기를 바랍니다. 여기에 내가 사용하고있는 코드가있다jquery 슬라이드를 재생 한 후 페이지를 다시로드해야하는 번거 로움이 있습니다.
//php code to get pictures
$picture = array();
foreach($rows as $row)
{
$picture[] = $row["photo"];
}
$newarray = array();
for ($key_Number = 0; $key_Number < count($picture); $key_Number++) {
$newarray[] = "{image : '".$path . "/" . $album . "/" . $picture[$key_Number]."'}";
// Then in my Html
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.easing.min.js"></script>
<script type="text/javascript" src="js/supersized.3.2.7.min.js"></script>
<script type="text/javascript" src="theme/supersized.shutter.min.js"></script>
<script type="text/javascript">
jQuery(function($){
$.supersized({
// Functionality
slide_interval : 4000, // Length between transitions
transition : 1, // 0-None, 1-Fade, 2-Slide Top, 3-Slide Right, 4-Slide Bottom, 5-Slide Left, 6-Carousel Right, 7-Carousel Left
transition_speed : 700, // Speed of transition
new_window : 1, // Image links open in new window/tab
performance : 1, // 0-Normal, 1-Hybrid speed/quality, 2-Optimizes image quality, 3-Optimizes transition speed // (Only works for Firefox/IE, not Webkit)
image_protect : 1, // Disables image dragging and right click with Javascript
// Components
slide_links : 'blank', // Individual links for each slide (Options: false, 'num', 'name', 'blank')
slides : [ // Slideshow Images
<?php echo implode(',', $newarray) ?>
]
});
});
</script>
}
나는 window.location.reload()를 사용하려고 생각했다. 또는 일부 기능을 구현하지만 그것을 구현하거나 작동시키는 방법을 모르겠습니다. 도와 주셔서 감사합니다.