myFocus slide3D v1.1.0 使用方法與下載
更新時(shí)間:2011年01月12日 23:19:46 作者:
myFocus slide3D v1.1.0 使用方法與下載,需要的朋友可以參考下。
XHTML結(jié)構(gòu):
<div id="myFocus-wrap">
<div id="myFocus">
<!--焦點(diǎn)圖盒子-->
<div class="loading">
<span>請稍候...</span></div>
<!--載入畫面-->
<ul class="pic">
<!--內(nèi)容列表-->
<li><a href="#">
<img src="images/index/focus1.jpg" alt="圖片1" /></a></li>
<li><a href="#">
<img src="images/index/focus2.jpg" alt="圖片2" /></a></li>
<li><a href="#">
<img src="images/index/focus3.jpg" alt="圖片3" /></a></li>
<li><a href="#">
<img src="images/index/focus4.jpg" alt="圖片4" /></a></li>
</ul>
</div>
</div>
引入myFocus版本js,引入js的時(shí)候注意次序,因?yàn)檫@跟頁面加載js的次序有關(guān):
<script src="js/flash/myfocus-1.0.4.full.js" type="text/javascript"></script>
<script src="js/flash/mF_slide3D.js" type="text/javascript"></script>
<link href="js/flash/mF_slide3D.css" rel="stylesheet" type="text/css" />
注:這里用到了slide3D效果 其他效果Demo可以查看官網(wǎng):
http://www.cosmissy.com/myfocus/demo.html
Javascript:
<script type="text/javascript">
var mf = myFocus; //簡稱
var param = {
id: "myFocus",
pattern: "mF_slide3D",
time: 5, //切換時(shí)間間隔
trigger: 'click', //觸發(fā)模式:click-點(diǎn)擊 mouseover-懸停
width: 960 / 1, //區(qū)域?qū)挾?
height: 465 / 1, //區(qū)域高度
txtHeight: 0 / 1, //文字層高度(0為隱藏)
//txtWidth: 62 / 1, //為字段寬度(68-中等/82-較寬/32-較窄)
auto: true, //是否自動(dòng)播放
wrap: false, //是否自帶邊框
index: 0 / 1, //開始顯示的圖片順序(0表示第一張,不能大于總數(shù))
delay: 100 / 1, //按鈕懸停(mouseover)模式下的延遲時(shí)間,單位:毫秒(0-不延遲)
//額外參數(shù)
speed: 120, //運(yùn)動(dòng)速度(數(shù)字越大,速度越慢)
direction: 'left', //運(yùn)動(dòng)方向:left top right bottom
easing: 'easeInOut', //運(yùn)動(dòng)形式: easeOut-快出慢入 easeIn-慢出快入 easeInOut-慢出慢入 linear-勻速運(yùn)動(dòng)
less: 1, //是否無縫 1-是 0-否
//chip: 10, //圖切片數(shù)量(能被圖高整除才有效)(8/10/16)
type: 4, //切片效果:1-甩頭 2-甩尾 3-凝亂 4-隨機(jī)效果
gray: 0 / 1 //非當(dāng)前圖片是否變灰 1-是 0-否
}
myFocus.set(param, true);
//屏蔽IE執(zhí)行誤差
window.onerror = function () { return true };
</script>
其他效果與文檔可以查看官網(wǎng)博客:
http://www.cosmissy.com/myfocus/demo.html
最新版本 myFocus all v1.1.0(2010.12.15更新)
演示地址:http://demo.jb51.net/js/myfocus/index.html
打包下載:http://www.dhdzp.com/jiaoben/33989.html
復(fù)制代碼 代碼如下:
<div id="myFocus-wrap">
<div id="myFocus">
<!--焦點(diǎn)圖盒子-->
<div class="loading">
<span>請稍候...</span></div>
<!--載入畫面-->
<ul class="pic">
<!--內(nèi)容列表-->
<li><a href="#">
<img src="images/index/focus1.jpg" alt="圖片1" /></a></li>
<li><a href="#">
<img src="images/index/focus2.jpg" alt="圖片2" /></a></li>
<li><a href="#">
<img src="images/index/focus3.jpg" alt="圖片3" /></a></li>
<li><a href="#">
<img src="images/index/focus4.jpg" alt="圖片4" /></a></li>
</ul>
</div>
</div>
引入myFocus版本js,引入js的時(shí)候注意次序,因?yàn)檫@跟頁面加載js的次序有關(guān):
復(fù)制代碼 代碼如下:
<script src="js/flash/myfocus-1.0.4.full.js" type="text/javascript"></script>
<script src="js/flash/mF_slide3D.js" type="text/javascript"></script>
<link href="js/flash/mF_slide3D.css" rel="stylesheet" type="text/css" />
注:這里用到了slide3D效果 其他效果Demo可以查看官網(wǎng):
http://www.cosmissy.com/myfocus/demo.html
Javascript:
復(fù)制代碼 代碼如下:
<script type="text/javascript">
var mf = myFocus; //簡稱
var param = {
id: "myFocus",
pattern: "mF_slide3D",
time: 5, //切換時(shí)間間隔
trigger: 'click', //觸發(fā)模式:click-點(diǎn)擊 mouseover-懸停
width: 960 / 1, //區(qū)域?qū)挾?
height: 465 / 1, //區(qū)域高度
txtHeight: 0 / 1, //文字層高度(0為隱藏)
//txtWidth: 62 / 1, //為字段寬度(68-中等/82-較寬/32-較窄)
auto: true, //是否自動(dòng)播放
wrap: false, //是否自帶邊框
index: 0 / 1, //開始顯示的圖片順序(0表示第一張,不能大于總數(shù))
delay: 100 / 1, //按鈕懸停(mouseover)模式下的延遲時(shí)間,單位:毫秒(0-不延遲)
//額外參數(shù)
speed: 120, //運(yùn)動(dòng)速度(數(shù)字越大,速度越慢)
direction: 'left', //運(yùn)動(dòng)方向:left top right bottom
easing: 'easeInOut', //運(yùn)動(dòng)形式: easeOut-快出慢入 easeIn-慢出快入 easeInOut-慢出慢入 linear-勻速運(yùn)動(dòng)
less: 1, //是否無縫 1-是 0-否
//chip: 10, //圖切片數(shù)量(能被圖高整除才有效)(8/10/16)
type: 4, //切片效果:1-甩頭 2-甩尾 3-凝亂 4-隨機(jī)效果
gray: 0 / 1 //非當(dāng)前圖片是否變灰 1-是 0-否
}
myFocus.set(param, true);
//屏蔽IE執(zhí)行誤差
window.onerror = function () { return true };
</script>
其他效果與文檔可以查看官網(wǎng)博客:
http://www.cosmissy.com/myfocus/demo.html
最新版本 myFocus all v1.1.0(2010.12.15更新)
演示地址:http://demo.jb51.net/js/myfocus/index.html
打包下載:http://www.dhdzp.com/jiaoben/33989.html
您可能感興趣的文章:
- JS基于myFocus庫實(shí)現(xiàn)各種功能的tab選項(xiàng)卡切換效果
- myFocus 一個(gè)KindEditor的焦點(diǎn)圖插件
- js實(shí)現(xiàn)支持手機(jī)滑動(dòng)切換的輪播圖片效果實(shí)例
- js實(shí)現(xiàn)點(diǎn)擊左右按鈕輪播圖片效果實(shí)例
- zepto中使用swipe.js制作輪播圖附swipeUp,swipeDown不起效果問題
- 原生js實(shí)現(xiàn)移動(dòng)開發(fā)輪播圖、相冊滑動(dòng)特效
- JS實(shí)現(xiàn)左右無縫輪播圖代碼
- 簡單的JS輪播圖代碼
- js 基礎(chǔ)篇必看(點(diǎn)擊事件輪播圖的簡單實(shí)現(xiàn))
- js基于myFocus實(shí)現(xiàn)輪播圖效果
相關(guān)文章
js函數(shù)定時(shí)器實(shí)現(xiàn)定時(shí)讀取系統(tǒng)實(shí)時(shí)連接數(shù)
這篇文章主要介紹了使用js函數(shù)定時(shí)器實(shí)現(xiàn)定時(shí)讀取系統(tǒng)實(shí)時(shí)連接數(shù),需要的朋友可以參考下2014-04-04
javascript實(shí)現(xiàn)圖片跟隨鼠標(biāo)移動(dòng)效果的方法
這篇文章主要介紹了javascript實(shí)現(xiàn)圖片跟隨鼠標(biāo)移動(dòng)效果的方法,涉及javascript鼠標(biāo)事件及頁面元素的相關(guān)操作技巧,需要的朋友可以參考下2015-05-05
微信小程序自定義select下拉選項(xiàng)框組件的實(shí)現(xiàn)代碼
微信小程序中沒有select下拉選項(xiàng)框,所以只有自定義。這篇文章主要介紹了微信小程序自定義select下拉選項(xiàng)框組件,需要的朋友可以參考下2018-08-08
用jscript實(shí)現(xiàn)列出安裝的軟件列表
用jscript實(shí)現(xiàn)列出安裝的軟件列表...2007-06-06
js實(shí)現(xiàn)一個(gè)簡單的數(shù)字時(shí)鐘效果
本文主要介紹了js實(shí)現(xiàn)一個(gè)簡單的數(shù)字時(shí)鐘效果的示例代碼。具有很好的參考價(jià)值,下面跟著小編一起來看下吧2017-03-03
JS實(shí)現(xiàn)checkbox互斥(單選)功能示例
這篇文章主要介紹了JS實(shí)現(xiàn)checkbox互斥(單選)功能,涉及JavaScript針對頁面元素屬性的判斷及動(dòng)態(tài)操作相關(guān)實(shí)現(xiàn)技巧,需要的朋友可以參考下2019-05-05

