① 怎樣在dreamweaver中讓圖片自動播放
給你一個簡單的,將代碼放到<body>區域就可以了.<style type=text/css>
#divScroller1 { HEIGHT: 101px; OVERFLOW: hidden; POSITION: absolute; WIDTH: 146px; Z-INDEX: 9; visbility: visible}
.dynPage { COLOR: black; FONT-FAMILY: arial,helvetica,sans-serif; FONT-SIZE: 12px; LEFT: 0px; POSITION: absolute; TOP: 0px; VISIBILITY: hidden; Z-INDEX: 10}
</style>
<script language=JavaScript type=text/javascript>
function lib_bwcheck(){ //Browsercheck (needed)
this.ver=navigator.appVersion
this.agent=navigator.userAgent
this.dom=document.getElementById?1:0
this.opera5=this.agent.indexOf("Opera 5")>-1
this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0;
this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
this.ie=this.ie4||this.ie5||this.ie6
this.mac=this.agent.indexOf("Mac")>-1
this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0;
this.ns4=(document.layers && !this.dom)?1:0;
this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)
return this
}
var bw=new lib_bwcheck()/*** variables to configure... ***/var numScrollPages = 4 //Set the number of pages (layers) here.
var transitionOut = 1; //The 'out' effect... 0= no effect, 1= fade
var transitionIn = 1; //The 'in' effect... 0= no effect, 1= fade, 2= slide
var slideAcceleration = 0.2; //If you use the slide animation, set this somewhere between 0 and 1.if(document.layers){ //NS4 resize fix...
scrX= innerWidth; scrY= innerHeight;
onresize= function(){if(scrX!= innerWidth || scrY!= innerHeight){history.go(0)} }
}
function scrollerobj(obj,nest){
nest = (!nest)?"":'document.'+nest+'.'
this.elm = bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):document.getElementById(obj)
this.css = bw.ns4?this.elm:this.elm.style
this.doc = bw.ns4?this.elm.document:document
this.obj = obj+'scrollerobj'; eval(this.obj+'=this')
this.x = (bw.ns4||bw.opera5)?this.css.left:this.elm.offsetLeft
this.y = (bw.ns4||bw.opera5)?this.css.top:this.elm.offsetTop
this.w = (bw.ie4||bw.ie5||bw.ie6||bw.ns6)?this.elm.offsetWidth:bw.ns4?this.elm.clip.width:bw.opera5?this.css.pixelWidth:0
this.h = (bw.ie4||bw.ie5||bw.ie6||bw.ns6)?this.elm.offsetHeight:bw.ns4?this.elm.clip.height:bw.opera5?this.css.pixelHeight:0
}
//object methods...
scrollerobj.prototype.moveTo = function(x,y){
if(x!=null){this.x=x; this.css.left=x}
if(y!=null){this.y=y; this.css.top=y}
}
scrollerobj.prototype.moveBy = function(x,y){this.moveTo(this.x+x,this.y+y)}
scrollerobj.prototype.hideIt = function(){this.css.visibility='hidden'}
scrollerobj.prototype.showIt = function(){this.css.visibility='visible'}/****************************************************************/var onlineormyefile = 1;
var activePage = null;
var busy = 0;
function activate(num){
if (activePage!=pages[num] && !busy){
busy = 1;
if (transitionOut==0 || !bw.opacity){ activePage.hideIt(); activateContinue(num); }
else if (transitionOut==1) activePage.blend('hidden', 'activateContinue('+num+')');
}
}
function activateContinue(num){
busy = 1;
activePage = pages[num];
activePage.moveTo(0,0);
if (transitionIn==0 || !bw.opacity){ activePage.showIt(); busy=0; }
else if (transitionIn==1) {
activePage.blend('visible', 'busy=0');
}
else if (transitionIn==3) { activePage.slide(0, slideAcceleration, 40, 'busy=0'); }
//==== 調用變換過程====
startshow(num)
}//============ 變換設置 ==========
function startshow(num){
if (num == 1)
{ num = 2; }
else
if (num == 2)
{ num = 3; }
else
if (num == 3)
{ num = 4; }
else
if (num == 4)
{ num = 1; }
setTimeout('activate('+num+')',1000);
}scrollerobj.prototype.blend= function(vis, fn){
if (bw.ie5||bw.ie6 && !bw.mac) {
if (vis=='visible') this.css.filter= 'blendTrans(ration=0.9)';
else this.css.filter= 'blendTrans(ration=0.6)';
this.elm.onfilterchange = function(){ eval(fn); };
this.elm.filters.blendTrans.apply();
this.css.visibility= vis;
this.elm.filters.blendTrans.play();
}
else if (bw.ns6 || bw.ie&&!bw.mac){
this.css.visibility= 'visible';
vis=='visible' ? this.fadeTo(100, 7, 40, fn) : this.fadeTo(0, 9, 40, fn);
}
else {
this.css.visibility= vis;
eval(fn);
}
};
var pageslidefadeLoaded = 0;
function initPageSlideFade(){
scroller1 = new scrollerobj('divScroller1');
pages = new Array();
pages[0] = null;
for (var i=1; i<=numScrollPages; i++){
pages[i] = new scrollerobj('dynPage'+i, 'divScroller1');
pages[i].moveTo(0,0);
}
bw.opacity = ( bw.ie && !bw.ie4 && navigator.userAgent.indexOf('Windows')>-1 ) || bw.ns6
if (bw.ie5||bw.ie6 && !bw.mac) pages[1].css.filter= 'blendTrans(ration=0.6)'; // Loads the windows 9.x filters mole.
activateContinue(1); //if (bw.ie) for(var i=0;i<document.links.length;i++) document.links[i].onfocus=document.links[i].blur;
pageslidefadeLoaded = 1;
}
//if the browser is ok, the script is started onload..
if(bw.bw && !pageslidefadeLoaded) onload = initPageSlideFade;
</script>
//修改下面的圖像地址和大小
<div id=divScroller1>
<div class=dynPage id=dynPage1><img src="../../image/11.gif" width="146" height="101"></div>
<div class=dynPage id=dynPage2><img src="../../image/12s.gif" width="146" height="101"></div>
<div class=dynPage id=dynPage3><img src="../../image/13.gif" width="146" height="101"></div>
<div class=dynPage id=dynPage4><img src="../../image/15.gif" width="146" height="101"></div>
</div>
② 在DW中插入背景音樂怎麼讓它循環播放
1、首先打開電腦上的DW軟體,點擊新建菜單下的「html」,新建一個網頁空白界面。
③ dreamweaver如何實現讓幾張照片自動播放,當滑鼠點擊時也可以播放!
dreamweaver如何實現圖片滑鼠點擊自動播放操作如下:
<html>
<styletype="text/css">
img{
width:200px;
height:200px;
}
</style>
<scriptlanguage="JavaScript"type="text/javascript">
functionfn(n){
varnextn;
if(n==3){nextn=1;}
else{nextn=n+1;}
document.getElementById("img"+n).style.display="none";
document.getElementById("img"+nextn).style.display="block";
}
</script>
<imgid="img1"src="0.jpg"onclick="fn(1)"style="display:block;"/>
<imgid="img2"src="1.jpg"onclick="fn(2)"style="display:none;"/>
<imgid="img3"src="2.jpg"onclick="fn(3)"style="display:none;"/>
</html>
將圖片換成所需要插入圖片的真實路徑即可。
④ dw怎麼做圖片輪播
dw做圖片輪播步驟如下:
1、首先打開你的dw,按快捷鍵ctrl+n創建一個新的網頁。
⑤ 怎麼在dreamweaver里實現圖片播放
1、打開dw,先將頁面背景顏色改為黑色,滿足對美觀的要求,可以設置為自己喜歡的顏色,點擊頁面屬性即可更改背景顏色。
⑥ dw圖片查看器怎麼設置自動播放
把代碼貼出來,,不然不好說
⑦ DW裡面想做圖片自動輪播切換的效果,求教!!
用flash做好輪切效果夠 ,在DW中插入-媒體-flash,即可
⑧ dw中怎麼樣才能讓圖片自動播放
網上下載圖片滾動代碼,或者做個FLASH,可以聯系我,我遠程教你
⑨ DW里怎麼做圖片自動播放
是做個簡單的相冊?
漂亮的Flash動畫人人喜歡,不過製作起來的確有一些技術難度。你知道嗎,Dreamweaver作為一個網頁製作工具,還可以創建好玩的Flash相冊。
插入Flash元素
運行Dreamweaver,點擊菜單「插入」→「媒體」→「圖像查看器」,系統會自動彈出「保存Flash元素」對話框,鍵入保存的文件名,例如:「Photo.swf」,點擊「保存」按鈕完成。
現在一個Flash元素就被插入網頁中了,為滿足實際需要,下面我們需要進行簡單的參數設置。滑鼠點擊編輯窗口中的「Flash元素」,在屬性面板中重新設置動畫的寬、高值為實際所需。
Flash元素參數設置
下面我們還需要設置「Flash元素」的參數,為Flash相冊指定調用的圖片、設置相冊外觀。點擊菜單「窗口」→「標簽檢查器」,現在我們可以Dreamweaver右欄中看到一個「Flash元素」面板。
這里可供選擇的參數很多,下面我們主要講幾個基本的設置值。
imageURLs,該值用於設置調用的圖片位置,我們一般將調用的圖片放在同保存的「Photo.swf」文件同一文件夾為佳。滑鼠點擊imageURLs項目的值,系統自動在參數右側增加「編輯數組值」按鈕,點擊進入。
進入「編輯"imageURLs"數組對話框」,系統默認內置了三組數值,我們可以點擊「+」號增加新的數值,每一組的數值同需要調用的圖片文件名一一對應即可。
其它「Flash元素」的參數設置方法基本同上,下面我們列一下幾個重要的參數:
imageLinks,設置點擊每張圖片後訪問的網址。
showControls,定義是否顯示Flash相冊的播放控制按鈕。
slideAutoPlay,定義Flash相冊是否自動播放。
transitionsType:定義Flash相冊過渡效果的類型,默認為隨機效果:Random。
title、titleColor、titleFont、titleSize:添加自定義的相冊標題、顏色、字體、大小等值。
frameShow、frameThickness、frameColor:用於定義Flash相冊是否有邊框及邊框寬度、顏色值。
註:Dreamweaver會在保存相冊的文件夾中自動生成一個Scripts文件夾,上傳網頁時要記住一起上傳。
⑩ DW里怎麼做圖片自動播放
漂亮的Flash動畫人人喜歡,不過製作起來的確有一些技術難度。你知道嗎,Dreamweaver作為一個網頁製作工具,還可以創建好玩的Flash相冊。 插入Flash元素 運行Dreamweaver,點擊菜單「插入」→「媒體」→「圖像查看器」,系統會自動彈出「保存Flash元素」對話框,鍵入保存的文件名,例如:「Photo.swf」,點擊「保存」按鈕完成。 現在一個Flash元素就被插入網頁中了,為滿足實際需要,下面我們需要進行簡單的參數設置。滑鼠點擊編輯窗口中的「Flash元素」,在屬性面板中重新設置動畫的寬、高值為實際所需。 Flash元素參數設置 下面我們還需要設置「Flash元素」的參數,為Flash相冊指定調用的圖片、設置相冊外觀。點擊菜單「窗口」→「標簽檢查器」,現在我們可以Dreamweaver右欄中看到一個「Flash元素」面板。 這里可供選擇的參數很多,下面我們主要講幾個基本的設置值。 imageURLs,該值用於設置調用的圖片位置,我們一般將調用的圖片放在同保存的「Photo.swf」文件同一文件夾為佳。滑鼠點擊imageURLs項目的值,系統自動在參數右側增加「編輯數組值」按鈕,點擊進入。 進入「編輯"imageURLs"數組對話框」,系統默認內置了三組數值,我們可以點擊「+」號增加新的數值,每一組的數值同需要調用的圖片文件名一一對應即可。 其它「Flash元素」的參數設置方法基本同上,下面我們列一下幾個重要的參數: imageLinks,設置點擊每張圖片後訪問的網址。 showControls,定義是否顯示Flash相冊的播放控制按鈕。 slideAutoPlay,定義Flash相冊是否自動播放。 transitionsType:定義Flash相冊過渡效果的類型,默認為隨機效果:Random。 title、titleColor、titleFont、titleSize:添加自定義的相冊標題、顏色、字體、大小等值。 frameShow、frameThickness、frameColor:用於定義Flash相冊是否有邊框及邊框寬度、顏色值。 註:Dreamweaver會在保存相冊的文件夾中自動生成一個Scripts文件夾,上傳網頁時要記住一起上傳。