1、網頁設計、這個圖里那個播放按鈕下,是GIF動畫,還是小視頻,要怎麼實現?
都可以啊,你想它是什麼就是什麼,可以用js彈出層來做,在彈出層上放東西。
2、網頁設計 圖片輪播的按鈕問題 大家幫忙看看(詳細加分)
按你的這思路改的,不過一般情況不會這么去寫, id="img1" id="img2" 這兩個屬性可以去了,<DIV>裡面添加一個屬性 id="images"
<html>
<head>
<title>Untitled</title>
<style>
img{display:none;}
</style>
<script>
var index=1;
var timer;
var ImageList;
function switchImg(id){
/*
document.getElementById("img"+index).style.display="none";
if(index<2){index++;}
else{index=1;}
document.getElementById("img"+index).style.display="block";
*/
ImageList = document.getElementById(id).getElementsByTagName('img');
if(ImageList){
timer = window.setInterval(changeImage,1000);
}
}
function changeImage(){
index = ++index >= ImageList.length ? 0 : index;
for(var i = 0; i < ImageList.length; i++){
ImageList[i].style.display = 'none';
}
ImageList[index].style.display = 'block';
}
</script>
</head>
<body onLoad="switchImg('images')">
<div id="images" style="border:1px solid black;width:300px;height:100px;">
<img src="hang.jpg" width="15" height="30" id="img1">
<img src="beijing111.jpg" width="20" height="30" id="img2">
</div>
</body>
</html>
3、JavaScript設計一個網頁,上面顯示一個按鈕,按鈕點擊,下面實現一個小九九表輸出?
給你一個最簡單的例子:
<%
'取傳遞參數
ms=request.QueryString("ms")
'根據參數執行不專同的屬代碼
select case ms
case 1
response.write "abc"
case 2
response.
4、網頁設計單選按鈕問題
①有啥不同?
從頁面上看:"<input type = "radio" name = "sex" value = "man" />男" 會顯示一個單選按鈕和旁邊一個「男」 ;<input type = "radio" name = "sex" /> 只會顯示一個單選按鈕
②加不加value又有什麼區別??
name屬性相同時,只能選中一個單選按鈕,並且把value值傳給另外一個頁面。不加value 則表示傳出去的值為空。
祝你好運!
5、怎樣在網頁中設計一個按鈕,點下後在當前網頁出現隱藏內容.
用js或者jquery控制隱藏顯示就行了,很簡單的,就一段代碼的事情,不會你q我
<!DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<htmlxmlns="http://www.w3.org/1999/xhtml">
<head><title>
無標題頁
</title>
<scripttype="text/javascript"src="javascript/jquery-1.7.2.min.js"></script>
<scripttype="text/javascript">
$(function(){
$("#Button1").click(function(){
$("#flash").slideDown(function(){$("#Button1").hide();});
});
});
</script>
</head>
<body>
<inputid="Button1"type="button"value="button" />
<divid="flash"style=" width:100px; height:100px; border:1px solid #ff0000; display:none;"></div>
</body>
</html>
給你附上代碼,jquery庫你去下一個,放到同一個路徑就行了,這個沒Jquery庫不能運行的
6、急!網頁製作中怎樣設置點擊按鈕出現一個模塊,再點擊又隱藏的,例如聽歌的時候點擊歌詞下方就會有歌詞面板
用jQuery吧,比較簡單
首先你先下個jquery.js,然後在文件中引用
<script src='jquery.js'></script> (放在/head前)
<div><a href="#" id="song">查看歌詞</a></div>
<div class="geci" style="display:none;" id="words">歌詞歌詞</div>
<script>
$(function(){
$('#song').click(function(){
$('#words').toggle();
})
})
</script>
這樣就可以了,希望可以幫到你!
7、網頁設計,如何製作在點擊一個按鈕之後,才在一個div框中顯示文字圖片
對按鈕添加個onclick事件就行了,下面是個案例。
<div id="box"></div>8、為什麼網頁設計時提交按鈕顯示兩個,怎樣保留一個
應該是你寫代碼的時候寫了兩個提交按鈕,你刪除代碼中的一個提交按鈕即可。