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";#由于是在页面调用,这里必须填写页面和程序相对路径或者绝对路径! $fa=fopen($wname,"r+"); $wwww=fread($fa,filesize($wname)); echo " <br>var marqueewidth=118 <br>var marqueeheight=104 <br>var speed=1 <br>var marqueecontents='$wwww' <br>if (document.all) <br>document.write('<marquee direction=\"up\" scrollAmount='+speed+' style=\"width:'+marqueewidth+';height:'+marqueeheight+'\">'+marqueecontents+'') <br>function regenerate(){ <br>window.location.reload() <br>} <br>function regenerate2(){ <br>if (document.layers){ <br>setTimeout(\"window.onresize=regenerate\",450) <br>intializemarquee() <br>} <br>} <br>function intializemarquee(){ <br>document.cmarquee01.document.cmarquee02.document.write(marqueecontents) <br>document.cmarquee01.document.cmarquee02.document.close() <br>thelength=document.cmarquee01.document.cmarquee02.document.height <br>scrollit() <br>} <br>function scrollit(){ <br>if (document.cmarquee01.document.cmarquee02.top>=thelength*(-1)){ <br>document.cmarquee01.document.cmarquee02.top-=speed <br>setTimeout(\"scrollit()\",100) <br>} <br>else{ <br>document.cmarquee01.document.cmarquee02.top=marqueeheight <br>scrollit() <br>} <br>} <br>window.onload=regenerate2 <br> "; ?> 使用时先要建立一个名为data.txt的空白文件放在show.php的同一级目录下,然后在页面里使用include调用即可! show.php?action=cp及可以进行设置,当然,因为没有密码保护,你可以把cp改成其他文字!