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;//初始化显示区域this._img.style.visibility = "hidden";//第一次变换时不显示红x图this._img.style.width = this._img.style.height = "100%"; this._img.style.border = 0;this._img.onmouseover = Bind(this, this.Stop);this._img.onmouseout = Bind(this, this.Start);isIE && (this._img.style.filter = "revealTrans()");this._a.target = "_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.style.visibility = "";//设置图片属性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/201204/01/F201204010924222254713654.jpg,,http://english.people.com.cn/102775/204690/index.html);r.Start();r.Add(/mediafile/201204/16/F201204161541533265025480.jpg,,http://english.people.com.cn/102775/100668/204459/index.html);r.Start();r.Add(/mediafile/201112/31/F201112311327216291559115.jpg,,http://english.people.com.cn/102775/203908/index.html);r.Start();r.Add(/mediafile/201005/17/F201005170803181194618522.jpg,,http://en.ynta.gov.cn/default.aspx);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:  Endangered Northeast leopard snapped in NE China
Sun Zhengcai elected CPC chief of Jilin province
Chinese troops return home after SCO military drillJiang Yikang elected CPC chief of Shandong province
Hu Chunhua elected CPC chief of north Chinas Inner Mongolia
Guo Shengkun elected CPC chief of S Chinas GuangxiChen Quanguo elected CPC chief of Tibet autonomous region
China to further invest in critical sectors
Zhang Qingli elected Party chief of north Chinas Hebei Province
Zhou Qiang elected Party chief of central Chinas Hunan provinceBeijing   Cloudy/Overcast    33 / 23 ℃  City ForecastHomeLife & CultureEndangered Northeast leopard snapped in NE China(Peoples Daily Online)15:30, June 19, 2012The photo taken on May 16, 2012, captured by Camera No.1, shows an Amur leopard roaming in the forest in Wangqing County of northeast Chinas Jilin province. [CNS photo/ provided by Jilin Forestry Department]Edited and translated by Huang Beibei, Peoples Daily OnlineA leopard photographed in northeast Chinas Jilin province this month has recently been confirmed to be a wild Northeast leopard, also known as Amur leopard. It was the fourth and fifth time that this endangered animal has ever been caught on infrared camera in China since August 2011.The leopard, which was roaming in the forests of Wangqing county, was captured by an automatic infrared camera on May 16 and June 15, 2012.Experts have confirmed that the leopard is an Amur leopard, a critically endangered wild feline predator which usually inhabits the Sino-Russia border.Since the distance from the Wangqing county forest to Sino-Russian border is longer than the distance that leopards typically stray from their home, it is possible that there are wild Amur leopards inhabiting the area around Wangqing county, rather than traveling all the way from the border, according to wildlife experts.The Amur leopard is one of the rarest felines in the world with an estimated 30 to 35 individuals remaining in the wild.【1】 【2】 【3】 【4】Email|Print|Comments(Editor:叶欣、马茜)Increases the bookmarktwitterfacebookSina MicroblogdiggGoogleDeliciousbuzzfriendfeedLinkedindiigoredditstumbleuponQzoneQQ MicroblogRelated ReadingRare Amur leopard photos captured in NE ChinaRarest leopard making comeback in N.E. ChinaEndangered animal blue bull faces extinction in NepalLeave your comment0 commentsNameWeekly reviewSCO member states hold "Peace Mission 2012" drill in TajikistanLanzhou MAC holds military transportation professional skill contest
China gets praises, expectations in WTO trade policy review
Govt subsidize farmers to reduce air pollution for burning straw
China eyes on all-round cooperation with Cambodia
Dialogue, negotiation "the only right path" to settle Iranian nuclear issue
Chinas wealth management industry has bright future: CSRC Chair
More favorable policies loom for Chinas fund industry  Selections for youChinese president calls for closer BRICS cooperation, G20 coordination
Costumes of Chinese national team for 2012 Olympics released
Serene scenery in Kanas, Xinjiang
Fire strike from "manual" to "automatic"Most PopularPhotographers get amazing pictures of b…US rebalancing to Asia-Pacific: More cl…Vedio: Taikonauts of Shenzhou-9 enter T…Urgent action needed to prevent China-J…President Hu receives written interview…Video: Shenzhou-9 spacecraft docks with…Taikonauts of Shenzhou-9 enter Tiangong…Photos show astronaut Liu Yangs daily …Helicopters of flight formation conduct…Beijing-Shanghai high-speed train ticke…OpinionsChina to maintain 8% growth for over 20 years
Larger labor force not a panacea for pension woes
"China Containment theory" has no market
Benefits of direct yen-yuan may be few, far between
Keeping up appearances online proves tough job
Why Chinas export growth rebounds robustly
Don’t hate the trader, hate the securities game
Master intl rules to solve trade disputes
Investment banks ready to stand on own two feet
China unlikely to undergo local govt debt crisisWhats happening in ChinaAll fired upChina to further invest in critical sectors
WTO chief says trade restrictions alarming
China to strengthen produce prices monitoring
Home prices in cities drop at slower pace
Tropical storm to batter eastern, southern ChinaChina FeaturesLeft-behind kids have dream house
Chinas Olympic history: The road to success
Eight systems of Shenzhou-9 manned spacecraft
The thousand-year-old Tibetan paper
Beijing Summit features five new aspectsPD 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:"http://english.peopledaily.com.cn/",ContentArea:"p_content,p_title",MachineTranslation:true,WebDefinition:true})

Leave a Reply

Your email address will not be published. Required fields are marked *

seventeen + 9 =