<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<script src='jquery.js'></script>
<script src='pro.js'></script>
</head>
<body onload="init()">
<p id='table'></p>
<input type="button" value="次" onClick="sample()" />
</body>
</html>
var number;
function init(){
number = 1;
}
function sample(){
number = number + 1;
var urlx,word;
urlx ="index.php";
$.get(urlx, function (triangle) {
var str = triangle.split("△");
var memo;
memo = str[number];
var x = memo.split(",");
var strx = x[0];
strx = strx + "<br>";
strx = strx+"<img src=\"" + x[1] + "\">";
$("#table").html(strx);
});
}
<?php
$str="";
$fpx = fopen("book.csv", "r");
while ($line = fgets($fpx)) {
$str=$str."△";
$str=$str.$line;
}
fclose($fpx);
print($str);
?>
最終更新:2013年12月12日 00:51