1. [代码]change.js
//change.js
$(document).ready(function(){
var url = "change_doc.php";
showFirstPage(url);
});
function showFirstPage(serverUrl){
var url = serverUrl+"?fuckie="+Math.random();
$.get( url, function(data){
$(".change_doc").html(data);
}
);
}
2. [代码]index.php
//index.php
<script></script><script></script><p></p>
3. [代码]change_doc.php
<?php include 'connect.php';
function change_doc() {
$Row = @mysql_query("SELECT * FROM countries ORDER BY rand() DESC LIMIT 3");
$Html = "";
$Html .= '<p class="right_r_c">';
$Html .= ' <p><span><a>换一换</a></span>';
$Html .= ' </p>';
$Html .= ' <p></p>';
$Html .= ' <p>';
while ($mesList = @mysql_fetch_array($Row)) {
$Html .= ' </p><p>';
$Html .= ' </p><p><a>' . $mesList['value'] . '</a></p><div class="aritcle_card flexRow artxards">
<div class="artcardd flexRow">
<a class="aritcle_card_img" rel="nofollow" href="/xiazai/skill13222" title="Build MCP servers and clients for PHP applications with the official PHP SDK"><img
src="https://img.php.cn/upload/skill/001/246/273/6adaf20e352aa140.jpg" alt="Build MCP servers and clients for PHP applications with the official PHP SDK" onerror="this.onerror='';this.src='/static/lhimages/moren/morentu.png'" ></a>
<div class="aritcle_card_info flexColumn">
<a rel="nofollow" href="/xiazai/skill13222" title="Build MCP servers and clients for PHP applications with the official PHP SDK" class="overflowclass">Build MCP servers and clients for PHP applications with the official PHP SDK</a>
<p class="overflowclass">使用官方Model Context Protocol PHP SDK将PHP应用程序功能暴露为MCP工具、资源和提示,用于代理工作流。</p>
</div>
<a rel="nofollow" href="/xiazai/skill13222" title="Build MCP servers and clients for PHP applications with the official PHP SDK" class="aritcle_card_btn flexRow flexcenter"><b></b><span>下载</span>
</a>
</div>
</div>';
$Html .= ' ';
}
$Html .= ' ';
$Html .= '';
return $Html;
}
echo change_doc();
?>