Events 绝地工作台无法在鼠标上方工作

Events 绝地工作台无法在鼠标上方工作,events,jquery-plugins,jquery,jeditable,Events,Jquery Plugins,Jquery,Jeditable,我在一个社区戏剧网站上工作,希望人们能够对编辑剧本提出建议 目前这只是一个例子,但流程如下: 从电影脚本中获取一部分文本以返回未来 这些行由a 然后在PHP中对此进行分解 然后,每一行都应该是可编辑的,并带有表格。 输出应该从另一个页面发送到数据库 所以我有第1-3行要处理好,但我在编辑函数方面遇到了困难。 代码如下: <?php //retrieve data require_once('mysql_login.php'); ?> <!DOCTYPE html PUBLIC

我在一个社区戏剧网站上工作,希望人们能够对编辑剧本提出建议

目前这只是一个例子,但流程如下:

从电影脚本中获取一部分文本以返回未来 这些行由a 然后在PHP中对此进行分解 然后,每一行都应该是可编辑的,并带有表格。 输出应该从另一个页面发送到数据库 所以我有第1-3行要处理好,但我在编辑函数方面遇到了困难。 代码如下:

<?php
//retrieve data
require_once('mysql_login.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Edit the Script</title>
<script src="Scripts/jeditable.js" type="text/javascript"></script>
<script>
$(document).ready(function() {
     $(".mouseover").editable("http://localhost/milton/save.php", {
tooltip   : "Move mouseover to edit...",
      event     : "mouseover",
      style  : "inherit"
    });
});
</script>
</head>

<body>
<div id="chapter02">
    <h2>Chapter Two</h2>
    <?php
    $scriptText = "Chapter02.txt";
    $fh = fopen($scriptText, 'r') or die("Can't open file");
    $text=fread($fh, filesize($scriptText));
    $lines = explode('<p>',$text);
    //$lines = explode('<p>',$scriptText);
    echo "Chapter 2 has ".count($lines)." lines.<p>";
    // loop through and print all the words
    for ($i = 0; $i < count($lines); $i++)
    {
        $lineNumber = $i+1;
        if 
        echo '<div class=\"edit_area\" id=\"div_'.$i.'\">'.'Line ' . $lineNumber . ' - ' . $lines[$i] . '</div>';
    }
    ?>
</div>
</body>
</html>

您需要将要编辑的div指定为具有类mouseover。你在哪里回音