我正在尝试从数据库中检索相机jquery幻灯片放映。但它不起作用。因为我刚刚学习,所以在那里的任何人都可以帮助我。
<script type='text/javascript' src='scripts/jquery.min.js'></script>
<script type='text/javascript' src='scripts/jquery.mobile.customized.min.js'></script>
<script type='text/javascript' src='scripts/jquery.easing.1.3.js'></script>
<script type='text/javascript' src='scripts/camera.min.js'></script>
<script>
jQuery(function(){
jQuery('#camera_wrap_1').camera({
thumbnails: true
});
jQuery('#camera_wrap_2').camera({
height: '400px',
loader: 'bar',
pagination: false,
thumbnails: true
});
});
</script>
<div class="fluid_container">
<?php
$fetch_sql = "SELECT slider_name, slider_caption FROM tbl_slider WHERE slider_type = '1' ORDER BY RAND() LIMIT 4";
$fetch_result= mysql_query($fetch_sql) or die(mysql_error());
while($fetch_row=mysql_fetch_array($fetch_result))
{
$slider_name = $fetch_row['slider_name'];
$slider_caption = $fetch_row['slider_caption'];
if($slider_name != null)
{
echo"<div class='camera_wrap camera_azure_skin' id='camera_wrap_1'> <div data-thumb='images/$slider_name' data-src='images/$slider_name'> <img src='images/$slider_name' alt='$slider_name'> </div> ";
}
echo"<div class='camera_caption fadeFromBottom'> $slider_caption </div> </div>";
}
?>
</div>