【php开源代码栏目提醒】:网学会员php开源代码为您提供jszc.php参考,解决您在jszc.php学习中工作中的难题,参考学习。
<?php include_once("top.php"); //获取头部文件
include_once("conn/conn.php")
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>明日科技-编程者之家网站</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<script language="javascript">
function ld(){
init();
}
</script>
<body onLoad="ld()">
<table width="870" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="220" valign="top">
<table width="220" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="220" height="30" align="left"><img src="images/br_11(1).jpg" width="220" height="30"></td>
</tr>
<tr>
<td>
<table width="220" border="1" cellpadding="1" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#6EBEC7">
<tr>
<td width="218" align="right" bgcolor="#FFFFFF"> <div id=marquees >
<table width="200" height="25" border="0" align="center" cellpadding="0" cellspacing="0">
<?php
$sql=mysql_query("select id,title,createtime from tb_tell order by createtime desc limit 0,10",$conn);
$info=mysql_fetch_array($sql);
if($info==false){
?>
<tr>
<td height="25"><div align="center"><a href="#" class="a4">本站暂无公告发布! </a></div></td>
</tr>
<?php
}else{
$i=1;
do{
?>
<tr>
<td height="25" style="padding:4"><a href="tellinfo.php?id=<?php echo $info[id];?>" class="a1">
<?php
if($i==1)
{
echo "<font color=red>";
}
echo $i.". ";
echo unhtml(msubstr($info[title],0,50));
if(strlen($info[title])>50)
{
echo " ...";
}
echo "(".str_replace("-","/",$info[createtime]).")";
if($i==1)
{
echo "</font>";
}
?>
</a> </td>
</tr>
<?php
$i++;
}while($info=mysql_fetch_array($sql));
}
?>
</table>
</div> </td>
</tr>
</table>
<script language="
JavaScript">
marqueesHeight=162;
stopscroll=false;
with(marquees){
style.width=0;
style.height=marqueesHeight;
style.overflowX="visible";
style.overflowY="hidden";
noWrap=true;
onmouseover=new Function("stopscroll=true");
onmouseout=new Function("stopscroll=false");
}
document.write('<div id="templayer" style="position:absolute;z-index:1;visibility:hidden"></div>');
preTop=0; currentTop=0;
function init(){
templayer.innerHTML="";
while(templayer.offsetHeight<marqueesHeight){
templayer.innerHTML+=marquees.innerHTML;
}
marquees.inner
HTML=templayer.innerHTML+templayer.innerHTML;
setInterval("scrollup()",50);
}
//document.body.onload=init;
function scrollup(){
if(stopscroll==true) return;
preTop=marquees.scrollTop;
marquees.scrollTop+=1;
if(preTop==marquees.scrollTop){
marquees.scrollTop=templayer.offsetHeight-marqueesHeight;
marquees.scrollTop+=1;
}
}
</script></td>
</tr>
<tr>
<td height="30"><div align="center"><img src="images/bg_11(2).jpg" width="220" height="30"></div></td>
</tr>
<tr>
<td><table width="220" border="1" align="center" cellpadding="1" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#6EBEC7">
<tr>
<td height="38" bgcolor="#FFFFFF"><table width="215" height="22" border="0" align="center" cellpadding="0" cellspacing="0">
<?php
$sqluwz=my
sql_query("select * from tb_soft order by addtime desc limit 0,5",$conn);
$infouwz=
mysql_fetch_array($sqluwz);
if($infouwz==false){
?>
<tr>
<td width="20" height="22"><div align="center"><img src="images/mark_0.gif" width="3" height="3" /></div></td>
<td width="200"> 暂无
软件提供下载!</td>
</tr>
<?php
}else{
$i=1;
do{
?>
<tr>
<td width="20" height="22"><div align="center"><img src="images/mark_0.gif" width="3" height="3" /></div></td>
<td width="200" height="22" style="padding:5"><a href="softinfo.php?id=<?php echo $infouwz["id"];?>" class="a1">
<?php
if($i==1)
{
echo "<font color=red>";
}
echo unhtml(msubstr($infouwz["softname"],0,16));
if(strlen($infouwz["softname"])>16)
{
echo " .";
}
echo "<font color=red>[".substr(str_replace("-","/",$infouwz[addtime]),0,10)."]</font>";
if($i==1)
{
echo "</font>";
}
?>
</a> </td>
</tr>
<tr>
<td height="1" colspan="2" background="images/line_1.gif"></td>
</tr>
<?php
$i++;
}while($infouwz=mysql_fetch_array($sqluwz));
}
?>
</table> </tr>
</table></td>
</tr>
</table> </td>
<td width="8"></td>
<td width="642" align="center" valign="top">
<table width="642" border="0" cellspacing="0" cellpadding="0">
<td height="30" valign="middle" background="images/bg_12(2).jpg"><table width="610">
<tr>
<td width="109" rowspan="2"> </td>
<td width="379" height="3"></td>
<td width="1