index.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>打开/关闭循环交互</title>
<script src="js/jquery.js" type="text/javascript"></script>
<link href="css/style.css" rel="stylesheet" />
<script type="text/javascript">
$(document).ready(function(){
//首先请求服务器查看值
$.post("server.php",{action:"chaxun"},function(data){
$("#result").html(data);
});
//点击交互服务器
$("#result").click(function(){
$result = $(this).html();
$.post("server.php",{action:"change",value:$result},function(data){
$("#resul