"/> ">
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> <!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> </head> <body> <script type="text/javascript"> var time = new Date(<?php echo(time());?> * 1000); alert(time.getFullYear() + "-" + time.getMonth() + "-" + time.getDay() + " " + time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds()); </script> </body> </html>
[code=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"> <meta http-equiv="Content-Type" content="text/html, charset=utf-8" /> <title>時間</title> </head> <?php echo date('Y-m-d H:i:s');?><br /> <スクリプトタイプ="text/javascript"> var time = new Date(<?php echo(time());?>*1000); document.write(time.getFull Year() + "-" + (time.getMonth()+1) + "-" + time.getDate() + " " + time.getHours() + ":" + time.getMinutes () + ":" + time.getSeconds()); </スクリプト> </ボディ> </html> <div class="clear"></div>