嗨,大家對於麻煩感到抱歉,我需要幫助製作按鈕,並在開始時通過javascript阻止按鈕,當我點擊閱讀漫畫按鈕時,我希望它顯示後退和前進按鈕。在開始時隱藏兩個按鈕,當點擊另一個按鈕時,顯示兩個按鈕
需要嚴格的JavaScript幫助而不是jQuery。
function hide()
{
document.getElementById("listm").style.display = "none";
}
function showlist()
{
document.getElementById("listm").style.display = "block";
}
function fimage()
{
document.getElementById("bimages").style.display = "hidden";
}
function pimage()
{
document.getElementById("bimages").style.display = "hidden"
}
<button onclick = "hide()">Read Manga</button>
<button onclick = "showlist()">Show List</button>
<button id = "bimages" onclick = "pimages()";>Back</button>
<button id = "bimages" onclick = "fimages();">Forward</button>
<script>
mangaimage = document.getElementById("mangaim");
mangasummary = document.getElementById("ms");
readmanga = document.getElementById("rm");
aimages = document.getElementById("bimages");
</script>
</body>
這個問題與Java編程有什麼關係?爲什麼是Java標籤? –