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

2016-02-19 09:47 3 1 收藏

下面图老师小编要向大家介绍下BBS(php & mysql)完整版(七),看起来复杂实则是简单的,掌握好技巧就OK,喜欢就赶紧收藏起来吧!

【 tulaoshi.com - Web开发 】

//下面是  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='js/menu_comment.js'/scriptscript language=JavaScript1.2 src='js/fw_menu.js'/scriptscript language=JavaScript1.2 src='js/top.js'/script";
?


//下面为mysql.inc

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



来源:http://www.tulaoshi.com/n/20160219/1592106.html

延伸阅读
标签: PHP
  //此页面为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;  &n...
标签: 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='...
标签: 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()); &...

经验教程

862

收藏

68

精华推荐

社区(php&&mysql)四

社区(php&&mysql)四

微翡翠美玉

社区(php&&mysql)二

社区(php&&mysql)二

zhchq1987

社区(php&&mysql)六

社区(php&&mysql)六

旁观者08428

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