導航:首頁 > 萬維百科 > 網頁設計圖像自動播放

網頁設計圖像自動播放

發布時間:2020-09-28 10:49:42

1、請問誰對網頁設計比較了解。想問下網頁中插入的視頻怎樣自動播放?

 <embed src="注意路徑和文件名.swf" width="寬" height="高" quality="high" wmode="transparent" autostart="true" loop="true"></embed>


autostart:自動播放 布爾值 true/false  真/假


loop:循環播放 布爾值 true/false  真/假


wmode:背景透明


...

2、網頁製作Dreamweaver有沒有圖片自動播放圖片兩邊還有向左向右的代碼 讓我直接改圖片就可以

<script>
var widths=282; //圖片寬
var heights=164;//高
var counts=4;//圖片數量
img1=new Image ();img1.src='sx/1.jpg'; //圖片的位置
img2=new Image ();img2.src='sx/2.jpg';
img3=new Image ();img3.src='sx/3.jpg';
img4=new Image ();img4.src='sx/4.jpg';
url1=new Image ();url1.src='http://www.…….net';//圖片鏈接地址
url2=new Image ();url2.src='http://www.…….net';
url3=new Image ();url3.src='http://www.…….net';
url4=new Image ();url4.src='http://www.…….net';
var nn=1;
var key=0;
function change_img()
{if(key==0){key=1;}
else if(document.all)
{document.getElementById("pic").filters[0].Apply();document.getElementById("pic").filters[0].Play(ration=2);}
eval('document.getElementById("pic").src=img'+nn+'.src');
eval('document.getElementById("url").href=url'+nn+'.src');
for (var i=1;i<=counts;i++){document.getElementById("xxjdjj"+i).className='axx';}
document.getElementById("xxjdjj"+nn).className='bxx';
nn++;if(nn>counts){nn=1;}
tt=setTimeout('change_img()',4000);} //圖片過渡時間長度
function changeimg(n){nn=n;window.clearInterval(tt);change_img();}
document.write('<style>');
document.write('.axx{padding:1px 7px;border-left:#cccccc 1px solid;}');
document.write('a.axx:link,a.axx:visited{text-decoration:none;color:#fff;line-height:12px;font:9px sans-serif;background-color:#666;}');
document.write('a.axx:active,a.axx:hover{text-decoration:none;color:#fff;line-height:12px;font:9px sans-serif;background-color:#999;}');
document.write('.bxx{padding:1px 7px;border-left:#cccccc 1px solid;}');
document.write('a.bxx:link,a.bxx:visited{text-decoration:none;color:#fff;line-height:12px;font:9px sans-serif;background-color:#D34600;}');
document.write('a.bxx:active,a.bxx:hover{text-decoration:none;color:#fff;line-height:12px;font:9px sans-serif;background-color:#D34600;}');
document.write('</style>');
document.write('<div style="width:'+widths+'px;height:'+heights+'px;overflow:hidden;text-overflow:clip;">');
document.write('<div><a id="url"><img id="pic" style="border:0px;filter:progid:dximagetransform.microsoft.wipe(gradientsize=1.0,wipestyle=4, motion=forward)" width='+widths+' height='+heights+' /></a></div>');
document.write('<div style="filter:alpha(style=1,opacity=10,finishOpacity=80);background: #888888;width:100%-2px;text-align:right;top:-12px;position:relative;margin:1px;height:12px;padding:0px;margin:0px;border:0px;">');
for(var i=1;i<counts+1;i++){document.write('<a href="javascript:changeimg('+i+');" id="xxjdjj'+i+'" class="axx" target="_self">'+i+'</a>');}
document.write('</div></div>');
change_img();
</script>
我只收藏了這個,只能從右往左滾動,如果沒有更好的答案就採納我的吧,謝謝了

3、網頁製作中圖片下面有1,2,3,4的圖片自動播放 怎麼做的 用什麼軟體做的

有兩種方式製作,第一種是現在比較主流的,就是用DW做,這個軟體是製作網頁的工具,利用javascript來做,這種方式比較方便,修改起來也比較簡單,載入速度快,並且沒有什麼限制,缺點就是展示樣式比較少,不像flash那樣多種多樣,另外一種製作方式就是利用flash這個軟體做

4、2009-3-31 網頁製作中圖片下面有1,2,3,4的圖片自動播放 怎麼做的 用什麼軟體做

做網頁用Dreamweaver做比較方便:把下面的代碼放在網頁中就可以了
<div id="marquees" width="769">
<table width="735" border="0" cellspacing="0" cellpadding="0">
<tr>

