几个我不会的问题,可能你会! vivanboy(我是谁?): 是像<body ... OnUnLoad="myfunction()" ...> 这样吗,(myfunction()是我写的函数),可实现不了。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <script>window.onunload=function(){ alert("AFD");}</script> <body onUnload="aa()"></body><script>function aa(){ alert("exit!");}</script> vivanboy(我是谁?) : javascript中好像不能用PHP语句呀,我的思路是:在用户登陆我的页面时,我在我的一个表中增加一条记录,当他离开时,我再在表中将这条记录删除,请问如何实现?并不是要弹出一个窗口什么的! 废话,js当然不能调用php的函数。<body onUnload="aa()"></body><script>function aa(){ window.open("del.php","","width=1,height=1")}</script>将删除语句放在del.php,删除以后自动关闭这个窗口。这个你应该会吧 同意 vivanboy(我是谁?)!我也很想让javascript这样做,但是她做不了, vivanboy(我是谁?) : 谢谢,那么这个有删除语句的页面如何关闭呢!还有人回答我的其他的问题吗?可以再加分!!! del.php<?//删除语句................echo "<script>self.close()</script>";?> vivanboy(我是谁?) : 谢谢你,这个问题我会给分你的,你还能回答其他的问题吗,给的思路或想法都可以!!!最后一起给分! 没有研究过ubb,你搜索以前的帖子。很多讨论ubb的。oracle不会用,无能为力 oracle推荐用VARCHAR2但他只能输入4000个字符,太小了,一篇领导的讲话稿都存不下呀,LOB可以存入4G的容量呀,他包括BLOB,CLOB,BFILE呀,可不能用普通的INSERT和SELECT呀 $string = str_replace('', '<b>', $string);$string = str_replace('', '</b>', $string);$string = str_replace('', '<i>', $string);$string = str_replace('', '</i>', $string);$string = str_replace('', '<u>', $string);$string = str_replace('', '</u>', $string);$string = str_replace('[-]', '<s>', $string);$string = str_replace('[/-]', '</s>', $string);$string = str_replace('[/c]', '</font>', $string);$string = str_replace('[/s]', '</font>', $string);$string = str_replace('[code]', '<blockquote><font size="1">Code:</font><hr size="1"><code><font size="2">', $string);$string = str_replace('[/code]', '</font></code><hr size="1"></blockquote>', $string);$string = str_replace('', '<hr size="1"></blockquote>', $string);if( floor(phpversion()) != 3 ){$string = preg_replace( '/\[color="(.*)"\](.*)\[\/color\]/Ui', '<font color="\1">\2</font>', $string );} // & $string = eregi_replace('\[url\]www.([^\[]*)\[/url\]', '<a href="http://www.\1" target="_blank">\1</a>', $string);$string = eregi_replace('\[url\]([^\[]*)\[/url\]', '<a href="\1" target="_blank">\1</a>', $string); // & $string = eregi_replace('\[url="([^"]*)"\]([^\[]*)\[\/url\]', '<a href="\1" target="_blank">\2</a>', $string); }if( $do_img == 1 && ($config['imageslevel'] != 2) ) {$string = eregi_replace('\[img\]([^\[]*)\[/img\]', '<img src="\1" border="0">', $string); }---------------------------------------这是一段实现ubb的代码!--------------------------------------- blackspider(gsinn.com): 就直接替换吗,我把你写的写到函数内,还是实现不了呀! apache中对非站点目录的访问限制 将网站从WINDOWS下面转移到Ubuntu下面数据库访问出错,急!!! phpmysql模糊查询 不能实现 查了google,及国内外大大小小的论坛,还质询了空间服务商。问题依然。 有关PHP调用WEBSERVICE的问题,在线等.... 解惑???? 正则表达式啊,帮忙啊, 怎么把mysql的一个表中的记录数赋值给一个变量?? 下载的mysql没有winmysqladmin.exe 文件?? 请php大师详细解说下面代码具体流程 今天辞职。老总同意!散分走人。闷。。。。。 php做下载为什么老是不成功!
window.onunload=function(){
alert("AFD");
}
</script>
</body>
<script>
function aa(){
alert("exit!");
}
</script>
javascript中好像不能用PHP语句呀,我的思路是:在用户登陆我的页面时,我在我的一个表中增加一条记录,当他离开时,我再在表中将这条记录删除,请问如何实现?并不是要弹出一个窗口什么的!
</body>
<script>
function aa(){
window.open("del.php","","width=1,height=1")
}
</script>
将删除语句放在del.php,删除以后自动关闭这个窗口。这个你应该会吧
我也很想让javascript这样做,但是她做不了,
谢谢,那么这个有删除语句的页面如何关闭呢!还有人回答我的其他的问题吗?可以再加分!!!
<?
//删除语句................echo "<script>self.close()</script>";
?>
谢谢你,这个问题我会给分你的,你还能回答其他的问题吗,给的思路或想法都可以!!!最后一起给分!
$string = str_replace('', '</b>', $string);
$string = str_replace('', '<i>', $string);
$string = str_replace('', '</i>', $string);
$string = str_replace('', '<u>', $string);
$string = str_replace('', '</u>', $string);
$string = str_replace('[-]', '<s>', $string);
$string = str_replace('[/-]', '</s>', $string);
$string = str_replace('[/c]', '</font>', $string);
$string = str_replace('[/s]', '</font>', $string);
$string = str_replace('[code]', '<blockquote><font size="1">Code:</font><hr size="1"><code><font size="2">', $string);
$string = str_replace('[/code]', '</font></code><hr size="1"></blockquote>', $string);
$string = str_replace('', '<hr size="1"></blockquote>', $string);if( floor(phpversion()) != 3 )
{
$string = preg_replace( '/\[color="(.*)"\](.*)\[\/color\]/Ui', '<font color="\1">\2</font>', $string );
} // &
$string = eregi_replace('\[url\]www.([^\[]*)\[/url\]', '<a href="http://www.\1" target="_blank">\1</a>', $string);
$string = eregi_replace('\[url\]([^\[]*)\[/url\]', '<a href="\1" target="_blank">\1</a>', $string); // &
$string = eregi_replace('\[url="([^"]*)"\]([^\[]*)\[\/url\]', '<a href="\1" target="_blank">\2</a>', $string);
}if( $do_img == 1 && ($config['imageslevel'] != 2) )
{
$string = eregi_replace('\[img\]([^\[]*)\[/img\]', '<img src="\1" border="0">', $string);
}
---------------------------------------
这是一段实现ubb的代码!
---------------------------------------
就直接替换吗,我把你写的写到函数内,还是实现不了呀!