❶ 怎麼保存網頁輪播的圖片

可到Internet緩存文件夾找出。細節如下:

1.控制面板--Internet選項--安全--取消勾取「啟用保護模式選項」

退出IE後,再重新開啟。


4. 選取其中圖片格式的文件,復制到其他文件夾。

剛才網頁中的圖片就全在這文件夾,可篩選了。

《注》以上不適用於win10的Edge瀏覽器

❷ 到哪裡可以找到網頁中輪播圖片的代碼

圖片輪播可以用腳本

也可以用flash

你可以搜索下圖片輪播特效

會有很多的

❸ 如何在網頁上添加輪播圖片

1.程序說明
原理就是通過不斷設置滑動對象的left(水平切換)和top(垂直切換)來實現圖片切換的動態效果。
首先需要一個容器,程序會自動設置容器overflow為hidden,如果不是相對或絕對定位會同時設置position為relative,
滑動對象會設置為絕對定位:
var p = CurrentStyle(this._container).position;
p == "relative" || p == "absolute" || (this._container.style.position = "relative");
this._container.style.overflow = "hidden";
this._slider.style.position = "absolute";

如果沒有設置Change切換參數屬性,會自動根據滑動對象獲取:
this.Change = this.options.Change ? this.options.Change :
this._slider[bVertical ? "offsetHeight" : "offsetWidth"] / this._count;

執行Run方法就會開始進入切換,其中有一個可選參數用來重新設置要切換的圖片索引:
index == undefined && (index = this.Index);
index < 0 && (index = this._count - 1) || index >= this._count && (index = 0);
== undefined && (index = this.Index);
index < 0 && (index = this._count - 1) || index >= this._count && (index = 0);
之後就到設置使用tween緩動時需要的參數了,
包括_target(目標值)、_t(時間)、_b(初始值)和_c(變化量):
this._target = -Math.abs(this.Change) * (this.Index = index);
this._t = 0;
this._b = parseInt(CurrentStyle(this._slider)[this.options.Vertical ? "top" : "left"]);
this._c = this._target - this._b;
還有Duration(持續時間)是自定義屬性。
參數設置好後就執行Move程序開始移動了。
裡面很簡單,首先判斷_c是否有值(等於0表示不需要移動)和_t是否到達Duration,
未滿足條件就繼續移動,否則直接移動到目標值並進行下一次切換:
if (this._c && this._t < this.Duration) {
this.MoveTo(Math.round(this.Tween(this._t++, this._b, this._c, this.Duration)));
this._timer = setTimeout(Bind(this, this.Move), this.Time);
}else{
this.MoveTo(this._target);
this.Auto && (this._timer = setTimeout(Bind(this, this.Next), this.Pause));
}
使用說明
實例化需要3個參數,分別是容器對象,滑動對象和切換數量,之後可以直接執行Run方法運行:
new SlideTrans("idContainer", "idSlider", 3).Run();
還有以下可選屬性:
Vertical: true,//是否垂直方向(方向不能改)
Auto: true,//是否自動
Change: 0,//改變數
Duration: 50,//滑動持續時間
Time: 10,//滑動延時
Pause: 2000,//停頓時間(Auto為true時有效)
onStart: function(){},//開始轉換時執行
onFinish: function(){},//完成轉換時執行
Tween: Tween.Quart.easeOut//tween運算元
其中Vertical初始化後就不能修改,Tween運算元可參照這里的緩動效果選擇(實例中選了其中3個)。
還有提供了以下方法:
Next: 切換下一個
Previous: 切換上一個
Stop: 停止自動切換
還有上面說到的Run
程序代碼:
var SlideTrans = function(container, slider, count, options) {
this._slider = $(slider);
this._container = $(container);//容器對象
this._timer = null;//定時器
this._count = Math.abs(count);//切換數量
this._target = 0;//目標值
this._t = this._b = this._c = 0;//tween參數

this.Index = 0;//當前索引

this.SetOptions(options);

this.Auto = !!this.options.Auto;
this.Duration = Math.abs(this.options.Duration);
this.Time = Math.abs(this.options.Time);
this.Pause = Math.abs(this.options.Pause);
this.Tween = this.options.Tween;
this.onStart = this.options.onStart;
this.onFinish = this.options.onFinish;

var bVertical = !!this.options.Vertical;
this._css = bVertical ? "top" : "left";//方向

//樣式設置
var p = CurrentStyle(this._container).position;
p == "relative" || p == "absolute" || (this._container.style.position = "relative");
this._container.style.overflow = "hidden";
this._slider.style.position = "absolute";

this.Change = this.options.Change ? this.options.Change :
this._slider[bVertical ? "offsetHeight" : "offsetWidth"] / this._count;
};
SlideTrans.prototype = {
//設置默認屬性
SetOptions: function(options) {
this.options = {//默認值
Vertical: true,//是否垂直方向(方向不能改)
Auto: true,//是否自動
Change: 0,//改變數
Duration: 50,//滑動持續時間
Time: 10,//滑動延時
Pause: 2000,//停頓時間(Auto為true時有效)
onStart: function(){},//開始轉換時執行
onFinish: function(){},//完成轉換時執行
Tween: Tween.Quart.easeOut//tween運算元
};
Extend(this.options, options || {});
},
//開始切換
Run: function(index) {
//修正index
index == undefined && (index = this.Index);
index < 0 && (index = this._count - 1) || index >= this._count && (index = 0);
//設置參數
this._target = -Math.abs(this.Change) * (this.Index = index);
this._t = 0;
this._b = parseInt(CurrentStyle(this._slider)[this.options.Vertical ? "top" : "left"]);
this._c = this._target - this._b;

this.onStart();
this.Move();
},
//移動
Move: function() {
clearTimeout(this._timer);
//未到達目標繼續移動否則進行下一次滑動
if (this._c && this._t < this.Duration) {
this.MoveTo(Math.round(this.Tween(this._t++, this._b, this._c, this.Duration)));
this._timer = setTimeout(Bind(this, this.Move), this.Time);
}else{
this.MoveTo(this._target);
this.Auto && (this._timer = setTimeout(Bind(this, this.Next), this.Pause));
}
},
//移動到
MoveTo: function(i) {
this._slider.style[this._css] = i + "px";
},
//下一個
Next: function() {
this.Run(++this.Index);
},
//上一個
Previous: function() {
this.Run(--this.Index);
},
//停止
Stop: function() {
clearTimeout(this._timer); this.MoveTo(this._target);
}
};

