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|KoreanChina Politics|Special Coverage|PD Online Database|ForumFeedbackRSS   PhotosMilitaryForeign AffairsBusinessSocietyLife&CultureTravelScienceLatest News:  Thailand expects interim govt no later than September
China removes price control over seed
China hopeful on U.S. marine deployment in Australia
Chinese envoy to attend meeting for Lebanese forces
Seven killed in SW China pileup
China hopes for Iraq stability
S.Koreas top nuke envoy to visit Russia next week
Chinese vice president meets Singaporean FM
Chinas property market continues to cool off in May
Infrographic: US industrial cyber espionage unveiledEnglishSpecial CoverageCooperationShaanxi, Hometown of Terra Cotta Warriors and HorsesNumerous Noodles in Shaanxi(Peoples Daily Online)14:38, May 20, 2013A central Shaanxi folksong has it: “Dust drifts over the 800-Li central Shaanxi Basin, where 30 million Shaanxinese are singling the Qin Opera; they are overjoyed with a large bowl of wide noodles, yet would moan and groan severely if not given the oil-fried chili.”Shaanxi people are capable of making a wide variety of noodles out of flour, including oil-sprinkled noodles, Ma Shi, Biang Biang noodles, chopstick noodles, Qishan shaozi noodles, Qianxian chicken noodles, Yangling Noodles in Garlic Sauce, Wugong Soup Noodles, Dali Luchi Noodles (furnace tooth noodles), Yongshou Ritual Noodles, Heyang Ye Noodles, Sanyuan Geda Noodles, Huxian noodles with hot and sour soup, monkey-head noodles, noodles with pickled vegetable soup, green noodles, noodles served with thick gravy, stewed noodles, Shaved Noodles, chopped noodles cooked in rice porridge, cold noodles, hand-pulled noodles, hand-tilled noodles, fine noodles (dragon beard noodles), stick noodles and Qihua Noodles (flag-flower shaped noodles), etc.. When in Shaanxi, you are in a world of noodles where you can enjoy all different noodles for all three meals a day. The rich and varied assortment of noodles will surely bring a feast to both your eyes and your nose.Email|Print|Comments(Editor:LiXiang、Gao Yinan)Increases the bookmarktwitterfacebookSina MicroblogdiggGoogleDeliciousbuzzfriendfeedLinkedindiigoredditstumbleuponQzoneQQ MicroblogRelated ReadingTen Major Bodhisattvas in Famen TempleZongfo Temple in SW Chinas Xishuangbanna (3)Zongfo Temple in SW Chinas Xishuangbanna (2)Zongfo Temple in SW Chinas XishuangbannaSouth Putuo Temple in Chinas Fujian (14)South Putuo Temple in Chinas Fujian (13)South Putuo Temple in Chinas Fujian (12)South Putuo Temple in Chinas Fujian (11)South Putuo Temple in Chinas Fujian (10)South Putuo Temple in Chinas Fujian (9)Hot NewsChina denies official contact with Abe adviserXi: Troops must strictly follow CPC leadership
Beijing plans $81b shantytown renovation project
Families of crash victims to sue Asiana in the US
Greenland to invest US$1b in LA project
EU-China solar panel deal benefits world
The pain of youth
Day to remember a loyal generalLeave your comment0 commentsName  Selections for youPLA air-defense troops open to media
86-year glorious history of Chinese PLA
Global Tiger Day marked in Jakarta
Pretty showgirls backstage at Chinajoy
Women drifting lifeguards team set up
Nations unite to help tigers
Five generations of ancient Miao jewelry
Famous Buddha heads fallen by time
GSK probe reveals something rotten
Complaints rise over baby formula importsMost PopularGallery: A glimpse of beautiful ladies …What signals the China-US military dril…Incredible animal migration in Xinjiang China wont bow to Japans demand on c…China confirms comfort women’ docs giv…Comfort women history may enter UNESCO …Armed police deploys armed patrols in B…China calls for treaty on space weaponsTop 10 Chinese products scoring World C…China and Bangladesh to achieve dream t…What’s happening in ChinaMan commits suicide, rescued by his wife in NE China300 million residents expected to urbanize by 2020
Report encourages parity for migrants
More NGOs to provide govt services
Only third of Beijing days saw clean air in first half
Ozone adds to dangers of pollutants12345678910111213141516171819202122232425262728293031JanFebMarAprMayJunJulAugSepOctNovDec2007年2008年2009年2010年2011年2012年2013年{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})

Leave a Reply

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

five × five =