ホームページ バックエンド開発 PHPチュートリアル mysql ベースのメリー メリー クリスマス フォーラム (4)

mysql ベースのメリー メリー クリスマス フォーラム (4)

Jul 29, 2016 am 08:34 AM

##index.php


论坛





< /frameset>
<body bgcolor="#FFFFFF"> <br></html> <br>$fp =fopen("ファイル/カウンター.txt","r"); <br>$counter=fgets($fp,8); <br>$counter=$fp=fopen( "file/counter.txt","w"); <br>fputs($fp,$fp); <br>$sql="から選択ボード情報"; <br>$sql_result=mysql_query($sql); <br>$sql_row=mysql_fetch_array($sql_result); <br>?> <br><html> <br><head> <br><title>バージョン面列表</title&g <br> <meta http-equiv="Content-Type" c/html; <br><link href="css/new.css" rel=stylesheet> <br></頭> <br><本文の背景="image/bg.gif" bgcolor="#FFFFFF"> <br><表幅="100%" ボーダー="0" セルスペース="2" セルパディング="0"> <br> <tr> <br> <td align="center"> </td> <br> </tr> <br> <tr> <br> <td align="center"><a href="apply.php" target="main">注册用户</a></td> <br> </tr> <br> <tr> <br> <td align="center"><font color="#666666">---------</font></td> <br> </tr> <br><?php <br>do <br>{ <br>echo"<tr>"; <br>echo"<td align="center"><a href="list.php?board=$sql_row[名前]" target="main">$sql_row[中国語名]</a>< /td>"; <br>echo"</tr>"; <br>}while($sql_row=mysql_fetch_array($sql_result)); <br>?> <br><tr> <br> <td align="center"><font color="#006666">---------</font></td> <br> </tr> <br> <tr> <br> <td height="11"> <br> <script src=file/X86tree.js></script> <br> <スクリプト言語=javascript> <br> img_t1="image/t1.gif"; <br> img_t2="image/t2.gif"; <br> tree=新しいツリービュー(0,0,640,300); <br> tree.AddImage(0,"image/dot.gif"); <br> tree.AddImage(1,"image/close.gif"); <br> tree.AddImage(2,"image/open.gif"); <br> m1=new Nodes("m1",tree.ImageList,"论坛转向",0,2,""); <br> m1.Add(new Node("站点首页",1,0,"<a href='http://www.jlbusiness.com' target='_top'>"));                                                              m1.Add(new Node("论坛首页",1,0,"<a href='right.htm' target='main'>")); <br> tree.Add2(m1); <br> doc2=new Nodes("doc2",tree.ImageList,"论坛機能",0,2,"-"); <br> doc2.Add(new Node("帖子查询",1,0,"<a href='query.php' target='main'>")); <br> doc2.Add(new Node("精华領域",1,0,"<a href='good.php' target='main'>")); <br> doc2.Add(new Node("観察留言",1,0,"<a href='vmlogin.php' target='main'>")); <br> doc2.Add(new Node("修改资料",1,0,"<a href='modify_l.php' target='main'>")); <br> doc2.Add(new Node("観察资料",1,0,"<a href='userinfo.php' target='main'>")); <br> doc2.Add(new Node("観察积分",1,0,"<a href='viewscore.php' target='main'>")); <br> doc2.Add(new Node("论坛管理",1,0,"<a href='manage.htm' target='main'>")); <br> tree.Add2(doc2); <br> tree.Show(); <br> doc2.Close(); <br> m1.Close(); <br></スクリプト> <br> </td> <br> </tr> <br> <tr> <br> <td align="center"> <b><font color="#006666">--------</font><br> <br> <?php echo "$counter"?></b></td> <br> </tr> <br></表> <br></body> <br></html> <br>## list.php <br><?php <br>require("func.php"); <br>if(empty($board)){ <br> $board="コンピューター"; <br>} <br>$sql="select * from boardinfo where name='$board'"; <br>$sql_result=mysql_query($sql); <br>$sql_row=mysql_fetch_array($sql_result); <br>$chinesename=$sql_row[chinesename]; <br>setcookie ("jl_forum[chinesename]",$chinesename); <br>$sql="select name from user where slaveboard='$board'"; <br>$sql_result=mysql_query($sql); <br>?> <br><html> <br><head> <br><title>List</title> <br><meta http-equiv="Content-Type" c/html; charset=gb2312"> <br><link rel="stylesheet" type="text/css" href="css/index.css"> <br><script language="javascript"> <br>function openwin(board,id){                window.open("read.php?board="+board+"&id="+id,"","height=460,width=600,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no"); <br>} <br>function post(board){                window.open("post.php?board="+board,"","height=500,width=600,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no"); <br>} <br></script> <br></head> <br><body bgcolor="#FFFFFF" background="image/bg.gif"> <br><?php include "header.php";?> <br> <br><table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolorlight="#000000" bordercolordark="#FFFFFF"> <br>  <tr>  <br>    <td height="22" width="23%" bgcolor="#eeeeee">版面:<?php <br>echo $chinesename; <br>?></td> <br>    <td height="22" width="41%" bgcolor="#eeeeee">版主:<?php <br>while ($sql_row=mysql_fetch_array($sql_result)) <br>{ <br>echo "$sql_row[name]"." "; <br>} <br># 选择出留言纪录; <br>$sql="select * from $board where slaveid=0"; <br>$temp=mysql_query($sql); <br>$sum=mysql_num_rows($temp); <br>$totalpage=ceil($sum/$pagesize); <br>if ($sum==0) { <br> $totalpage=1; <br>} <br># 分页 <br>if($page<1 or empty($page)){ <br> $page=1; <br>} <br>elseif ($page>$totalpage){ <br>         $page=$totalpage; <br>} <br>$offset=($page-1)*$pagesize; <br>$sql="select * from $board where slaveid=0 order by id desc limit $offset,$pagesize"; <br>$sql_result=mysql_query($sql); <br>?> </td> <br>    <td height="22" width="13%" bgcolor="#eeeeee">贴子总数:<?php echo $sum; ?></td> <br>    <td height="22" width="12%"><a ><img src="image/newtopic.jpg" width="93" height="21" border="0" alt="发新贴子"></a></td> <br>    <td height="22" width="11%">  <br>      <div align="center"><a href="<?php echo "$php_self?board=$board&page=$page";?>">刷新浏览</a></div> <br>    </td> <br>  </tr> <br></table> <br><br> <br><table width="100%" border="1" cellspacing="0" cellpadding="1" bordercolorlight="#CCCCCC" bordercolordark="#FFFFFF"> <br>  <tr bgcolor="#995100" align="center"> <br>    <td width="6%"><font color="#FFFFFF">回应</font></td> <br>    <td width="67%" bgcolor="#995100"><font color="#FFFFFF">主 题</font></td> <br>    <td width="20%"><font color="#FFFFFF">时 间</font></td> <br>    <td width="7%"><font color="#FFFFFF">人气</font></td> <br>  </tr> <br>  <tr bgcolor="#FFCC99"> <br>    <td colspan="5" height="2"> </td> <br>  </tr> <br>  <?php <br>while ($sql_row=mysql_fetch_array($sql_result)) <br>{ <br> echo"<tr>"; <br> echo"<td width="6%" bgcolor="#FFF5DD" align="center">"; <br> if ($sql_row[renum]!=0) <br>      { <br>       echo "<font color="#FF0000">[+$sql_row[renum]]</font>"; <br>      } <br> else <br>{ <br>echo "[0]"; <br>} <br>  echo"</td>"; <br>  echo"<td bgcolor="#E8FDEE" width="56%"><font face="宋体"><a title="作者:$sql_row[writer] 大小:$sql_row[size]字节">$sql_row[title]</a></font></td>"; <br>  echo"<td width="18%" bgcolor="#FFF5DD" align="center">$sql_row[writetime]</td>"; <br>  echo"<td width="6%" bgcolor="#E8FDEE" align="center">$sql_row[hits]</td>"; <br>  echo"</tr>"; <br>} <br>?> <br>  <tr bgcolor="#FFCC99"> <br>    <td colspan="5" align="center" height="2"> </td> <br>  </tr> <br></table> <br><div align="right"> <br><form method="post" action="<?php echo $php_self;?>"> <br>    共<b><?php echo $totalpage;?></b>页 第<b><?php echo $page;?></b>页·<?php <br>if ($page!=1){ <br> $back=$page-1; <br> echo"<a href="$php_self?board=$board&page=1">首页</a> <a href="$php_self?board=$board&page=$back">上一页</a>"; <br>} <br>if ($page==1){ <br>       echo"首页 上一页"; <br>} <br>if($page!=$totalpage){ <br>    $next=$page+1; <br>        echo" <a href="$php_self?board=$board&page=$next">下一页</a> <a href="$php_self?board=$board&page=$totalpage">尾页</a>"; <br>} <br>if($page==$totalpage){ <br>        echo" 下一页 尾页"; <br>} <br>?>·  <br>    <input type="submit" name="goto" value="转到"> <br>    <input type="text" name="page" size="2"> <br>    页  <br>  </form> <br></div> <br><?php include "footer.php";?> <br></body> <br></html> <br>## login.php <br><?php <br>require "func.php"; <br>if ($name==$admin_name and $password==$admin_password) { <br> setcookie ("jl_admin[name]",$name); <br> setcookie ("jl_admin[パスワード]",$name); <br> redirect2("admin.php"); <br>} <br>else { <br> show_error(1); <br>} <br>?> <br>## manage.php <br><?php <br>require "func.php"; <br>if (check_admin_password()) { <br> switch ($job){ <br> case "setgood": <br> set_good($jl_forum[board],$id); <br> 休憩; <br> ケース "setnogood": <br> set_no_good($jl_forum[board],$id); <br> 休憩; <br> ケース "削除": <br> del_doc($jl_forum[board],$id); <br> 休憩; <br> } <br>echo "<h2>操作成功!</h2><br>"; <br>?> <br><html><head><title>o,k</title></head><body> <br><フォームメソッド="POST"> <br> <input type="button" value=" 关闭 " name="B1" <br></form> <br></body> <br></html> <br><?php <br>} <br>else { <br> show_error(1); <br>} <br>?> <br>## manage_list.php <br><?php <br>require("func.php"); <br>if (check_admin_password()) { <br>$board=$jl_forum[ボード]; <br>$sql="select * from boardinfo where name='$board'"; <br>$sql_result=mysql_query($sql); <br>$sql_row=mysql_fetch_array($sql_result); <br>$中国語名=$sql_row[中国語名]; <br>setcookie ("jl_forum[中国語名]",$中国語名); <br>$sql="slaveboard='$board'" のユーザーから名前を選択します。 <br>$sql_result=mysql_query($sql); <br>?> <br> <br> <br><title>リスト</title> <br><meta http-equiv="Content-Type" c/html; charset=gb2312"> <br><link rel="stylesheet" type="text/css" href="css/index.css"> <br><script language="javascript"> <br>function openwin(board, id){ window.open("manage_read.php?board="+board+"&id="+id,"","height=460,width=600,resizable=yes,scrollbars=yes,status=no,toolbar= no,menubar=no,location=no"); <br>} <br>function post(board){ window.open("post.php?board="+board,"","height=500,width=600,resizable= yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no"); <br>} <br></script> <br></head> <br><body bgcolor="#FFFFFF" background= "image/bg.gif"> <br><?php include "header.php";?> <table width="100%" border="1" cellpadding= "0" bordercolorlight="#D8D8E8" bordercolordark="#D8D8E8"> <br> <tr> <br> <td height="20" width="27%" bgcolor="#d8dde9"> バージョン面:<? php <br>echo $chinesename <br>?>(管理)</td> <br> <td height="20" width="31%" bgcolor="#d8dde9">版主:<?php <br>while ($sql_row=mysql_fetch_array($sql_result)) <br>{ <br>echo "$sql_row[name]"。 "; <br>} <br># 选择出留言纪录; <br>$sql="select * from $board where smileid=0"; <br>$temp=mysql_query($sql); <br>$sum=mysql_num_rows($temp); <br>$totalpage =ceil($sum/$pagesize); <br>if ($sum==0) { <br> $totalpage=1; <br>} <br># 分页 <br>if($page<1 or empty($page)){ <br> $page= 1; <br>} <br>elseif ($page>$totalpage){ <br> $page=$totalpage;<br>$offset=($page-1)*$pagesize; <br>$sql="slaveid=0 の $board から * を選択 ID 記述制限 $offset,$pagesize で並べ替えます"; <br>$sql_result=mysql_query($sql); <br>?> </td> <br> <td height="20" width="15%" bgcolor="#d8dde9">贴子总数:<?php echo $sum; ?></td> <br> <td height="20" width="12%"><a ><img src="image/newtopic.jpg" width="92" height="21" border="0" alt ="発行新贴子"></a></td> <br> <td height="20" align="center" width="15%"><a href="<?php echo "$php_self?board=$board&page=$page";?>" >刷新浏览</a></td> <br> </tr> <br></表> <br><br> <br><表幅="100%" ボーダー="1" セルスペース="0" セルパディング="1" ボーダーカラーライト="#CCCCCC" ボーダーカラーダーク="#CCCCCC"> <br> <tr bgcolor="#995100" align="center"> <br> <td width="6%"><font color="#FFFFFF">回帰</font></td> <br> <td width="67%" bgcolor="#995100"><font color="#FFFFFF">主题</font></td> <br> <td width="20%"><font color="#FFFFFF"> 時間</font></td> <br> <td width="7%"><font color="#FFFFFF">人气</font></td> <br> </tr> <br> <tr bgcolor="#FFCC99"> <br> <tdcolspan="5" height="2"> </td> <br> </tr> <br> <?php <br>while ($sql_row=mysql_fetch_array($sql_result)) <br>{ <br> echo"<tr>"; <br> echo"<td width="6%" bgcolor="#FFF5DD" align="center">"; <br> if ($sql_row[renum]!=0) <br> { <br> echo "<font color="#FF0000">[+$sql_row[renum]]</font>"; <br> } <br> else <br>{ <br>echo "[0]"; <br>} <br> echo"</td>"; <br> echo"<td bgcolor="#E8FDEE" width="56%"><font face="宋体"><a title="作者:$sql_row[ライター] 大小:$sql_row[サイズ]字节">$sql_row[title]</a></font></td>"; <br> echo"<td width="18%" bgcolor="#FFF5DD" align="center">$sql_row[writetime]</td>"; <br> echo"<td width="6%" bgcolor="#E8FDEE" align="center">$sql_row[hits]</td>"; <br> echo"</tr>"; <br>} <br>?> <br> <tr bgcolor="#FFCC99"> <br> <tdcolspan="5" align="center" height="2"> </td> <br> </tr> <br></表> <br><div align="right"> <br><form method="post" action="<?php echo $php_self;?>"> <br> 共<b><?php echo $totalpage;?></b>页 第<b><?php echo $page;?></b>页· <?php <br>if ($page!=1){ <br> $back=$page-1; <br> echo"<a href="$php_self?board=$board&page=1">首页</a> <a href="$php_self?board=$board&page=$back">上一页< ;/a>"; <br>} <br>if ($page==1){ <br> echo"首页 上一页"; <br>} <br>if($page!=$totalpage){ <br> $next=$page+1; <br> echo" <a href="$php_self?board=$board&page=$next">下一页</a> <a href="$php_self?board=$board&page=$totalpage">尾页</a>"; <br>}AIF ($ page == $ TotalPage) {<br> Echo "次のページ" <br> ? & Gt; · 最初の入力タイプ = "テキスト" 名前 = "ページ" <br> else { <br> show_error(4) <br>} <br>?> <br> 上記は、mysql (4) をベースにしたメリー メリー クリスマス フォーラムの紹介です。メリー メリー クリスマスの内容も含まれており、PHP チュートリアルに興味のある友人に役立つことを願っています。 <br> <br> <br></p> </div> </div> <div class="wzconShengming_sp"> <div class="bzsmdiv_sp">このウェブサイトの声明</div> <div>この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。</div> </div> </div> <ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-5902227090019525" data-ad-slot="2507867629"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> <div class="AI_ToolDetails_main4sR"> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-5902227090019525" data-ad-slot="3653428331" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> <!-- <div class="phpgenera_Details_mainR4"> <div class="phpmain1_4R_readrank"> <div class="phpmain1_4R_readrank_top"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hotarticle2.png" alt="" /> <h2>人気の記事</h2> </div> <div class="phpgenera_Details_mainR4_bottom"> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ja/faq/1796793874.html" title="KB5055523を修正する方法Windows 11にインストールできませんか?" class="phpgenera_Details_mainR4_bottom_title">KB5055523を修正する方法Windows 11にインストールできませんか?</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3週間前</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ja/faq/1796793871.html" title="KB5055518を修正する方法Windows 10にインストールできませんか?" class="phpgenera_Details_mainR4_bottom_title">KB5055518を修正する方法Windows 10にインストールできませんか?</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3週間前</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ja/faq/1796791957.html" title="&lt;🎜&gt;:死んだレール - オオカミの飼い主" class="phpgenera_Details_mainR4_bottom_title">&lt;🎜&gt;:死んだレール - オオカミの飼い主</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>4週間前</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ja/faq/1796792155.html" title="R.E.P.O.のすべての敵とモンスターの強度レベル" class="phpgenera_Details_mainR4_bottom_title">R.E.P.O.のすべての敵とモンスターの強度レベル</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>4週間前</span> <span>By 尊渡假赌尊渡假赌尊渡假赌</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ja/faq/1796797907.html" title="&lt;🎜&gt;:庭を育てる - 完全な突然変異ガイド" class="phpgenera_Details_mainR4_bottom_title">&lt;🎜&gt;:庭を育てる - 完全な突然変異ガイド</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>2週間前</span> <span>By DDD</span> </div> </div> </div> <div class="phpgenera_Details_mainR3_more"> <a href="https://www.php.cn/ja/article.html">もっと見る</a> </div> </div> </div> --> <div class="phpgenera_Details_mainR3"> <div class="phpmain1_4R_readrank"> <div class="phpmain1_4R_readrank_top"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hottools2.png" alt="" /> <h2>ホットAIツール</h2> </div> <div class="phpgenera_Details_mainR3_bottom"> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/ja/ai/undresserai-undress" title="Undresser.AI Undress" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411540686492.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Undresser.AI Undress" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/ja/ai/undresserai-undress" title="Undresser.AI Undress" class="phpmain_tab2_mids_title"> <h3>Undresser.AI Undress</h3> </a> <p>リアルなヌード写真を作成する AI 搭載アプリ</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/ja/ai/ai-clothes-remover" title="AI Clothes Remover" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411552797167.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="AI Clothes Remover" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/ja/ai/ai-clothes-remover" title="AI Clothes Remover" class="phpmain_tab2_mids_title"> <h3>AI Clothes Remover</h3> </a> <p>写真から衣服を削除するオンライン AI ツール。</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/ja/ai/undress-ai-tool" title="Undress AI Tool" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173410641626608.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Undress AI Tool" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/ja/ai/undress-ai-tool" title="Undress AI Tool" class="phpmain_tab2_mids_title"> <h3>Undress AI Tool</h3> </a> <p>脱衣画像を無料で</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/ja/ai/clothoffio" title="Clothoff.io" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411529149311.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Clothoff.io" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/ja/ai/clothoffio" title="Clothoff.io" class="phpmain_tab2_mids_title"> <h3>Clothoff.io</h3> </a> <p>AI衣類リムーバー</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/ja/ai/video-swap" title="Video Face Swap" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173414504068133.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Video Face Swap" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/ja/ai/video-swap" title="Video Face Swap" class="phpmain_tab2_mids_title"> <h3>Video Face Swap</h3> </a> <p>完全無料の AI 顔交換ツールを使用して、あらゆるビデオの顔を簡単に交換できます。</p> </div> </div> </div> <div class="phpgenera_Details_mainR3_more"> <a href="https://www.php.cn/ja/ai">もっと見る</a> </div> </div> </div> <script src="https://sw.php.cn/hezuo/cac1399ab368127f9b113b14eb3316d0.js" type="text/javascript"></script> <div class="phpgenera_Details_mainR4"> <div class="phpmain1_4R_readrank"> <div class="phpmain1_4R_readrank_top"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hotarticle2.png" alt="" /> <h2>人気の記事</h2> </div> <div class="phpgenera_Details_mainR4_bottom"> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ja/faq/1796793874.html" title="KB5055523を修正する方法Windows 11にインストールできませんか?" class="phpgenera_Details_mainR4_bottom_title">KB5055523を修正する方法Windows 11にインストールできませんか?</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3週間前</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ja/faq/1796793871.html" title="KB5055518を修正する方法Windows 10にインストールできませんか?" class="phpgenera_Details_mainR4_bottom_title">KB5055518を修正する方法Windows 10にインストールできませんか?</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3週間前</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ja/faq/1796791957.html" title="&lt;🎜&gt;:死んだレール - オオカミの飼い主" class="phpgenera_Details_mainR4_bottom_title">&lt;🎜&gt;:死んだレール - オオカミの飼い主</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>4週間前</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ja/faq/1796792155.html" title="R.E.P.O.のすべての敵とモンスターの強度レベル" class="phpgenera_Details_mainR4_bottom_title">R.E.P.O.のすべての敵とモンスターの強度レベル</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>4週間前</span> <span>By 尊渡假赌尊渡假赌尊渡假赌</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ja/faq/1796797907.html" title="&lt;🎜&gt;:庭を育てる - 完全な突然変異ガイド" class="phpgenera_Details_mainR4_bottom_title">&lt;🎜&gt;:庭を育てる - 完全な突然変異ガイド</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>2週間前</span> <span>By DDD</span> </div> </div> </div> <div class="phpgenera_Details_mainR3_more"> <a href="https://www.php.cn/ja/article.html">もっと見る</a> </div> </div> </div> <div class="phpgenera_Details_mainR3"> <div class="phpmain1_4R_readrank"> <div class="phpmain1_4R_readrank_top"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hottools2.png" alt="" /> <h2>ホットツール</h2> </div> <div class="phpgenera_Details_mainR3_bottom"> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/ja/toolset/development-tools/92" title="メモ帳++7.3.1" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58ab96f0f39f7357.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="メモ帳++7.3.1" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/ja/toolset/development-tools/92" title="メモ帳++7.3.1" class="phpmain_tab2_mids_title"> <h3>メモ帳++7.3.1</h3> </a> <p>使いやすく無料のコードエディター</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/ja/toolset/development-tools/93" title="SublimeText3 中国語版" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58ab97a3baad9677.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="SublimeText3 中国語版" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/ja/toolset/development-tools/93" title="SublimeText3 中国語版" class="phpmain_tab2_mids_title"> <h3>SublimeText3 中国語版</h3> </a> <p>中国語版、とても使いやすい</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/ja/toolset/development-tools/121" title="ゼンドスタジオ 13.0.1" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58ab97ecd1ab2670.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="ゼンドスタジオ 13.0.1" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/ja/toolset/development-tools/121" title="ゼンドスタジオ 13.0.1" class="phpmain_tab2_mids_title"> <h3>ゼンドスタジオ 13.0.1</h3> </a> <p>強力な PHP 統合開発環境</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/ja/toolset/development-tools/469" title="ドリームウィーバー CS6" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58d0e0fc74683535.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="ドリームウィーバー CS6" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/ja/toolset/development-tools/469" title="ドリームウィーバー CS6" class="phpmain_tab2_mids_title"> <h3>ドリームウィーバー CS6</h3> </a> <p>ビジュアル Web 開発ツール</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/ja/toolset/development-tools/500" title="SublimeText3 Mac版" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58d34035e2757995.png?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="SublimeText3 Mac版" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/ja/toolset/development-tools/500" title="SublimeText3 Mac版" class="phpmain_tab2_mids_title"> <h3>SublimeText3 Mac版</h3> </a> <p>神レベルのコード編集ソフト(SublimeText3)</p> </div> </div> </div> <div class="phpgenera_Details_mainR3_more"> <a href="https://www.php.cn/ja/ai">もっと見る</a> </div> </div> </div> <div class="phpgenera_Details_mainR4"> <div class="phpmain1_4R_readrank"> <div class="phpmain1_4R_readrank_top"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hotarticle2.png" alt="" /> <h2>ホットトピック</h2> </div> <div class="phpgenera_Details_mainR4_bottom"> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ja/faq/java-tutorial" title="Java チュートリアル" class="phpgenera_Details_mainR4_bottom_title">Java チュートリアル</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/eyess.png" alt="" /> <span>1658</span> </div> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/tiezi.png" alt="" /> <span>14</span> </div> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ja/faq/cakephp-tutor" title="CakePHP チュートリアル" class="phpgenera_Details_mainR4_bottom_title">CakePHP チュートリアル</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/eyess.png" alt="" /> <span>1415</span> </div> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/tiezi.png" alt="" /> <span>52</span> </div> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ja/faq/laravel-tutori" title="Laravel チュートリアル" class="phpgenera_Details_mainR4_bottom_title">Laravel チュートリアル</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/eyess.png" alt="" /> <span>1309</span> </div> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/tiezi.png" alt="" /> <span>25</span> </div> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ja/faq/php-tutorial" title="PHP チュートリアル" class="phpgenera_Details_mainR4_bottom_title">PHP チュートリアル</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/eyess.png" alt="" /> <span>1257</span> </div> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/tiezi.png" alt="" /> <span>29</span> </div> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ja/faq/c-tutorial" title="C# チュートリアル" class="phpgenera_Details_mainR4_bottom_title">C# チュートリアル</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/eyess.png" alt="" /> <span>1231</span> </div> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/tiezi.png" alt="" /> <span>24</span> </div> </div> </div> </div> <div class="phpgenera_Details_mainR3_more"> <a href="https://www.php.cn/ja/faq/zt">もっと見る</a> </div> </div> </div> </div> </div> <div class="Article_Details_main2"> <div class="phpgenera_Details_mainL4"> <div class="phpmain1_2_top"> <a href="javascript:void(0);" class="phpmain1_2_top_title">Related knowledge<img src="/static/imghw/index2_title2.png" alt="" /></a> </div> <div class="phpgenera_Details_mainL4_info"> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/ja/faq/1796791139.html" title="セッションのハイジャックはどのように機能し、どのようにPHPでそれを軽減できますか?" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/001/253/068/174386897193010.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="セッションのハイジャックはどのように機能し、どのようにPHPでそれを軽減できますか?" /> </a> <a href="https://www.php.cn/ja/faq/1796791139.html" title="セッションのハイジャックはどのように機能し、どのようにPHPでそれを軽減できますか?" class="phphistorical_Version2_mids_title">セッションのハイジャックはどのように機能し、どのようにPHPでそれを軽減できますか?</a> <span class="Articlelist_txts_time">Apr 06, 2025 am 12:02 AM</span> <p class="Articlelist_txts_p">セッションハイジャックは、次の手順で達成できます。1。セッションIDを取得します。2。セッションIDを使用します。3。セッションをアクティブに保ちます。 PHPでのセッションハイジャックを防ぐための方法には次のものが含まれます。1。セッション_regenerate_id()関数を使用して、セッションIDを再生します。2。データベースを介してストアセッションデータを3。</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/ja/faq/1796792417.html" title="PHPのさまざまなエラータイプを説明します(通知、警告、致命的なエラー、解析エラー)。" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/001/253/068/174404178181682.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="PHPのさまざまなエラータイプを説明します(通知、警告、致命的なエラー、解析エラー)。" /> </a> <a href="https://www.php.cn/ja/faq/1796792417.html" title="PHPのさまざまなエラータイプを説明します(通知、警告、致命的なエラー、解析エラー)。" class="phphistorical_Version2_mids_title">PHPのさまざまなエラータイプを説明します(通知、警告、致命的なエラー、解析エラー)。</a> <span class="Articlelist_txts_time">Apr 08, 2025 am 12:03 AM</span> <p class="Articlelist_txts_p">PHPには4つの主要なエラータイプがあります。1。notice:わずかなものは、未定義の変数へのアクセスなど、プログラムを中断しません。 2。警告:通知よりも深刻で、ファイルを含むなど、プログラムを終了しません。 3。ファタラー:最も深刻なのは、機能を呼び出すなど、プログラムを終了します。 4。ParseError:構文エラーは、エンドタグの追加を忘れるなど、プログラムの実行を防ぎます。</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/ja/faq/1796795664.html" title="PHPとPython:2つの一般的なプログラミング言語を比較します" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/001/253/068/174456083037147.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="PHPとPython:2つの一般的なプログラミング言語を比較します" /> </a> <a href="https://www.php.cn/ja/faq/1796795664.html" title="PHPとPython:2つの一般的なプログラミング言語を比較します" class="phphistorical_Version2_mids_title">PHPとPython:2つの一般的なプログラミング言語を比較します</a> <span class="Articlelist_txts_time">Apr 14, 2025 am 12:13 AM</span> <p class="Articlelist_txts_p">PHPとPythonにはそれぞれ独自の利点があり、プロジェクトの要件に従って選択します。 1.PHPは、特にWebサイトの迅速な開発とメンテナンスに適しています。 2。Pythonは、データサイエンス、機械学習、人工知能に適しており、簡潔な構文を備えており、初心者に適しています。</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/ja/faq/1796797284.html" title="PHPでの安全なパスワードハッシュ(例:Password_hash、password_verify)を説明します。 MD5またはSHA1を使用してみませんか?" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/001/253/068/174481961034298.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="PHPでの安全なパスワードハッシュ(例:Password_hash、password_verify)を説明します。 MD5またはSHA1を使用してみませんか?" /> </a> <a href="https://www.php.cn/ja/faq/1796797284.html" title="PHPでの安全なパスワードハッシュ(例:Password_hash、password_verify)を説明します。 MD5またはSHA1を使用してみませんか?" class="phphistorical_Version2_mids_title">PHPでの安全なパスワードハッシュ(例:Password_hash、password_verify)を説明します。 MD5またはSHA1を使用してみませんか?</a> <span class="Articlelist_txts_time">Apr 17, 2025 am 12:06 AM</span> <p class="Articlelist_txts_p">PHPでは、Password_hashとpassword_verify関数を使用して安全なパスワードハッシュを実装する必要があり、MD5またはSHA1を使用しないでください。 1)password_hashセキュリティを強化するために、塩値を含むハッシュを生成します。 2)password_verifyハッシュ値を比較して、パスワードを確認し、セキュリティを確保します。 3)MD5とSHA1は脆弱であり、塩の値が不足しており、最新のパスワードセキュリティには適していません。</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/ja/faq/1796793122.html" title="HTTPリクエストメソッド(取得、投稿、配置、削除など)とは何ですか?それぞれを使用する必要がありますか?" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/001/253/068/174412859134062.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="HTTPリクエストメソッド(取得、投稿、配置、削除など)とは何ですか?それぞれを使用する必要がありますか?" /> </a> <a href="https://www.php.cn/ja/faq/1796793122.html" title="HTTPリクエストメソッド(取得、投稿、配置、削除など)とは何ですか?それぞれを使用する必要がありますか?" class="phphistorical_Version2_mids_title">HTTPリクエストメソッド(取得、投稿、配置、削除など)とは何ですか?それぞれを使用する必要がありますか?</a> <span class="Articlelist_txts_time">Apr 09, 2025 am 12:09 AM</span> <p class="Articlelist_txts_p">HTTPリクエストメソッドには、それぞれリソースを取得、送信、更新、削除するために使用されるGET、POST、PUT、および削除が含まれます。 1. GETメソッドは、リソースを取得するために使用され、読み取り操作に適しています。 2. POSTメソッドはデータの送信に使用され、新しいリソースを作成するためによく使用されます。 3. PUTメソッドは、リソースの更新に使用され、完全な更新に適しています。 4.削除メソッドは、リソースの削除に使用され、削除操作に適しています。</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/ja/faq/1796795196.html" title="PHP:Web開発の重要な言語" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/001/253/068/174447413070948.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="PHP:Web開発の重要な言語" /> </a> <a href="https://www.php.cn/ja/faq/1796795196.html" title="PHP:Web開発の重要な言語" class="phphistorical_Version2_mids_title">PHP:Web開発の重要な言語</a> <span class="Articlelist_txts_time">Apr 13, 2025 am 12:08 AM</span> <p class="Articlelist_txts_p">PHPは、サーバー側で広く使用されているスクリプト言語で、特にWeb開発に適しています。 1.PHPは、HTMLを埋め込み、HTTP要求と応答を処理し、さまざまなデータベースをサポートできます。 2.PHPは、ダイナミックWebコンテンツ、プロセスフォームデータ、アクセスデータベースなどを生成するために使用され、強力なコミュニティサポートとオープンソースリソースを備えています。 3。PHPは解釈された言語であり、実行プロセスには語彙分析、文法分析、編集、実行が含まれます。 4.PHPは、ユーザー登録システムなどの高度なアプリケーションについてMySQLと組み合わせることができます。 5。PHPをデバッグするときは、error_reporting()やvar_dump()などの関数を使用できます。 6. PHPコードを最適化して、キャッシュメカニズムを使用し、データベースクエリを最適化し、組み込み関数を使用します。 7</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/ja/faq/1796791136.html" title="PHP 7.4で導入された矢印関数(短い閉鎖)を説明します。" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/001/253/068/174386891128992.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="PHP 7.4で導入された矢印関数(短い閉鎖)を説明します。" /> </a> <a href="https://www.php.cn/ja/faq/1796791136.html" title="PHP 7.4で導入された矢印関数(短い閉鎖)を説明します。" class="phphistorical_Version2_mids_title">PHP 7.4で導入された矢印関数(短い閉鎖)を説明します。</a> <span class="Articlelist_txts_time">Apr 06, 2025 am 12:01 AM</span> <p class="Articlelist_txts_p">矢印関数はPhp7.4で導入され、短い閉鎖の単純化された形式です。 1)=&gt;演算子を使用して定義され、機能を省略し、キーワードを使用します。 2)矢印関数は、キーワードを使用せずに現在のスコープ変数を自動的にキャプチャします。 3)コールバック関数と短い計算でしばしば使用され、コードのシンプルさと読みやすさを改善します。</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/ja/faq/1796795680.html" title="アクション中のPHP:実際の例とアプリケーション" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/001/253/068/174456117044038.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="アクション中のPHP:実際の例とアプリケーション" /> </a> <a href="https://www.php.cn/ja/faq/1796795680.html" title="アクション中のPHP:実際の例とアプリケーション" class="phphistorical_Version2_mids_title">アクション中のPHP:実際の例とアプリケーション</a> <span class="Articlelist_txts_time">Apr 14, 2025 am 12:19 AM</span> <p class="Articlelist_txts_p">PHPは、電子商取引、コンテンツ管理システム、API開発で広く使用されています。 1)eコマース:ショッピングカート機能と支払い処理に使用。 2)コンテンツ管理システム:動的コンテンツの生成とユーザー管理に使用されます。 3)API開発:RESTFUL API開発とAPIセキュリティに使用されます。パフォーマンスの最適化とベストプラクティスを通じて、PHPアプリケーションの効率と保守性が向上します。</p> </div> </div> <a href="https://www.php.cn/ja/be/" class="phpgenera_Details_mainL4_botton"> <span>See all articles</span> <img src="/static/imghw/down_right.png" alt="" /> </a> </div> </div> </div> </main> <footer> <div class="footer"> <div class="footertop"> <img src="/static/imghw/logo.png" alt=""> <p>福祉オンライン PHP トレーニング,PHP 学習者の迅速な成長を支援します!</p> </div> <div class="footermid"> <a href="https://www.php.cn/ja/about/us.html">私たちについて</a> <a href="https://www.php.cn/ja/about/disclaimer.html">免責事項</a> <a href="https://www.php.cn/ja/update/article_0_1.html">Sitemap</a> </div> <div class="footerbottom"> <p> © php.cn All rights reserved </p> </div> </div> </footer> <input type="hidden" id="verifycode" value="/captcha.html"> <script>layui.use(['element', 'carousel'], function () {var element = layui.element;$ = layui.jquery;var carousel = layui.carousel;carousel.render({elem: '#test1', width: '100%', height: '330px', arrow: 'always'});$.getScript('/static/js/jquery.lazyload.min.js', function () {$("img").lazyload({placeholder: "/static/images/load.jpg", effect: "fadeIn", threshold: 200, skip_invisible: false});});});</script> <script src="/static/js/common_new.js"></script> <script type="text/javascript" src="/static/js/jquery.cookie.js?1746493507"></script> <script src="https://vdse.bdstatic.com//search-video.v1.min.js"></script> <link rel='stylesheet' id='_main-css' href='/static/css/viewer.min.css?2' type='text/css' media='all' /> <script type='text/javascript' src='/static/js/viewer.min.js?1'></script> <script type='text/javascript' src='/static/js/jquery-viewer.min.js'></script> <script type="text/javascript" src="/static/js/global.min.js?5.5.53"></script> <script> var _paq = window._paq = window._paq || []; /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function () { var u = "https://tongji.php.cn/"; _paq.push(['setTrackerUrl', u + 'matomo.php']); _paq.push(['setSiteId', '9']); var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0]; g.async = true; g.src = u + 'matomo.js'; s.parentNode.insertBefore(g, s); })(); </script> <script> // top layui.use(function () { var util = layui.util; util.fixbar({ on: { mouseenter: function (type) { layer.tips(type, this, { tips: 4, fixed: true, }); }, mouseleave: function (type) { layer.closeAll("tips"); }, }, }); }); document.addEventListener("DOMContentLoaded", (event) => { // 定义一个函数来处理滚动链接的点击事件 function setupScrollLink(scrollLinkId, targetElementId) { const scrollLink = document.getElementById(scrollLinkId); const targetElement = document.getElementById(targetElementId); if (scrollLink && targetElement) { scrollLink.addEventListener("click", (e) => { e.preventDefault(); // 阻止默认链接行为 targetElement.scrollIntoView({ behavior: "smooth" }); // 平滑滚动到目标元素 }); } else { console.warn( `Either scroll link with ID '${scrollLinkId}' or target element with ID '${targetElementId}' not found.` ); } } // 使用该函数设置多个滚动链接 setupScrollLink("Article_Details_main1L2s_1", "article_main_title1"); setupScrollLink("Article_Details_main1L2s_2", "article_main_title2"); setupScrollLink("Article_Details_main1L2s_3", "article_main_title3"); setupScrollLink("Article_Details_main1L2s_4", "article_main_title4"); setupScrollLink("Article_Details_main1L2s_5", "article_main_title5"); setupScrollLink("Article_Details_main1L2s_6", "article_main_title6"); // 可以继续添加更多的滚动链接设置 }); window.addEventListener("scroll", function () { var fixedElement = document.getElementById("Article_Details_main1Lmain"); var scrollTop = window.scrollY || document.documentElement.scrollTop; // 兼容不同浏览器 var clientHeight = window.innerHeight || document.documentElement.clientHeight; // 视口高度 var scrollHeight = document.documentElement.scrollHeight; // 页面总高度 // 计算距离底部的距离 var distanceToBottom = scrollHeight - scrollTop - clientHeight; // 当距离底部小于或等于300px时,取消固定定位 if (distanceToBottom <= 980) { fixedElement.classList.remove("Article_Details_main1Lmain"); fixedElement.classList.add("Article_Details_main1Lmain_relative"); } else { // 否则,保持固定定位 fixedElement.classList.remove("Article_Details_main1Lmain_relative"); fixedElement.classList.add("Article_Details_main1Lmain"); } }); </script> <script> document.addEventListener('DOMContentLoaded', function() { const mainNav = document.querySelector('.Article_Details_main1Lmain'); const header = document.querySelector('header'); if (mainNav) { window.addEventListener('scroll', function() { const scrollPosition = window.scrollY; if (scrollPosition > 84) { mainNav.classList.add('fixed'); } else { mainNav.classList.remove('fixed'); } }); } }); </script> </body> </html>