效果圖如下:
頁面代碼:
>
body,div,dl,dt,dd ,ul,li,h3{margin:0;padding:0;}
body{color:#333;font:12px/1.5 arial;}
li {list-style:none;}
a :link,a:visited,a:active{color:#333;text-decoration:none;}
a:hover{color:#F30;}
img{border:none;}
# box{width:740px;margin:10px auto;}
#container{position:relative;height:232px;background:#FCFCFC;}
#container .項目{位置:絕對;頂部:0;左:: 0;寬度:492px;高度:230px;溢出:隱藏;背景:#FAFAFA;邊框:1px實體#ddd;z-index:1;不透明度:1;}
#container .item .pic{float: left;width:210px;height:200px;display:inline;margin:15px;}
#container .item .pic img{width:210px;height:200px;vertical -align:top;#s .item .txt{float:left;width:250px;margin-top:12px;}
#container .item .txt dt{font-size:14px;font-重量:700;}
#container . item .txt .info{顏色:#999;}
#container .item .txt dd{高度:24px;行高:24px;}
#container .item .txt dd span{float:left;
#container .item .txt .star{position:relative;float:left;height:12px;width:69px;margin:6px 0 0 5px;}
#container .item .starstar . position:absolute;top:0;left:0;height:12px;width:69px;z-index:2;background:url(http://js.fgm. cc/learn/lesson10/img/youa/star. png) 重複x 滾動左上透明;}
#container .item .txt .star .star_grey{background:url(http://js.fgm.cc /learn/lesson10/img/youa/star.png) 重複x 向左捲動-15px 透明;高度:12px;寬度:69px;}
#container .item .txt .pink,#container .item .txt .藍色,#container .item .txt .green{顏色: #FFF;font-weight:700;margin-right:2px;背景:#F66B5B;padding:0 5px;}
#container .item .txt .blue {背景:#96BAE7;}
#container . item .txt .green{背景:#9CDBC3;}
#container .item .txt .comment{寬度:232px;高度:99px;邊距頂部:10px ;背景:#FFF;邊框:1px 實心#EAEAEA; }
#container .item .txt .comment h3{字體大小:12px;字體粗細:400;高度:24px;行高:24px;邊框-bottom:1pxsolid #E9E9E9;padding:0 10pxx; #container .item .txt .comment .comment_list{寬度:220px;高度:60px;溢出:隱藏;邊距:8px 0 0 10px;}
#container .item .txt .comment .comment_list ul{width: ;}
#container .item .txt .comment .comment_list ul li{height:20px;line-height:20px;white-space:nowrap; }
#container .item .txt .comment .comliment_list ul . b{color:#999;font-weight:400;}
#control{height:37px;text-align:center;background:url( http://js.fgm.cc/learn/lesson10/img/ youa/bg.png) no-repeat;}
#control span{width:8px;height:8px;font-size:0;line-高度:0;遊標:指標;顯示:內聯塊;背景顏色:#FEFEFE;邊框:1px實體#BCC1C5;邊距:13px 2px 2px;}
#control span.active{背景顏色:#848484 ;邊框:1px實線#6E6E6E;}
;
function Youa (obj)
{
this.obj = $(obj);
this.container = $("容器" );
this.control = $("control");
this.items = $$$("item", this.container);
this.iCenter = 2;
this. aSort = [];
this.timer = null;
this.oData = [
{left:0, zIndex:2, opacity:30},
{left:40, zIndex:3 , opacity:60},
{left:124, zIndex:4,不透明度:100},
{左:208,zIndex:3,不透明度:60},
{左:246, zIndex:2,不透明度:30},
{左:40 , zIndex:0, 不透明度:0}
];
this.__create__()
};
Youa. prototype.__create__ = function ()
{
var that = this;
var oSpan = null;
var i = 0;
for (i = 0; i {
that.items[i].number = i;
that.aSort[i] = that.items[i];
oSpan = document.createElement("span ");
oSpan.number = i;
that.control.appendChild(oSpan)
}
for (i = 0; i that.aSpan = $$("span", that.control);
that.control.onmouseover = function (ev)
{
var oEv = ev ||事件;
var oTarget = oEv.target || oEv.srcElement;
if (oTarget.tagName.toUpperCase() == "SPAN")
{
that.aSort.sort( function (a, b) {return a.number - b.number});
if (oTarget.number {
for (i = 0; i that.__set__();
回傳false
}
else if (oTarget.number > that.iCenter)
{
for (i = 0; i
回傳false
}
else
{
that.__set__()
}
}
}
this.__set__();
this.__switch__();
這個.__autoPlay__()
};
Youa.prototype.__set__ = function ()
{
var i = 0;
for (i = 0; i for (i = 0; i this.aSpan[this.aSort[this.iCenter].number].className = "active";
for (i = 0; i {
this.aSort[i].index = i;
if (i {
new Animate(this.aSort[i], this.oData[i]);
}
else
{
new Animate(this.aSort[i], this.oData[this.oData.length - 1])
}
}
};
Youa.prototype.__switch__ = function ()
{
var i = 0;
var that = this;
this.container.onclick = function (ev)
{
var oEv = ev || event;
var oTarget = oEv.target || oEv.srcElement;
var index = findItem(oTarget);
if (index {
for (i = 0; i that.__set__();
return false
}
else if (index > that.iCenter)
{
for (i = 0; i that.__set__();
return false
}
function findItem (element)
{
return element.className == "item" ? element.index : arguments.callee(element.parentNode)
}
};
};
Youa.prototype.__autoPlay__ = function ()
{
var that = this;
that.timer = setInterval(function ()
{
that.aSort[3].click()
}, 3000);
that.obj.onmouseover = function ()
{
clearInterval(that.timer)
};
that.obj.onmouseout = function ()
{
that.timer = setInterval(function ()
{
that.aSort[3].click()
}, 3000)
}
};
function $ (id)
{
return typeof id === "string" ? document.getElementById(id) : id
};
function $$ (tagName, oParent)
{
return (oParent || document).getElementsByTagName(tagName)
};
function $$$ (className, element, tagName)
{
var i = 0;
var aClass = [];
var reClass = new RegExp("(^|//s)" + className + "(//s|$)");
var aElement = $$(tagName || "*", element || document);
for (i = 0; i return aClass
};
function css (element, attr, value)
{
if (arguments.length == 2)
{
if (typeof arguments[1] === "string")
{
return element.currentStyle ? element.currentStyle[attr] : getComputedStyle(element, null)[attr]
}
else
{
for (var property in attr)
{
property == "opacity" ?
(element.style.filter = "alpha(opacity=" + attr[property] + ")", element.style.opacity = attr[property] / 100) :
element.style[property] = attr[property]
}
}
}
else if (arguments.length == 3)
{
switch (attr)
{
case "width":
case "height":
case "top":
case "left":
case "right":
case "bottom":
element.style[attr] = value + "px";
break;
case "opacity" :
element.style.filter = "alpha(opacity=" + value + ")";
element.style.opacity = value / 100;
break;
default :
element.style[attr] = value;
break
}
}
return element
};
function Animate (element, options, fnCallBack)
{
this.obj = $(element);
this.options = options;
this.__onEnd__ = fnCallBack;
this.__startMove__()
};
Animate.prototype.__startMove__ = function ()
{
var that = this;
clearInterval(that.obj.timer);
that.obj.timer = setInterval(function ()
{
that.__doMove__()
}, 30);
};
Animate.prototype.__doMove__ = function ()
{
var complete = true;
var property = null;
for (property in this.options)
{
var iCur = parseFloat(css(this.obj, property));
property == "opacity" && (iCur = parseInt(iCur.toFixed(2) * 100));
var iSpeed = (this.options[property] - iCur) / 5;
iSpeed = iSpeed > 0 ? Math.ceil(iSpeed) : Math.floor(iSpeed);
this.options[property] == iCur || (complete = false, css(this.obj, property, iSpeed + iCur))
}
complete && (clearInterval(this.obj.timer), this.__onEnd__ && this.__onEnd__.apply(this.obj))
};
window.onload = function ()
{
new Youa("box")
};
- 北京「七田阳光」全脑教育培训中心
- 点亮孩子智慧人生
-
总体评价:
- 用户印象:亲切耐心干净
用户评价
- Jcenter:如此诚恳的教育机构 ...
- citaslin:孩子的进步很大
- 甲鱼爱媛媛:七田阳光很注重品质,...
- 慕纱莹雪婚纱礼服馆
- 物超所值的性价比,尽在慕纱莹雪!
-
总体评价:
- 用户印象:精致做工好专业
用户评价
- 小企鹅快跑:这个周末去取了我定的...
- 月逢明时:这家婚纱店的婚纱做工...
- 日历本丢了:上周末去取了婚纱,婚...
- 北京金三优装饰有限责任公司
- 一站式服务让你省时、省力、省钱、省心
-
总体评价:
- 用户印象:口碑好规模很大讲信誉
用户评价
- 紫婧之梦:这家店不错哦!
- gotometop:装修工都还挺朴实的,...
- libangcheng1:这家公司还可以,去年...
- 鸿喜族休闲俱乐部—潘家园店
- 专注人类健康,打造财富传奇!
-
总体评价:
- 用户印象:真好专业手法好
用户评价
- 永封de铁盒:环境挺不错,灯光控制...
- 老冯爱国:不错的地方,是个很有...
- 白云寺方丈:我不会打台球,但朋友...
- 北京心拓城拓展培训
- 客户第一 执行有力 激情勤奋 简单团结
-
总体评价:
- 使用者印象:專業安全積極
使用者評價
- janice19891:很負責任~
- 旺達是條魚:朋友參加過他們的拓展...
- bjftxiaoniu:吼吼,在這裡看到他們...
- 韓醫師專業祛痘連鎖機構北京直營店
- 我們只祛痘所以更專業
-
整體評估:
- 使用者印象:效果好細心專業
使用者評價
- 天涯hehaijiao:這家店很好,顧客很多...
- 愛神馬geili:我治療了兩天感覺的好...
- 天上的語言:這幾天已經看到明顯效. ..
- 羅曼卡婚禮攝影
- 口碑好性價比高無額外消費
-
整體評價:
使用者印象:口碑好很喜歡完美
使用者評價
- 明確指出i:拍的很不錯,老媽都誇...
- 愛就一直走吧:他們家服務態度好,衣...
- 愛過你me:最後照片拍出來後朋友. ..

JavaScript在瀏覽器和Node.js環境中運行,依賴JavaScript引擎解析和執行代碼。 1)解析階段生成抽象語法樹(AST);2)編譯階段將AST轉換為字節碼或機器碼;3)執行階段執行編譯後的代碼。

Python和JavaScript的未來趨勢包括:1.Python將鞏固在科學計算和AI領域的地位,2.JavaScript將推動Web技術發展,3.跨平台開發將成為熱門,4.性能優化將是重點。兩者都將繼續在各自領域擴展應用場景,並在性能上有更多突破。

Python和JavaScript在開發環境上的選擇都很重要。 1)Python的開發環境包括PyCharm、JupyterNotebook和Anaconda,適合數據科學和快速原型開發。 2)JavaScript的開發環境包括Node.js、VSCode和Webpack,適用於前端和後端開發。根據項目需求選擇合適的工具可以提高開發效率和項目成功率。

是的,JavaScript的引擎核心是用C語言編寫的。 1)C語言提供了高效性能和底層控制,適合JavaScript引擎的開發。 2)以V8引擎為例,其核心用C 編寫,結合了C的效率和麵向對象特性。 3)JavaScript引擎的工作原理包括解析、編譯和執行,C語言在這些過程中發揮關鍵作用。

JavaScript是現代網站的核心,因為它增強了網頁的交互性和動態性。 1)它允許在不刷新頁面的情況下改變內容,2)通過DOMAPI操作網頁,3)支持複雜的交互效果如動畫和拖放,4)優化性能和最佳實踐提高用戶體驗。

C 和JavaScript通過WebAssembly實現互操作性。 1)C 代碼編譯成WebAssembly模塊,引入到JavaScript環境中,增強計算能力。 2)在遊戲開發中,C 處理物理引擎和圖形渲染,JavaScript負責遊戲邏輯和用戶界面。

JavaScript在網站、移動應用、桌面應用和服務器端編程中均有廣泛應用。 1)在網站開發中,JavaScript與HTML、CSS一起操作DOM,實現動態效果,並支持如jQuery、React等框架。 2)通過ReactNative和Ionic,JavaScript用於開發跨平台移動應用。 3)Electron框架使JavaScript能構建桌面應用。 4)Node.js讓JavaScript在服務器端運行,支持高並發請求。

