主题: 发现一个问题
作者: 小文龙, 发布日期: 2006-08-10 05:58:24, 浏览数: 9025
当内容框有数据后。鼠标多次悬停,离开“源码,标题,字体,大小”这几个文字按钮后,这几个字消失了。

下载回来的2.2和2.3都出现这个问题。这个问题在IE6出现,但在FX(firefox 1.5B1)却正常。

我的HTML部分
<form method="post" name="form" action="s.php" >
<input type="hidden" name="content" value="">

<script type="text/javascript" src="./KindEditor_gb_2.3.js"></script>
<script type="text/javascript">
var editor = new KindEditor("editor");
editor.hiddenName = "content";
editor.editorwidth = "720px";
editor.editorheight = "400px";
editor.show();
function KindSubmit() {
var content = editor.data();
alert(content);
}
</script>

我自己写的表单验证工具 s.php

<?php
error_reporting(E_ALL);
//设置当值为空时显示的字符串
$nonevalue = '*none*';
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html dir="ltr" lang="zh-CN">
<head>
<title>表单提交验证工具</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="robots" content="noindex, nofollow">
</head>
<body>
<h1>表单提交验证工具</h1>
注:黄色背景为数组,&nbsp;<?=$nonevalue?>&nbsp;该值为空。
<br><br>
<table width="100%" cellspacing="1" style="background-color: #cccccc; border: 1px solid #999999;">
<tr style="font-weight: bold; color: #dddddd; background-color: #999999">
<th nowrap>变量名</td>
<th>变量值 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</td>
</tr>
<?php

if ( isset( $_POST ) ) {
$postarray = &$_POST ; // php 4.1.0 or later, use $_POST
} else {
$postarray = &$HTTP_POST_VARS ; // prior to 4.1.0, use HTTP_POST_VARS
}

foreach ( $postarray as $Forms => $value )
{


if ( is_array( $value ) )
{
$postedValue = '';
foreach ( $value as $key =>$data )
{
if ( empty( $data ) )
{
$postedValue .= $key." => ".$nonevalue."<br>
";
} else {
$postedValue .= $key." => ".htmlspecialchars( stripslashes( $data ) )."<br>
";
}
}
$valuebackgroundcolor = '#ffffee';
$valuetitle = '<span style="font-weight: bold">{键}=>{值}</span><hr size="1">';
} else {
$postedValue = htmlspecialchars( stripslashes( $value ) ) ;
$postedValue = empty($postedValue)? $nonevalue.'&nbsp;' : $postedValue ;
$valuebackgroundcolor = '#ffffff';
$valuetitle = '';
}
?>
<tr>
<td valign="top" nowrap style="font-weight: bold; color: #333333; background-color: #eeeeee"><?=$Forms?></td>
<td width="90%" style="COLOR: #333333; background-color: <?=$valuebackgroundcolor?>"><?=$valuetitle?><?=$postedValue?></td>
</tr>
<?php
}
?>
</table>
<div style="border:1px solid #999999; padding:10px; margin:10px 0px 10px 0px; background-color:#eeeeee; line-height: 150%">
使用说明:<br>将表单的action 改成本文件名即可使用。<br>例子: &lt;form method="post" name="input" action="s.php"&gt;
</div>
<div style="float:left; width:30%; font-size: 12px; color: #999999">Version 1.0.0 Update 07/20/2006</div>
<div style="float:right; width:70%; text-align:right; font-weight: bold; font-size: 12px; color: #6666ff">
Powered by <a href="http://blog.sina.com.cn/u/1236362217" target="_blank" style="color: #6666ff">FreeFastBoy</a> &nbsp; &nbsp;
</div>
</body>
</html>
作者: Roddy, 发布日期: 2006-08-10 11:35:58
有演示地址吗?我这里怎么也体现不出你所说的情况。
回复
作者: 小文龙, 发布日期: 2006-08-16 07:04:00
http://ffb.cwzsw.com/test/

问题的演示地址
回复
发表新帖 发表回复