首頁 > 後端開發 > php教程 > BBS(php & mysql)完整版(七)_PHP教程

BBS(php & mysql)完整版(七)_PHP教程

WBOY
發布: 2016-07-21 16:05:32
原創
840 人瀏覽過

//下面是  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=thetheueLeft
document.all[theName].style.left=thetheueLeft function KB_keepItInNN(theName,theWantX,theWantY) {
theRealLay=document.layers[theName]
theBadX=self.pageYOffset
theBadY=self.pageXOfff theWantY
theRealLay.moveTo(theRealY,theRealX)
}
IE4=(document.all)?1:0
NN4=(document.layers)?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

if (NN4)
setInterval('KB_keepItInNN( "Layer1",0,31)',1)
//-->


//下面是menuhead.php
echo "";

$link=mysql_pconnect("localhost","xiaoyang","xiaoyang")or die(mysql_error());
$link1=mysql_select_db("database")or die(mysql_error());



? 



http://www.bkjia.com/PHPjc/315698.html

www.bkjia.com

true

TechArticle//下面是top.js function KB_keepItInIE(theName,theWantTop,theWantLeftjs function KB_keepItInIE(theName,theWantTop,theWantLeftjs functionLeantLeft) ) ) .scrollTop) theTrueTop=theWantTop theRealTop document.all[theName].style....
相關標籤:
來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板