欢迎进入极速独立站群官方网! 咨询电话:13135381668 销售QQ:1000207

当前位置:首页 - - 城市站群 - 操作说明 - 文章详情
编辑推荐

首页图片滚动调用

浏览:2848 发布时间:2016-12-15
首页图片滚动调用
<?php
$dosql->Execute("SELECT * FROM `#@__infoimg` WHERE classid=8 AND and delstate is NULL AND checkinfo=true ORDER BY orderid DESC LIMIT 0,30");
while($row = $dosql->GetArray())
{
if($row['linkurl']=='' and $cfg_isreurl!='Y') $gourl = 'product.php?cid='.$row['classid'].'&id='.$row['id'];
else if($cfg_isreurl=='Y') $gourl = 'product-'.$row['classid'].'-'.$row['id'].'-1.html';
else $gourl = $row['linkurl'];
?>
<li>
<a href="<?php echo $gourl; ?>" class="imga">
<img src="<?php echo $row['picurl']; ?>" alt="<?php echo $row['title']; ?>" />
</a>
<a href="<?php echo $gourl; ?>" class="titlea">
<?php echo $row['title']; ?>
</a>
</li>
<?php
}
?>


下面是回到顶部JS效果直接加上就好使
<link href="templates/default/style/webstyle.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="templates/default/js/top.js"></script>
<script type="text/javascript">
$(function(){
jQuery('.lightbox').lightbox();
    $(".showimg img").LoadImage({width:750,height:600});
$(".picarr .picture img").LoadImage({width:530,height:350});
$(".picarr .preview img").LoadImage({width:58,height:45});
$(".small").click(function(){$("#textarea").css('font-size','12px');});
$(".big").click(function(){$("#textarea").css('font-size','14px');});
});
</script>