<?
include "../inc/config.php";
$picwidth=$_GET['picwidth'];
$picheight=$_GET['picheight'];
$marqueesWidth=$_GET['marqueesWidth'];
$picsrc=$_GET['picsrc'];
$pic=$_GET['pic'];
$sql=$_GET['sql'];
$picname=$_GET['picname'];
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="../css/style.css" rel="stylesheet" type="text/css">
<title>HOWLIVE好生活美食网</title>
<!-- jinhaobi.com Baidu tongji analytics -->
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?a9f67843137ac498d8fea7cdfbab9eaa";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</head>
<body style="background-color:#FFFFFF">
<table border="0" cellpadding="0" cellspacing="0" width="800" height="81" class="t1">
<tr>
<td height="81"><table width="100%" height="80" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle"><div id="marquees">
<table width="100%" height="107" border="0" cellpadding="0" cellspacing="0">
<tr> <?
$result=mysql_query($sql);
while($date=mysql_fetch_array($result))
{
?>
<td align="center" valign="top">
<table border="0" cellpadding="0" cellspacing="2">
<tr>
<td align="center" valign="middle">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img src="../uploadfiles/chef/<?=$date['pic']?>" width="100" height="100" hspace="8" vspace="4" border="0" /><br>
<center><?=$date['name']?></center></td>
</tr>
</table></td>
</tr>
</table></td>
<? }?> </tr>
</table>
</div></td>
</tr>
</table>
<div id="templayer" style="position:absolute;left:0;top:0;visibility:hidden"></div>
<div id="templayer" style="position:absolute;left:0;top:0;visibility:hidden"></div>
<script language="JavaScript">
marqueesWidth=<?=$marqueesWidth?>;
with(marquees){
style.height=0;
style.width=marqueesWidth;
style.overflowX="hidden";
style.overflowY="visible";
noWrap=true;
onmouseover=new Function("stopscroll=true");
onmouseout=new Function("stopscroll=false");
}
preLeft=0; currentLeft=0; stopscroll=false;
function init(){
templayer.innerHTML="";
while(templayer.offsetWidth<marqueesWidth){
templayer.innerHTML+=marquees.innerHTML;
}
marquees.innerHTML+=templayer.innerHTML;
setInterval("scrollLeft()",50);
}init();
function scrollLeft(){
if(stopscroll==true) return;
preLeft=marquees.scrollLeft;
marquees.scrollLeft+=2;
if(preLeft==marquees.scrollLeft){
marquees.scrollLeft=templayer.offsetWidth-marqueesWidth+3;
}
}
</script></td>
</tr>
</table>
</body>
</html>