切換選單
切換個人選單
尚未登入
如果您进行任何编辑,您的IP地址会公开展示。

「百科沙盒」:修訂間差異

出自索尼克百科
新增的內容 刪去的內容
imported>Sonicth0623
無編輯摘要
imported>Sonicth0623
無編輯摘要
第2行: 第2行:
<p>本页面仅作测试使用,当前测试人:[[User:Sonicth0623|Sonicth0623]]([[User talk:Sonicth0623|留言]])</p>
<p>本页面仅作测试使用,当前测试人:[[User:Sonicth0623|Sonicth0623]]([[User talk:Sonicth0623|留言]])</p>


<div id="spoiler" style="display: block;">隐藏</div>
<div class="container-1-test">
<input type="button" name="" id="hidebutton" value="隐藏" onclick="test()" />
<div id="title"><!--标题-->'''欢迎来到索尼克百科!'''</div>
<script>var spo = document.getElementById('spoiler');
<div class="wid"></div>
var hidbutton = document.getElementById('hidebutton');
<div id="content"><!--主体内容-->索尼克百科 Sonicpedia 是刺猬索尼克中文百科全书,欢迎任何人在这里新建或者编辑 Wiki 内容!如果您不适应默认的简体中文,请在:子菜单中或者在您的索尼克百科账号 "参数设置" 中选择您偏好的的中文变体。
if (spo.style.display = 'block'){
<p class="linkrb"></p></div>
var sposta = 'block';
</div>
}
else {
var sposta = 'block';
}
function test(){
if(sposta == 'block') {
spo.style.display = 'none';
sposta = "none";
hidbutton.value = "显示"
}
else {
spo.style.display = 'block';
sposta = 'block';
hidbutton.value = "隐藏"
}
}

於 2022年3月4日 (五) 19:25 的修訂

本頁面僅作測試使用,當前測試人:Sonicth0623留言

隱藏

<input type="button" name="" id="hidebutton" value="隱藏" onclick="test()" /> <script>var spo = document.getElementById('spoiler'); var hidbutton = document.getElementById('hidebutton'); if (spo.style.display = 'block'){ var sposta = 'block'; } else { var sposta = 'block'; } function test(){ if(sposta == 'block') { spo.style.display = 'none'; sposta = "none"; hidbutton.value = "顯示" } else { spo.style.display = 'block'; sposta = 'block'; hidbutton.value = "隱藏" } }

Cookies 幫助我們給予服務內容。依您有使用我們的服務,代表您同意我們使用 cookies。