BBS(php & mysql)完整版(七)
更新时间:2006年10月09日 00:00:00 作者:
//下面是 top.js
function KB_keepItInIE(theName,theWantTop,theWantLeft) {
theRealTop=parseInt(document.body.scrollTop)
theTrueTop=theWantTop+theRealTop
document.all[theName].style.top=theTrueTop
theRealLeft=parseInt(document.body.scrollLeft)
theTrueLeft=theWantLeft+theRealLeft
document.all[theName].style.left=theTrueLeft
}
function KB_keepItInNN(theName,theWantX,theWantY) {
theRealLay=document.layers[theName]
theBadX=self.pageYOffset
theBadY=self.pageXOffset
theRealX=theBadX+theWantX
theRealY=theBadY+theWantY
theRealLay.moveTo(theRealY,theRealX)
}
IE4=(document.all)?1:0
NN4=(document.layers)?1:0
//if (IE4)
//setInterval('KB_keepItInIE("KBStatic",0,0)',1)
//if (NN4)
//setInterval('KB_keepItInNN("KBStatic",0,0)',1)
//下面是menu.php
//下面是 menuhead.php
echo "";
?>
//下面为mysql.inc
$link=mysql_pconnect("localhost","xiaoyang","xiaoyang")or die(mysql_error());
$link1=mysql_select_db("database")or die(mysql_error());
?>
相关文章
for 循环是 PHP 中最复杂的循环结构。它的行为和 C 语言的相似。在PHP中使用的是执行相同的代码集的次数2010-05-05
一次编写,随处运行...2006-10-10
谈谈PHP语法(2)...2006-10-10
第九节 绑定 [9]...2006-10-10
上一章节我们讲述了如何用 PHP 超级变量 $_GET 获取 HTML 表单 (Form) 的数据。这一章节我们讲述如何用 PHP 超级变量 $_POST 获取 HTML Form的数据。2011-05-05
自己动手做一个SQL解释器...2006-10-10
PHP的FTP学习(一)[转自奥索]...2006-10-10
php学习之流程控制实现代码,学习php的朋友可以参考下。2011-06-06
什么是PEAR?(第一篇)
第一章 爱好PHP者必喜欢PEAR2009-03-03
今天小编就为大家分享一篇关于PHP PDOStatement::getColumnMeta讲解,小编觉得内容挺不错的,现在分享给大家,具有很好的参考价值,需要的朋友一起跟随小编来看看吧2019-02-02
最新评论