[991]PHP網站開發 進階應用技巧2
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title></title>
<script type='text/javascript' src='jquery-1.4.2.min.js'></script>
<script>
$(document).ready(function(){
$.post("login.php",function(msg){
$('#loginDiv').html(msg);
});
});
function logMein(){
var id=$('#user_id').val();
var pass=$('#pass').val();
$.post("login.php",{username: id , password: pass},function(msg){
$('#loginDiv').html(msg);
});
}
function logMeout(){
$.post("login.php",{op: 'logout'},function(msg){
$('#loginDiv').html(msg);
});
}
</script>
</head>
<body>
<table style='width:600px;margin:10px auto;'>
<tr><td>
<video controls preload autoplay poster="http://tad0616.net/ck2.png" width="300">
<source src="http://tad0616.net/ck2.ogv" type="video/ogg">
<source src="http://tad0616.net/ck2.mp4" type="video/mp4">
您的瀏覽器太古董了...不支援 HTML 5 最新技術...建議使用FireFox或Google瀏覽器。
</video>
</td><td valign='top'>
<div id='loginDiv'></div>
</td></tr>
</table>
</body>
</html>