BBSphp&mysql完整版七_PHP教程
程序员文章站
2022-04-25 11:06:05
...
//下面是 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());
?>
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());
?>
推荐阅读
-
PHP开发环境配置(MySQL数据库安装图文教程)
-
IIS下配置Php+Mysql+zend的图文教程(完整版)
-
PHP+MYSQL会员系统的开发实例教程
-
APMServ一键快速搭建Apache+PHP+MySQL+Nginx+Memcached+ASP运行平台教程
-
Ubuntu彻底卸载MySQL、Apache2和Php的方法教程
-
Win2012 R2 IIS8.5+PHP(FastCGI)+MySQL运行环境搭建教程
-
云主机搭建php+mysql运行环境教程(护卫神 PHP套件)
-
PHP开发环境配置(MySQL数据库安装图文教程)
-
CentOS7+apache+php7+mysql5.7配置教程详解
-
阿里云完美教程 Window2003 iis+mysql+php+zend环境配置