我想删除校内网的留言板

发布时间:2024-05-19 00:10 发布:上海旅游网

问题描述:

我的校内网网页被人攻击
疯狂留言 有几万多条
有人知道怎么删除留言板吗?
那个代码不起作用!
粘上后没有反应

好象我的主页用不了代码了,不知道谁那么卑鄙
都好长时间了,能有好几个月了.

有谁可以帮我,或者说一下 攻击的原理是什么
我也是学计算机的.可是束手无策呀!!!

问题解答:

你可以再复制给他,那也可以啊.他受不了,也就自然不会给你发了.想删如果不行的话,你可以试试以下代码对留言板加以限制.祝你好运.

<style type=text/css><!--#talk{max-height:500px;overflow:auto;height:expression((this.height<500)?"auto":"500px");overflow:expression((this.height<500)?"visible":"auto");} --></style><!--留言板长度限制-->

其中的500px为高度限制,留言板高度超过500px将出现滚动条,这个值可自行修改为自己满意的值
这个也可以按照第1条的方式,去掉判断语句,代码改为如下形式,会精简些

<style type=text/css><!--#talk{height:500px;overflow:auto;}--></style><!--留言板长度限制-->

<style type=text/css><!--#userTalk{display:none;} --></style><!--隐藏留言板--> 放到涂鸦板里就可以了
另外给你一点其他的

<style type=text/css><!--#sidebar{display:none;} --></style><!--隐藏左侧导航栏-->

<style type=text/css><!--#mymenu{display:none;} --></style><!--隐藏左侧导航栏内链接-->

<style type=text/css><!--.blockimage.block h3{display:none;} --></style><!--隐藏广告栏-->

<style type=text/css><!--.blocktext{display:none;} --></style><!--隐藏布告栏-->

<style type=text/css><!--#annouce{display:none;} --></style><!--隐藏“张贴你的布告”-->

<style type=text/css><!--.block,.linkblock,#annouce,.blockcont img,.boxcontent{display:none;} --></style><!-隐藏全部广告-> (11月30日更新)

<style type=text/css><!--.boxcontent{display:none;} --></style><!-单独隐藏校内一周年图片->

<style type=text/css><!--#userPicture{display:none;} --></style><!--隐藏自己照片-->

<style type=text/css><!--#userActions{display:none;} --></style><!--隐藏照片下面用户行为栏-->

<style type=text/css><!--#userVisitor{display:none;} --></style><!--隐藏最近来访者列表-->

<style type=text/css><!--#userFriend{display:none;} --></style><!--隐藏最近有登陆好友列表-->

<style type=text/css><!--#userFriendUniv{display:none;} --></style><!--隐藏外校好友列表-->

<style type=text/css><!--#userProfile{display:none;} --></style><!--隐藏全部个人资料-->

<style type=text/css><!--#AccountInfo{display:none;} --></style><!--隐藏帐号信息-->

<style type=text/css><!--#BasicInfo{display:none;} --></style><!--隐藏基本信息-->

<style type=text/css><!--#ContactInfo{display:none;} --></style><!--隐藏联系方式-->

<style type=text/css><!--#PersonalInfo{display:none;} --></style><!--隐藏个人信息-->

<style type=text/css><!--#userBlog{display:none;} --></style><!--隐藏全部日志-->

<style type=text/css><!--#blog li{display:none;display:expression((this.parentNode.firstChild==this)?"block":"none");}#blog li:first-child{display:block;} --></style><!--只显示第一篇日志-->

<style type=text/css><!--#blog .content{display:none;} --></style><!--隐藏日志内容-->

<style type=text/css><!--#userAlbum{display:none;} --></style><!--隐藏相册-->

<style type=text/css><!--#userPandora{display:none;} --></style><!--隐藏涂鸦版-->

<style type=text/css><!--#userGroup{display:none;} --></style><!--隐藏加入的群-->

<style type=text/css><!--#userTalk{display:none;} --></style><!--隐藏留言板-->

<style type=text/css><!--.picture{display:none;}#userTalk .text{ margin-left:0px;}#userTalk .info { margin-left:0px;} --></style><!--隐藏留言小头像-->

<style type=text/css> <!--#permalink,#snav,#footer{display:none;}--></style><!-除底部链接->

想要了解更多的校内网知识建议你看看http://hi.baidu.com/yinran/blog/category/%D0%A3%C4%DA%CD%F8%CD%BF%D1%BB%BD%CC%B3%CC

你是管理员吗?
如果你是管理员。直接从数据库里删除啊?
用SQL语句啊!!!
很简单的啊。不就是删除记录?
如果你不是管理员,那么你操什么心啊?
呵呵

查找原文码,在程序里删,这样会轻松的多.

热点新闻