⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 showpicstar.php

📁 LOVESTUdio多校园交易系统 VER 4.0基于3.0开发
💻 PHP
字号:
<table width="513"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="513"><div id="icepic">
        <table width="513"  border="0" cellpadding="0" cellspacing="0">
          <!-----------------1---------->
		  <tr>
            <td height="136">
				<table width="513" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
	     <?php
		 $result = $conn->query("SELECT shopid,shopimg,shopname,shopstar FROM ".$tablepre."shop WHERE shopmode='0' AND shopstar!='0' LIMIT 0,3");
        while($arr = $result->fetch_assoc()){
			?>
        <td width="171">
		<table width="100%" cellpadding="0" cellspacing="0">
		   <tr>
              <td height="116" background="skin/pic_bg.jpg">
			  <div align="center"><img src="manage/img/<?php echo selectstar($arr[shopstar]); ?>" /><br /><a href="show_shop.php?shopid=<?php echo $arr[shopid] ?>" target="_blank"><img border="1" src="upload/shoplogo/<?php echo $arr[shopimg]; ?>" width="100" height="75" /></a></div>
			  </td>
			
            </tr>
			<tr>
			<td height="20" align="center"><a href="show_shop.php?shopid=<?php echo $arr[shopid] ?>" target="_blank" title="<?php echo $arr[shopname]; ?>"><?php echo substr($arr[shopname],0,10); ?></a></td>
			</tr>
			</table> 
          </td>
    <?php
	}
	?>
	  </tr>
    </table>
			
			</td>
          </tr>
		          <!-----------------2---------->
  
          <tr>
            <td height="136">
			<table width="513" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
	     <?php
		 $result = $conn->query("SELECT shopid,shopimg,shopname,shopstar FROM ".$tablepre."shop WHERE shopmode='0' AND shopstar!='0' LIMIT 3,3");
        while($arr = $result->fetch_assoc()){
			?>
        <td width="171">
		<table width="100%" cellpadding="0" cellspacing="0">
		   <tr>
              <td height="116" background="skin/pic_bg.jpg">
			  <div align="center"><img src="manage/img/<?php echo selectstar($arr[shopstar]); ?>" /><br /><a href="show_shop.php?shopid=<?php echo $arr[shopid] ?>" target="_blank"><img border="1" src="upload/shoplogo/<?php echo $arr[shopimg]; ?>" width="100" height="75" /></a></div>
			  </td>
			
            </tr>
			<tr>
			<td height="20" align="center"><a href="show_shop.php?shopid=<?php echo $arr[shopid] ?>" target="_blank" title="<?php echo $arr[shopname]; ?>"><?php echo substr($arr[shopname],0,10); ?></a></td>
			</tr>
			</table> 
          </td>
    <?php
	}
	?>
	  </tr>
    </table>
			</td>
          </tr>
		            <!-----------------2---------->
  
          <tr>
            <td height="136">
			<table width="513" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
	     <?php
		 $result = $conn->query("SELECT shopid,shopimg,shopname,shopstar FROM ".$tablepre."shop WHERE shopmode='0' AND shopstar!='0' LIMIT 6,3");
        while($arr = $result->fetch_assoc()){
			?>
        <td width="171">
		<table width="100%" cellpadding="0" cellspacing="0">
		   <tr>
              <td height="116" background="skin/pic_bg.jpg">
			  <div align="center"><img src="manage/img/<?php echo selectstar($arr[shopstar]); ?>" /><br /><a href="show_shop.php?shopid=<?php echo $arr[shopid] ?>" target="_blank"><img border="1" src="upload/shoplogo/<?php echo $arr[shopimg]; ?>" width="100" height="75" /></a></div>
			  </td>
			
            </tr>
			<tr>
			<td height="20" align="center"><a href="show_shop.php?shopid=<?php echo $arr[shopid] ?>" target="_blank" title="<?php echo $arr[shopname]; ?>"><?php echo substr($arr[shopname],0,10); ?></a></td>
			</tr>
			</table> 
          </td>
    <?php
	}
	?>
	  </tr>
    </table>
			</td>
          </tr>
        </table>
<script language="javascript">
marqueesHeight=136;
stopscroll=false;
with(icepic){
	  style.width=0;
	  style.height=marqueesHeight;
	  style.overflowX="visible";
	  style.overflowY="hidden";
	  noWrap=true;
	  onmouseover=new Function("stopscroll=true");
	  onmouseout=new Function("stopscroll=false");
  }
  preTop=0; currentTop=marqueesHeight; stoptime=0;
  icepic.innerHTML+=icepic.innerHTML;
  

function init_srolltext(){
  icepic.scrollTop=0;
  setInterval("scrollUp()",30);
}init_srolltext();

function scrollUp(){
  if(stopscroll==true) return;
  currentTop+=1;
  if(currentTop==marqueesHeight+1)
  {
  	stoptime+=1;
  	currentTop-=1;
  	if(stoptime==500) 
  	{
  		currentTop=0;
  		stoptime=0;  		
  	}
  }
  else {  	
	  preTop=icepic.scrollTop;
	  icepic.scrollTop+=1;
	  if(preTop==icepic.scrollTop){
	    icepic.scrollTop=marqueesHeight;
	    icepic.scrollTop+=1;
	    
	  }
  }

}
init_srolltext();
    </script>
    </div>
	</td>
  </tr>
</table>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -