var isIE = (document.all) ? true : false;var $ = function (id) {return “string” == typeof id ? document.getElementById(id) : id;};var Class = {create: function() {return function() { this.initialize.apply(this, arguments); }}}var Extend = function(destination, source) {for (var property in source) {destination[property] = source[property];}}var Bind = function(object, fun) {return function() {return fun.apply(object, arguments);}}var Each = function(list, fun){for (var i = 0, len = list.length; ilen; i++) { fun(list[i], i); }};//ie onlyvar RevealTrans = Class.create();RevealTrans.prototype = {initialize: function(container, options) {this._img = document.createElement(“img”);this._a = document.createElement(“a”);this._timer = null;//计时器this.Index = 0;//显示索引this._onIndex = -1;//当前索引this.SetOptions(options);this.Auto = !!this.options.Auto;this.Pause = Math.abs(this.options.Pause);this.Duration = Math.abs(this.options.Duration);this.Transition = parseInt(this.options.Transition);this.List = this.options.List;this.onShow = this.options.onShow;//初始化显示区域 = “hidden”;//第一次变换时不显示红x图 = = “100%”; = 0;this._img.onmouseover = Bind(this, this.Stop);this._img.onmouseout = Bind(this, this.Start);isIE && ( = “revealTrans()”); = “_blank”;$(container).appendChild(this._a).appendChild(this._img);},//设置默认属性SetOptions: function(options) {this.options = {//默认值Auto:true,//是否自动切换Pause:5000,//停顿时间(微妙)Duration: 1,//变换持续时间(秒)Transition: 23,//变换效果(23为随机)List:[],//数据集合,如果这里不设置可以用Add方法添加onShow:function(){}//变换时执行};Extend(this.options, options || {});},Start: function() {clearTimeout(this._timer);//如果没有数据就返回if(!this.List.length) return;//修正Indexif(this.Index0 || this.Index = this.List.length){ this.Index = 0; }//如果当前索引不是显示索引就设置显示if(this._onIndex != this.Index){ this._onIndex = this.Index; this.Show(this.List[this.Index]); }//如果要自动切换if(this.Auto){this._timer = setTimeout(Bind(this, function(){ this.Index++; this.Start(); }), this.Duration * 1000 +this.Pause);}},//显示Show: function(list) {if(isIE){//设置变换参数with(this._img.filters.revealTrans){Transition = this.Transition; Duration = this.Duration; apply(); play();}} = “”;//设置图片属性this._img.src = list.img; this._img.alt = list.text;//设置链接!!list[“url”] ? (this._a.href = list[“url”]) : this._a.removeAttribute(“href”);//附加函数this.onShow();},//添加变换对象Add: function(sIimg, sText, sUrl) {this.List.push({ img: sIimg, text: sText, url: sUrl });},//停止Stop: function() {clearTimeout(this._timer);}};.container{width:980px;height:80px;border:0;position:relative;overflow:hidden;}var r = new RevealTrans(“idShow”);//添加变换对象r.Add(/mediafile/201207/11/F201207111509358128132852.jpg,,;r.Start();r.Add(/mediafile/201204/16/F201204161541533265025480.jpg,,;r.Start();r.Add(/mediafile/201112/31/F201112311327216291559115.jpg,,;r.Start();r.Add(/mediafile/201005/17/F201005170803181194618522.jpg,,;r.Start();Set as Homepage|Register|Sign InChinese|Big 5|French|Russian|Spanish|Japanese|Arabic|KoreanSpecial Coverage|PD Online DatabaseSina MicroblogTencent MicroblogFeedbackRSS   NewsOpinionsChina MilitaryForeign AffairsChina BusinessLife&CultureForumLatest News:  How to remove gums on clothes in summer?
Five advantages of potato for women
Unidentified object found in Kanas Lake
Dancing opera performed at opening ceremony of Silk Road Tourism Festival
Commercialization of historic homes stirs controversy
Iran denies cyber attack on nuclear facilities
DPRK stages group calisthenics performance ArirangScenery of Panshan Mountain in north Chinas Tianjin
Wanfenglin: national geological park in SW Chinas Guizhou
Miao ethnic group in Guizhou celebrate Chinxin festivalBeijing   Heavy rain/Thundershower    27 / 23 ℃  City ForecastEnglishLife & CultureFive advantages of potato for women(Peoples Daily Online)10:58, August 02, 2012(File photo)Edited and translated by Du Mingming, Peoples Daily Online1. Potato is a natural beautifierPotatoes have good skin care effects. Fresh potato juice can be applied directly on the face, and the whitening effect is very significant. It helps even curing pimples and spots on the skin. Attach cooked potato slices to the eyes can reduce swelling of the lower eyelids. You can also cover raw potato slices on face to reduce wrinkles. Read the Chinese version: 养生:土豆对女人的5大益处 多吃可美容减肥【1】 【2】 【3】 【4】 【5】Email|Print|Comments(Editor:杜明明、雪萌)Increases the bookmarktwitterfacebookSina MicroblogdiggGoogleDeliciousbuzzfriendfeedLinkedindiigoredditstumbleuponQzoneQQ MicroblogRelated ReadingEat eight foods more to improve digestion in summerHow to fix undercooked rice?Tips: How to protect yourself during heavy rainstorms?Do not use tap water for cookingFood base helps remove peach fuzzLife Tips: Three “poisons” that destroy mens health (No.3)Hot NewsIndia’s blackout offers lesson to China
Blackout afflicts 600 million Indians
Thai ship held in S China port
What are real challenges for China?
4.9-magnitude quake jolts Xinjiang: CENC
Curbs on cold meds to fight street drugs
Analysis: Official remarks point to more monetary easing
Made-in-China souvenirs shine on London OlympicsLeave your comment0 commentsName  Selections for youChinese frigate begins goodwill visit to Romania
Blackout afflicts 600 million Indians
China will maintain labor cost advantage in foreseeable future
International childrens culture and art festival held in TJ
“Rush hour 4″ in the works
Unknown creatures in Kanas Lake turn out againMost PopularWhy Chinas female stars are favored by…How to remove grape juice stains on whi…Keeping the peace, showing the flagInt’l firms not interested in Philippin…Eat eight foods more to improve digesti…How to fix undercooked rice?Indias sea oil push politically motiva…Military dismisses islands war fearTips: How to protect yourself during he…Amway vitamin C tablets short in weightOpinionsEditorial: Do business, not politics
Arrival of Chinese fleet rattles EU
India’s blackout offers lesson to China
Editorial: For a stronger private sector
Indias sea oil push politically motivated
Rare earth regulation justified
How to improve Chinas tourism industry
S. China Sea issue, where is Philippines’ restraint?On right track for growth model change
Added value key to countering protectionismWhats happening in ChinaMore well-educated candidates become chengguanWhy prices of foreign milk powders up frequently
4.9-magnitude quake jolts Xinjiang: CENC
Curbs on cold meds to fight street drugs
Research center built to study food contamination
Billionaire Li Baohua detained in XiamenChina FeaturesHow to protect yourself during heavy rainstorms?
Are synthetic drugs toxic?
Amway vitamin C tablets short in weight
How to improve Chinas tourism industry
Special coverage: Bloodshed in U.S. theatrePD Online DataSpring Festival
Chinese ethnic odyssey
Yangge in Shaanxi
Gaoqiao in Northern China
The drum dance in Ansai12345678910111213141516171819202122232425262728293031JanFebMarAprMayJunJulAugSepOctNovDec2007年2008年2009年2010年2011年{resetselect()}About Us| Contact Us| Site Map| Advertise on site| Job OfferCopyright by Peoples Daily Online, All Rights ReservedBingCW.Init({AppID:””,ContentArea:”p_content,p_title”,MachineTranslation:true,WebDefinition:true})


邮箱地址不会被公开。 必填项已用*标注

13 − 2 =

No Related Post