showphp源代码
<?
if ($action==cp){
echo<div align=center>
<p>滚动菜单资料输入端</p>
<form method=post action=showphp?action=edit>
<p>文字一:
<input type=text name=t maxlength=>
链接一:
<input type=text name=l maxlength=>
</p>
<p>文字二:
<input type=text name=t maxlength=>
链接二:
<input type=text name=l maxlength=>
</p>
<p>文字三:
<input type=text name=t maxlength=>
链接三:
<input type=text name=l maxlength=>
</p>
<p>文字四:
<input type=text name=t maxlength=>
链接四:
<input type=text name=l maxlength=>
</p>
<p>文字五:
<input type=text name=t maxlength=>
链接五:
<input type=text name=l maxlength=>
</p>
<p>
<input type=submit name=Submit value=提交>
<input type=submit name=Submit value=重写>
</p>
</form>
</div>;exit;}
if ($action==edit){
$wname=datatxt;#数据保存文件属性
$writeurl=<a href=//$l>$t<\/a><br><br><a href=//$l>$t<\/a><br><br><a href=//$l>$t<\/a><br><br><a href=//$l>$t<\/a><br><br><a href=//$l>$t<\/a><br><br>;
$fp=fopen($wnamew);
$ww=fputs($fp$writeurl);
if ($ww){echo 文件写入成功;}else{echo 写入失败;}
exit;}
$wname=phpbin/datatxt;#由于是在页面调用这里必须填写页面和程序相对路径或者绝对路径!
$fa=fopen($wnamer+);
$wwww=fread($fafilesize($wname));
echo <table border= \\ bgcolor=\#AEBB\ cellpadding=\\ cellspacing= \\ width=><TR><TD><table bgcolor=\#FFFFFF\ cellpadding=\\ cellspacing=\\ width= border=\\ VALIGN=\Top\><tr><td><script language=\JavaScript\>
var marqueewidth=
var marqueeheight=
var speed=
var marqueecontents=$wwww
if (documentall)
documentwrite(<marquee direction=\up\ scrollAmount=+speed+ style=\width:+marqueewidth+;height:+marqueeheight+\>+marqueecontents+</marquee>)
function regenerate(){
windowlocationreload()
}
function regenerate(){
if (documentlayers){
setTimeout(\windowonresize=regenerate\)
intializemarquee()
}
}
function intializemarquee(){
documentcmarqueedocumentcmarqueedocumentwrite(marqueecontents)
documentcmarqueedocumentcmarqueedocumentclose()
thelength=documentcmarqueedocumentcmarqueedocumentheight
scrollit()
}
function scrollit(){
if (documentcmarqueedocumentcmarqueetop>=thelength*()){
documentcmarqueedocumentcmarqueetop=speed
setTimeout(\scrollit()\)
}
else{
documentcmarqueedocumentcmarqueetop=marqueeheight
scrollit()
}
}
windowonload=regenerate
</script><ilayer width=&{marqueewidth}; height=&{marqueeheight}; name=\cmarquee\><layer name=\cmarquee\ width=&{marqueewidth}; height=&{marqueeheight};></layer></ilayer></tr></table></TD></TR></TABLE>;
?>
使用时先要建立一个名为datatxt的空白文件放在showphp的同一级目录下然后在页面里使用include调用即可!
showphp?action=cp及可以进行设置当然因为没有密码保护你可以把cp改成其他文字!