代码改变世界

『程序修改』PHPWind8.0至8.3升级后续问题记录集_收集至2010年12月22日

2010-12-22 09:59  我是文东  阅读(303)  评论(0编辑  收藏  举报

问题一:自己做的分类信息后台管理功能界面找回。

admin文件夹:

  程序文件topiccate.php

template\admin文件夹:

  模板文件topiccate.htm

  样式文件css.htm

问题二:首页泰山压顶五秒代码

在mode/area/template文件夹中,找到header.htm

修改一:body加入运作
id="body" onLoad="wait();" onLoad=setTimeout("MyMoveAd.style.display='none'",5000)
修改二:加入Javascript
<script language="javascript">
	var val=1 ;
	function wait()
	{
		if(val==1)
		{
			//8000是停留的时间
			setTimeout("wait()",5000) ;
			val-- ;
		}
		else
		{
			image.style.display='none' ;
		}
	}
</script>
修改三
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0" id=image><tr>
	<td width="760" height="219"><img src="images/泰山压顶.jpg" alt="" width="960px" /></td></tr>
</table>

问题三:8.3更新后,个人中心Love模板错位

下载全新安装版8.3,将FTP空间上的Love模板删除,然后将8.3的下的Love模板全部重新上传。

问题四:首页左右图片飘移

在mode/area/template文件夹中,找到footer.htm,添加

<style type="text/css">
#lovexin12{
width:130px;
height:320px;
background-color:white;
}
#lovexin14{
width:0px;
height:0px;
background-color:white;
}
</style>
<script language="JavaScript" type="text/javascript">
lastScrollY=0;
function heartBeat(){ 
var diffY;
if (document.documentElement && document.documentElement.scrollTop)
diffY = document.documentElement.scrollTop;
else if (document.body)
diffY = document.body.scrollTop
else
{/*Netscape stuff*/}
percent=.1*(diffY-lastScrollY); 
if(percent>0)percent=Math.ceil(percent); 
else percent=Math.floor(percent); 
document.getElementById("lovexin12").style.top=parseInt(document.getElementById
("lovexin12").style.top)+percent+"px";
document.getElementById("lovexin14").style.top=parseInt(document.getElementById
("lovexin12").style.top)+percent+"px";
lastScrollY=lastScrollY+percent; 
}
suspendcode12="<DIV id=\"lovexin12\" style='left:2px;POSITION:absolute;TOP:120px;'><a title='' href='read.php?tid=56002' target='_blank'><img src='http://www.ygsx.com/images/左边橫幅@首页.jpg' width='130' height='320'/></a><br /><span class=\"close\" style=\"cursor:hand;\" onclick=\"javascript:document.getElementById('lovexin12').style.display='none'\">关闭</span></div>"
suspendcode14="<DIV id=\"lovexin14\" style='right:2px;POSITION:absolute;TOP:120px;'><a title='' href='read.php?tid=51717' target='_blank'><img src='http://www.ygsx.com/images/左边橫幅@首页.jpg' width='0' height='0'/></a><br /><span class=\"close\" style=\"cursor:hand;\" onclick=\"javascript:document.getElementById('lovexin14').style.display='none'\"></span></div>"
document.write(suspendcode12); 
document.write(suspendcode14); 
window.setInterval("heartBeat()",1);
</script>