六月婷婷综合激情-六月婷婷综合-六月婷婷在线观看-六月婷婷在线-亚洲黄色在线网站-亚洲黄色在线观看网站

明輝手游網中心:是一個免費提供流行視頻軟件教程、在線學習分享的學習平臺!

用PHP+java完成自動新聞滾動窗口

[摘要]show.php源代碼: <? if (action=="cp") echo"<div align=center> <p>滾動菜單資料輸入端</p> <form method=post action=show.p...
show.php源代碼:
<?
if ($action=="cp"){
echo"<div align=center>
  <p>滾動菜單資料輸入端</p>
  <form method=post action=show.php?action=edit>
    <p>文字一:  
      <input type=text name=t1 maxlength=30>
      鏈接一:
      <input type=text name=l1 maxlength=50>
    </p>
    <p>文字二:  
      <input type=text name=t2 maxlength=30>
      鏈接二:  
      <input type=text name=l2 maxlength=50>
    </p>
    <p>文字三:  
      <input type=text name=t3 maxlength=30>
      鏈接三:  
      <input type=text name=l3 maxlength=50>
    </p>
    <p>文字四:  
      <input type=text name=t4 maxlength=30>
      鏈接四:  
      <input type=text name=l4 maxlength=50>
    </p>
    <p>文字五:  
      <input type=text name=t5 maxlength=30>
      鏈接五:  
      <input type=text name=l5 maxlength=50>
    </p>
    <p>  
      <input type=submit name=Submit value=提交>
      <input type=submit name=Submit2 value=重寫>
    </p>
  </form>
</div>";exit;}
if ($action=="edit"){
$wname="data.txt";#數據保存文件,屬性666
$writeurl="<a href=$l1>$t1<\/a><br><br><a href=$l2>$t2<\/a><br><br><a href=$l3>$t3<\/a><br><br><a href=$l4>$t4<\/a><br><br><a href=$l5>$t5<\/a><br><br>";
$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 "<table border= \"0\" bgcolor=\"#A8EB9B\" cellpadding=\"1\" cellspacing= \"0\" width=129><TR><TD><table bgcolor=\"#FFFFFF\" cellpadding=\"5\" cellspacing=\"0\" width=129 border=\"0\" VALIGN=\"Top\"><tr><td><script language=\"JavaScript1.2\">
var marqueewidth=118
var marqueeheight=104
var speed=1
var marqueecontents='$wwww'
if (document.all)
document.write('<marquee direction=\"up\" scrollAmount='+speed+' style=\"width:'+marqueewidth+';height:'+marqueeheight+'\">'+marqueecontents+'</marquee>')
function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
setTimeout(\"window.onresize=regenerate\",450)
intializemarquee()
}
}
function intializemarquee(){
document.cmarquee01.document.cmarquee02.document.write(marqueecontents)
document.cmarquee01.document.cmarquee02.document.close()
thelength=document.cmarquee01.document.cmarquee02.document.height
scrollit()
}
function scrollit(){
if (document.cmarquee01.document.cmarquee02.top>=thelength*(-1)){
document.cmarquee01.document.cmarquee02.top-=speed
setTimeout(\"scrollit()\",100)
}
else{
document.cmarquee01.document.cmarquee02.top=marqueeheight
scrollit()
}
}
window.onload=regenerate2
</script><ilayer width=&{marqueewidth}; height=&{marqueeheight}; name=\"cmarquee01\"><layer name=\"cmarquee02\" width=&{marqueewidth}; height=&{marqueeheight};></layer></ilayer></tr></table></TD></TR></TABLE>";
?>

使用時先要建立一個名為data.txt的空白文件放在show.php的同一級目錄下,然后在頁面里使用include調用即可!
show.php?action=cp及可以進行設置,當然,因為沒有密碼保護,你可以把cp改成其他文字! 


主站蜘蛛池模板: 最近韩国高清免费 hd | 亚洲欧美日韩综合久久久久 | 亚洲 欧美 日韩中文字幕一区二区 | 偷窥自拍区| 日韩欧美视频一区 | 在线亚洲自拍 | 天天操天天草 | 日本在线免费观看视频 | 中文字幕欧美日韩在线不卡 | 婷婷色香五月激情综合2020 | 天天舔天天射天天操 | 欧美一级看片 | 欧美一级黄色片在线观看 | 亚洲免费在线播放 | 午夜影院在线免费观看 | 亚洲性久久 | 色综合网址 | 色天使色婷婷在线影院亚洲 | 人人澡人摸人人爽歪歪 | 亚洲a级黄色 | 亚洲人成网男女大片在线播放 | 欧美无遮挡一区二区三区 | 亚洲欧美日本在线观看 | 手机看片自拍 | 色婷婷激婷婷深爱五月小说 | 日韩在线观看免费 | 亚欧洲精品在线视频免费观看 | 在线观看视频中文字幕 | 伊人色院成人蜜桃视频 | 青草国产精品久久久久久久久 | 亚洲免费大片 | 欧美香蕉在线 | 日韩一区二三区无 | 青青草视频播放 | 色人久久 | 欧美一区二区精品系列在线观看 | 天天操天天干天天玩 | 亚洲美女色在线欧洲美女 | 手机看片自拍自拍自拍自视频 | 天堂中文在线观看 | 青草青在线免费视频 |