❹ 網頁設計中如何添加焦點切換輪播圖呢

參考代碼,還有一個js文件,留下郵箱發給你

html"><!DOCTYPEHTML>
<htmllang="en-US">
<head>
<metacharset="UTF-8">
<title>jQuery圖片放大變小切換代碼</title>
<scripttype="text/javascript"src="js/jquery.js"></script>
<scripttype="text/javascript"src="js/jquery.banner.js"></script>
<styletype="text/css">
*{margin:0;padding:0;list-style-type:none;}
a,img{border:0;}
body{font:12px/180%Arial,Helvetica,sans-serif,"新宋體";}
.banner{width:100%;overflow:hidden;height:470px;position:relative}
.banList{position:absolute;left:50%;margin-left:-960px;height:470px}
.banListli{height:470px;opacity:0;position:absolute;transform:scale(0);transition:transform0.5sease0s,opacity1.5sease0s;z-index:1;}
.banListli.active{opacity:1;transform:scale(1);z-index:2;}
.fomW{position:absolute;bottom:20px;left:50%;height:20px;z-index:9;width:1000px;margin-left:-500px}
.jsNav{text-align:center;}
.jsNava{display:inline-block;background:#fff;width:15px;height:15px;border-radius:50%;margin:05px;}
.jsNava.current{background:#fc8f0f;cursor:pointer}
</style>
</head>
<body>
<divclass="banner">
<ulclass="banList">
<liclass="active"><ahref="http://sc.chinaz.com/"><imgsrc="images/img1.jpg"/></a></li>
<li><ahref="http://sc.chinaz.com/"><imgsrc="images/img2.jpg"/></a></li>
<li><ahref="http://sc.chinaz.com/"><imgsrc="images/img3.jpg"/></a></li>
</ul>
<divclass="fomW">
<divclass="jsNav">
<ahref="javascript:;"class="triggercurrent"></a>
<ahref="javascript:;"class="trigger"></a>
<ahref="javascript:;"class="trigger"></a>
</div>
</div>
</div>

<scripttype="text/javascript">
$(function(){
$(".banner").swBanner();
});
</script>
</body>
</html>

❺ html中圖片輪播怎麼弄


一、數字鍵控制代碼:
<divstyle="position:relative;top:-50px;left:240px;">
<ahref="javascript:show(1)"><spanid="I1"style="width:18px;text-align:left;background:gray">1</span></a>
<ahref="javascript:show(2)"><spanid="I2"style="width:18px;text-align:left;background-color:gray">2</span></a>
<ahref="javascript:show(3)"><spanid="I3"style="width:18px;text-align:left;background-color:gray">3</span></a>
<ahref="javascript:show(4)"><spanid="I4"style="width:18px;text-align:left;background-color:gray">4</span></a>
<ahref="javascript:show(5)"><spanid="I5"style="width:18px;text-align:left;background-color:gray">5</span></a>
<ahref="javascript:show(6)"><spanid="I6"style="width:18px;text-align:left;background-color:gray">6</span></a></div>
<scriptlanguage="javaScript">
varnowIndex=1;
varmaxIndex=6;
functionshow(index)
{
if(Number(index)){
clearTimeout(theTimer);
nowIndex=index;
}
for(vari=1;i<(maxIndex+1);i++){
if(i==nowIndex)
{document.getElementById('pic'+nowIndex).style.display='';
document.getElementById('I'+nowIndex).style.backgroundColor='red';}
else
{document.getElementById('pic'+i).style.display='none';
document.getElementById('I'+i).style.backgroundColor='gray';}
}{
if(nowIndex==maxIndex)
nowIndex=1;
else
nowIndex++;
}
theTimer=setTimeout('show()',3000);
}
</script>
</div>
二、圖片自動播放:
<divid="butong_net_left"style="overflow:hidden;width:1000px;">
<tablecellpadding="0"cellspacing="0"border="0">
<tr><tdid="butong_net_left1"valign="top"align="center">
<tablecellpadding="2"cellspacing="0"border="0">
<tralign="center">

❻ 網頁怎樣做輪播圖

網頁設計中讓圖片輪播,需要用到的JS和比較好的div+css布局意識,主要還是需要了解left,top在css中的意思

❼ 請問怎麼在製作網頁上插入圖片輪播

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>pic player</title>
<script type="text/javascript" src="http://img.jb51.net/jslib/jquery/jquery-1.2.6.js"></script>
<script type="text/javascript" src="http://img.jb51.net/jslib/jquery/tween.js"></script>
</head>
<style type="text/css">
img{border:0;}
</style>
<body>
<div id="picplayer" style="position:relative;overflow:hidden;width:300px;height:300px;clear:none;border:solid 1px #ccc;">
there is a pic-player
</div>
<script>
var p = $('#picplayer');
var pics1 = [{url:'http://img.jb51.net/online/picPlayer/1.jpg',link:'http://www.jb51.net/#',time:5000},{url:'http://img.jb51.net/online/picPlayer/2.jpg',link:'http://www.jb51.net/#',time:4000},{url:'http://img.jb51.net/online/picPlayer/3.jpg',link:'http://www.jb51.net',time:6000},{url:'http://img.jb51.net/online/picPlayer/2.jpg',link:'http://www.jb51.net',time:6000},{url:'http://img.jb51.net/online/picPlayer/1.jpg',link:'http://www.jb51.net',time:6000}];
initPicPlayer(pics1,p.css('width').split('px')[0],p.css('height').split('px')[0]);
//
//
function initPicPlayer(pics,w,h)
{
//選中的圖片
var selectedItem;
//選中的按鈕
var selectedBtn;
//自動播放的id
var playID;
//選中圖片的索引
var selectedIndex;
//容器
var p = $('#picplayer');
p.text('');
p.append('<div id="piccontent"></div>');
var c = $('#piccontent');
for(var i=0;i<pics.length;i++)
{
//添加圖片到容器中
c.append('<a href="'+pics[i].link+'" target="_blank"><img id="picitem'+i+'" style="display: none;z-index:'+i+'" src="'+pics[i].url+'" /></a>');
}
//按鈕容器,絕對定位在右下角
p.append('<div id="picbtnHolder" style="position:absolute;top:'+(h-25)+'px;width:'+w+'px;height:20px;z-index:10000;"></div>');
//
var btnHolder = $('#picbtnHolder');
btnHolder.append('<div id="picbtns" style="float:right; padding-right:1px;"></div>');
var btns = $('#picbtns');
//
for(var i=0;i<pics.length;i++)
{
//增加圖片對應的按鈕
btns.append('<span id="picbtn'+i+'" style="cursor:pointer; border:solid 1px #ccc;background-color:#eee; display:inline-block;"> '+(i+1)+' </span> ');
$('#picbtn'+i).data('index',i);
$('#picbtn'+i).click(
function(event)
{
if(selectedItem.attr('src') == $('#picitem'+$(this).data('index')).attr('src'))
{
return;
}
setSelectedItem($(this).data('index'));
}
);
}
btns.append(' ');
///
setSelectedItem(0);
//顯示指定的圖片index
function setSelectedItem(index)
{
selectedIndex = index;
clearInterval(playID);
//alert(index);
if(selectedItem)selectedItem.fadeOut('fast');
selectedItem = $('#picitem'+index);
selectedItem.fadeIn('slow');
//
if(selectedBtn)
{
selectedBtn.css('backgroundColor','#eee');
selectedBtn.css('color','#000');
}
selectedBtn = $('#picbtn'+index);
selectedBtn.css('backgroundColor','#000');
selectedBtn.css('color','#fff');
//自動播放
playID = setInterval(function()
{
var index = selectedIndex+1;
if(index > pics.length-1)index=0;
setSelectedItem(index);
},pics[index].time);
}
}

</script>
</body>
</html>

詳細出處參考:http://www.jb51.net/article/17008.htm

❽ HTML首頁怎麼加圖片輪播

可以通過輸入代碼來操作。

❾ 求網頁中圖片輪播的代碼

兩個文件,加我HI吧,我發給你!