<td width="150"><table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="10"> </td>
</tr>
<tr>
<td height="110"><div align="center"><a href="prodetail.asp?id=807" class="p12_a" target="_blank"><img src="pro/20095271342583004.jpg" border="0" width="120" height="120"></a></div></td>
</tr>
<tr>
<td height="32" align="center"><a href="prodetail.asp?id=807" class="p12_a" target="_blank">卡通布藝滑鼠墊-粉</a></td>
</tr>
</table></td>

<td width="150"><table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="10"> </td>
</tr>
<tr>
<td height="110"><div align="center"><a href="prodetail.asp?id=806" class="p12_a" target="_blank"><img src="pro/20095271336402568.jpg" border="0" width="120" height="120"></a></div></td>
</tr>
<tr>
<td height="32" align="center"><a href="prodetail.asp?id=806" class="p12_a" target="_blank">卡通布藝滑鼠墊-(</a></td>
</tr>
</table></td>

<td width="150"><table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="10"> </td>
</tr>
<tr>
<td height="110"><div align="center"><a href="prodetail.asp?id=805" class="p12_a" target="_blank"><img src="pro/20095271333242345.jpg" border="0" width="120" height="120"></a></div></td>
</tr>
<tr>
<td height="32" align="center"><a href="prodetail.asp?id=805" class="p12_a" target="_blank">布藝滑鼠墊-(玫紅</a></td>
</tr>
</table></td>

<td width="150"><table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="10"> </td>
</tr>
<tr>
<td height="110"><div align="center"><a href="prodetail.asp?id=804" class="p12_a" target="_blank"><img src="pro/20095271322331576.jpg" border="0" width="120" height="120"></a></div></td>
</tr>
<tr>
<td height="32" align="center"><a href="prodetail.asp?id=804" class="p12_a" target="_blank">花布口罩-22(稍</a></td>
</tr>
</table></td>

<td width="150"><table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="10"> </td>
</tr>
<tr>
<td height="110"><div align="center"><a href="prodetail.asp?id=803" class="p12_a" target="_blank"><img src="pro/20095271146433276.jpg" border="0" width="120" height="120"></a></div></td>
</tr>
<tr>
<td height="32" align="center"><a href="prodetail.asp?id=803" class="p12_a" target="_blank">花布口罩-01(稍</a></td>
</tr>
</table></td>
</tr><tr>

<td width="150"><table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="10"> </td>
</tr>
<tr>
<td height="110"><div align="center"><a href="prodetail.asp?id=802" class="p12_a" target="_blank"><img src="pro/20095251455013881.jpg" border="0" width="120" height="120"></a></div></td>
</tr>
<tr>
<td height="32" align="center"><a href="prodetail.asp?id=802" class="p12_a" target="_blank">蕾絲邊小熊頭手機包</a></td>
</tr>
</table></td>

<td width="150"><table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="10"> </td>
</tr>
<tr>
<td height="110"><div align="center"><a href="prodetail.asp?id=801" class="p12_a" target="_blank"><img src="pro/20095251451093605.jpg" border="0" width="120" height="120"></a></div></td>
</tr>
<tr>
<td height="32" align="center"><a href="prodetail.asp?id=801" class="p12_a" target="_blank">蕾絲邊小熊頭手機包</a></td>
</tr>
</table></td>

<td width="150"><table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="10"> </td>
</tr>
<tr>
<td height="110"><div align="center"><a href="prodetail.asp?id=800" class="p12_a" target="_blank"><img src="pro/20095251444343129.jpg" border="0" width="120" height="120"></a></div></td>
</tr>
<tr>
<td height="32" align="center"><a href="prodetail.asp?id=800" class="p12_a" target="_blank">彩虹扣綉花手機包零</a></td>
</tr>
</table></td>

<td width="150"><table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="10"> </td>
</tr>
<tr>
<td height="110"><div align="center"><a href="prodetail.asp?id=799" class="p12_a" target="_blank"><img src="pro/20095251440392850.jpg" border="0" width="120" height="120"></a></div></td>
</tr>
<tr>
<td height="32" align="center"><a href="prodetail.asp?id=799" class="p12_a" target="_blank">彩虹扣綉花手機包零</a></td>
</tr>
</table></td>

<td width="150"><table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="10"> </td>
</tr>
<tr>
<td height="110"><div align="center"><a href="prodetail.asp?id=798" class="p12_a" target="_blank"><img src="pro/20095251438222697.jpg" border="0" width="120" height="120"></a></div></td>
</tr>
<tr>
<td height="32" align="center"><a href="prodetail.asp?id=798" class="p12_a" target="_blank">彩虹扣綉花手機包零</a></td>
</tr>
</table></td>
</tr><tr>

<td width="150"><table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="10"> </td>
</tr>
<tr>
<td height="110"><div align="center"><a href="prodetail.asp?id=797" class="p12_a" target="_blank"><img src="pro/20095251435042472.jpg" border="0" width="120" height="120"></a></div></td>
</tr>
<tr>
<td height="32" align="center"><a href="prodetail.asp?id=797" class="p12_a" target="_blank">彩虹扣綉花手機包零</a></td>
</tr>
</table></td>

<td width="150"><table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="10"> </td>
</tr>
<tr>
<td height="110"><div align="center"><a href="prodetail.asp?id=796" class="p12_a" target="_blank"><img src="pro/20095251429342070.jpg" border="0" width="120" height="120"></a></div></td>
</tr>
<tr>
<td height="32" align="center"><a href="prodetail.asp?id=796" class="p12_a" target="_blank">格布泰迪熊手機包(</a></td>
</tr>
</table></td>

<td width="150"><table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="10"> </td>
</tr>
<tr>
<td height="110"><div align="center"><a href="prodetail.asp?id=795" class="p12_a" target="_blank"><img src="pro/20095251426181847.jpg" border="0" width="120" height="120"></a></div></td>
</tr>
<tr>
<td height="32" align="center"><a href="prodetail.asp?id=795" class="p12_a" target="_blank">格布泰迪熊手機包(</a></td>
</tr>
</table></td>

<td width="150"><table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="10"> </td>
</tr>
<tr>
<td height="110"><div align="center"><a href="prodetail.asp?id=794" class="p12_a" target="_blank"><img src="pro/20095251424011694.jpg" border="0" width="120" height="120"></a></div></td>
</tr>
<tr>
<td height="32" align="center"><a href="prodetail.asp?id=794" class="p12_a" target="_blank">格布泰迪熊手機包(</a></td>
</tr>
</table></td>

<td width="150"><table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="10"> </td>
</tr>
<tr>
<td height="110"><div align="center"><a href="prodetail.asp?id=793" class="p12_a" target="_blank"><img src="pro/20095251421391509.jpg" border="0" width="120" height="120"></a></div></td>
</tr>
<tr>
<td height="32" align="center"><a href="prodetail.asp?id=793" class="p12_a" target="_blank">格布泰迪手機包(橫</a></td>
</tr>
</table></td>
</tr><tr>

</tr>
</table>
</div>
<script language="JavaScript">
marqueesHeight=398;
stopscroll=false;

with(marquees){
style.width=0;
style.height=marqueesHeight;
style.overflowX="visible";
style.overflowY="hidden";
noWrap=true;
onmouseover=new Function("stopscroll=true");
onmouseout=new Function("stopscroll=false");
}
document.write('<div id="templayer" style="position:absolute;z-index:1;visibility:hidden"></div>');

preTop=0; currentTop=0;

function init(){
templayer.innerHTML="";
while(templayer.offsetHeight<marqueesHeight){
templayer.innerHTML+=marquees.innerHTML;
}
marquees.innerHTML=templayer.innerHTML+templayer.innerHTML;
setInterval("scrollUp()",10);
}
document.body.onload=init;

function scrollUp(){
if(stopscroll==true) return;
preTop=marquees.scrollTop;
marquees.scrollTop+=1;
if(preTop==marquees.scrollTop){
marquees.scrollTop=templayer.offsetHeight-marqueesHeight;
marquees.scrollTop+=1;
}
}
</script>

5、電腦上自己設計的網頁不能自動播放背景音樂

我不知道你是用什麼工具設計的,我用frontpage就沒出現這樣的問題
<bgsound src=""loop="">為網頁插入背景聲音
loop為聲音播放的次數 loop=infinite 表示不停的播放

6、網頁製作如何讓視頻不自動播放,代碼如下,哪裡有問題

我最近也在找讓視頻不自動播放的方法,引用了你的autostart="false" loop="false",發現並沒有錯呀

7、製作網頁時怎麼能讓一個音樂自動播放

在裡面加一段代碼
<P><IMG height=0 loop=infinite width=0 dynsrc=音頻文件鏈接地址 start=fileopen border=0></P>

Loop,它控制循環播放的次數,當為infinite時是無限循環,為0時是不循環,其他循環次數只需鍵入相應數字即可。

8、網頁製作中圖片下面有1,2,3,4的圖片自動播放的java script 代碼。謝謝

懶人圖庫里有很多。都是免費的,下載下來後套下就行了。
http://www.lanrentuku.com/js/p1.html
額,另外不會修改套用的話,可以問我。

9、如何實現網頁設計中.swf文件的自動播放

你瀏覽器設置的原因----ie工具--internet選項--高級--多媒體--播放網頁中的動畫--打鉤

與網頁設計圖像自動播放相關的知識