show.php源代码:
if ($action=="cp"){
echo"
";exit;}
if ($action=="edit"){
$wname="data.txt";#資料儲存文件,屬性666
$writeurl="
$t1$t2$t3 $t4$t5";
$fp=fopen ($wname,"w");
$ww=fputs($fp,$writeurl);
if ($ww){echo 檔案寫入成功;}else{echo 寫入失敗;}
exit;}
$wname="php-bin/data.txt";#由於是在頁面調用,這裡必須填入頁面和程式相對路徑或絕對路徑! "r ");
$wwww=fread($fa,filesize($wname));
echo "
var marqueewidth=118 var marqueeheight=104 var speed=1 var marqueecontents='$wwww' if (document.all) document.write('') function regenes( ){ window.location.reload() } function regenerate2(){ if (document.layers){ setTimeout("window.onresize=regenerate",450) intializemarquee() } } function intializemarquee(){ document.cmarquee01.document.cmarquee02.document.write(marqueecontents) thelength=document.cmarquee01.document.cmarquee02.document.height scrollit() } function scrollit(){ if (0um.doct. .top>=thelength*(-1)){ document.cmarquee01.document.cmarquee02.top-=speed setTimeout("scrollit()",100) } else{ document.cmarquee01.document.cmarquee02.top=marqueeheight scrollit() } } window.onload=regenerate2
| table> "; ?>
使用時先建立一個名為data.txt的空白檔案放在show.php的同一級目錄下,然後在頁面裡使用include呼叫即可! show.php?action=cp及可以進行設置,當然,因為沒有密碼保護,你可以把cp改成其他文字!
http://www.bkjia.com/PHPjc/316022.html
www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/316022.htmlTechArticleshow.php原始碼: ? if ($action==cp){ echodiv align=center p捲動資料選單輸入端/p form method=post action=show.php?action=edit p文字一: input type=text name=t1 maxleng...
|