Python更適合數據科學和自動化,JavaScript更適合前端和全棧開發。 1.Python在數據科學和機器學習中表現出色,使用NumPy、Pandas等庫進行數據處理和建模。 2.Python在自動化和腳本編寫方面簡潔高效。 3.JavaScript在前端開發中不可或缺,用於構建動態網頁和單頁面應用。 4.JavaScript通過Node.js在後端開發中發揮作用,支持全棧開發。


熱AI工具

Undresser.AI Undress
人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover
用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool
免費脫衣圖片

Clothoff.io
AI脫衣器

Video Face Swap
使用我們完全免費的人工智慧換臉工具,輕鬆在任何影片中換臉!

熱門文章

熱工具

DVWA
Damn Vulnerable Web App (DVWA) 是一個PHP/MySQL的Web應用程序,非常容易受到攻擊。它的主要目標是成為安全專業人員在合法環境中測試自己的技能和工具的輔助工具,幫助Web開發人員更好地理解保護網路應用程式的過程,並幫助教師/學生在課堂環境中教授/學習Web應用程式安全性。 DVWA的目標是透過簡單直接的介面練習一些最常見的Web漏洞,難度各不相同。請注意,該軟體中

EditPlus 中文破解版
體積小,語法高亮,不支援程式碼提示功能

MinGW - Minimalist GNU for Windows
這個專案正在遷移到osdn.net/projects/mingw的過程中,你可以繼續在那裡關注我們。 MinGW:GNU編譯器集合(GCC)的本機Windows移植版本,可自由分發的導入函式庫和用於建置本機Windows應用程式的頭檔;包括對MSVC執行時間的擴展,以支援C99功能。 MinGW的所有軟體都可以在64位元Windows平台上運作。

SecLists
SecLists是最終安全測試人員的伙伴。它是一個包含各種類型清單的集合,這些清單在安全評估過程中經常使用,而且都在一個地方。 SecLists透過方便地提供安全測試人員可能需要的所有列表,幫助提高安全測試的效率和生產力。清單類型包括使用者名稱、密碼、URL、模糊測試有效載荷、敏感資料模式、Web shell等等。測試人員只需將此儲存庫拉到新的測試機上,他就可以存取所需的每種類型的清單。

記事本++7.3.1
好用且免費的程式碼編輯器
用户评价