Home >Backend Development >PHP Tutorial >Implementing automatic news scrolling window using PHP+java_PHP tutorial

Implementing automatic news scrolling window using PHP+java_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 16:04:07916browse

show.php源代码:
if ($action=="cp"){
echo"


  

滚动菜单资料输入端


  

    

文字一:  
      
      链接一:
      
    


    

文字二:  
      
      链接二:  
      
    


    

文字三:  
      
      链接三:  
      
    


    

文字四:  
      
      链接四:  
      
    


    

文字五:  
      
      链接五:  
      
    


    

  
      
      
    


  

";exit;}
if ($action=="edit"){
$wname="data.txt";#Data saving file, attribute 666
$writeurl="$t1

$t2

$t3< ;/a>

$t4

$t5< br>
";
$fp=fopen($wname,"w");
$ww=fputs($fp,$writeurl);
if ($ww){echo file Writing successfully;}else{echo writing failed;}
exit;}
$wname="php-bin/data.txt";#Since it is called on the page, the page and program relative paths must be filled in here Or absolute path!
$fa=fopen($wname,"r+");
$wwww=fread($fa,filesize($wname));
echo "
< layer name="cmarquee02" width=&{marqueewidth}; height=&{marqueeheight};>
";
?>

When using it, first create a blank file named data.txt and place it in the same directory as show.php, and then add it to the page Just use include to call it!
show.php?action=cp and can be set. Of course, since there is no password protection, you can change cp to other text!​

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/316022.htmlTechArticleshow.php source code: ? if ($action==cp){ echodiv align=center p scrolling menu information Input terminal/p form method=post action=show.php?action=edit p text one: input type=text name=t1 maxleng...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn