BBS(php & mysql)完整版(七)

2016-01-29 14:35 3 1 收藏

BBS(php & mysql)完整版(七),BBS(php & mysql)完整版(七)

【 tulaoshi.com - PHP 】

  //下面是  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

<div id="Layer1" style="position:absolute; left:31px; top:1px; width:560px; height:46px; z-index:5"
<script language="JavaScript1.2"fwLoadMenus();
</script</div


<SCRIPT LANGUAGE="JavaScript"
<!--
if (IE4)
setInterval('KB_keepItInIE("Layer1",0,31)',1)
if (NN4)
setInterval('KB_keepItInNN("Layer1",0,31)',1)
//--
</SCRIPT

//下面是 menuhead.php
<?
echo "<script language=JavaScript1.2 src="http://img.jcwcn.com/attachment/portal"

来源:http://www.tulaoshi.com/n/20160129/1493701.html

延伸阅读
标签: PHP
  //此页面为look.php <? include "signup/mysql.inc"; $sql="select * from ".$table." where id='$id'"; $result=mysql_query($sql)or die(mysql_error()); $row=mysql_fetch_array($result); $number=++$row["number"]; $sql="update $table set number='$number' where id='...
标签: Web开发
//此页面为php3.php ? include "signup/mysql.inc"; switch($part){    case "1" :$table="bbs_php";break;    case "2" :$table="bbs_mysql";break;    case "3" :$table="bbs_html";break;    ca...
标签: PHP
  //此页面为 top.php <html <head <titleUntitled Document</title <meta http-equiv="Content-Type" content="text/html; charset=gb2312" <script language="JavaScript1.2" src="http://img.jcwcn.com/attachment/portal"http://www.jcwcn.com/Files/BeyondPic/jcwcj/2005-12...
标签: PHP
  //完毕 wish you sucess!! # phpMyAdmin MySQL-Dump # http://phpwizard.net/phpMyAdmin/ # # 主机: localhost:3306 数据库 : database # -------------------------------------------------------- # # 数据表的结构 'bbs_html' # CREATE TABLE bbs_html (    id int(15) DEFAULT '0' NOT NULL,  &n...
标签: PHP
  //此页面为say.php <? include "signup/mysql.inc"; if($id1){        $sql="select * from $table where id='$id1'";    //显示回复题目        $result=mysql_query($sql)or die(mysql_error()); &...

经验教程

600

收藏

46
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部