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:  Man with shotgun kills 2 elders, wounds boy, 6
Online drug deals make it tough for the police
Recycler returns 200,000 yuan find
Chicken farmer hit hard by bird flu scare
Sunbathing a nightmare of garbage and mounting maritime pollution
Quick Comment: Three meanings of Boston blasts
Donts in your periodsAmazing scenery of Jiangwan village, E Chinas Jiangxi
Between light and shadow: Incredible body paintings
Likeng, village as cultural heritageEnglishChina SocietyMan with shotgun kills 2 elders, wounds boy, 6(Shanghai Daily)15:29, April 16, 2013POLICE were hunting for a man accused of using a shotgun to kill an old couple and severely wound their six-year-old grandson after a financial dispute in Hengyang City in central Chinas Hunan Province, a local news portal reported yesterday.Tan Bingkun, a local villager, was seen breaking into the house of Zhao Zilin on Saturday night as Zhao was washing his feet in the kitchen with his grandson. The boys grandmother, Luo Maijin, was watching TV in another room. Witnesses said Tan fired at Zhao with his shotgun as soon as he broke in. He also shot the boy in the head, they said.Hearing the shot, Luo picked up another grandson, who is 10, and they hid in the home of a neighbor, news portal, reported.But villagers said Tan kicked open the neighbors door and mortally wounded Luo. The neighbor surnamed Su said Tan shouted at her, "What are you looking at? I have killed several. I dont care whether I kill one more."The six-year-old boy remained in hospital with severe wounds. His elder brother escaped after hiding in a pile of tiles, the report said.Zhaos daughter rushed home from Guangdong Province. She said her father had called her before the shooting started, telling her that he had quarreled with Tan over money and Tan threatened to kill his family.She said her father resurfaced a road with his own money recently, and he asked Tan to contribute a little because Tans family also benefited from the roadwork. Tan had refused, she added.Tan, 42, had served a term in prison and opened an aluminum materials shop after he was freed, villagers said. A nearby shop owner said Tan seemed introverted and liked to hunt birds and rabbits.Latestdevelopment of H7N9 in China[Special]We Recommend:Sparking youth: Life of post-1990s modelsThe job of building heavenly homelandPhoto story: A family infected by HIVRoads swallowing lives in many cities of ChinaFly into sky: A day of an airline captainChinas weekly story (2013.3.29-4.7)Incredible inventions by ChineseDangerous moment at Drum Rickshaw RaceNail house remains on C China construction siteEmail|Print|Comments(Editor:WangLili、Chen Lidan)Increases the bookmarktwitterfacebookSina MicroblogdiggGoogleDeliciousbuzzfriendfeedLinkedindiigoredditstumbleuponQzoneQQ MicroblogRelated ReadingPolice detain 24 buyers of illegal lethal crossbowsBloody scenery of shark hunting Big money tracks big gameTraditional hunting festival held in Bokonbayevo, KyrgyzstanHot NewsECDC set to promote South Africa agro products in China
2 explosions occur near Boston Marathon finish lineChina Focus: High-end dining sector fizzles amid frugality campaign
Smoking, air pollution major health threats in China
Chinese firms recovering confidence in Q1
Japanese automakers airbag recall hits China
Tomb suspected of Emperor Yang of Sui discovered in Yangzhou
Iron Hammer Lang Ping for coaching job at Chinas national volleyball teamLeave your comment0 commentsName  Selections for youChinese navys warships in drill
Shore-based missile regiment in drill
Venezuela protesters call for full vote recountPeople in summer wear in east China
Beijing girl infected with H7N9 recovering
Smartphone users victims of scams
Amazing pictures of Zhou Xun in SwedenYunnans umbrella spectacle
H7N9 wipes 10 bln yuan from poultry biz
The mini homes in ChinaMost PopularLow bullion prices lure shoppersU.S. eyes strong, normal, special relat…Great wisdom needed to push Sino-US tiesDeath toll rises to 14 in central China…China calls for regional peaceH7N9 wipes 10 bln yuan from poultry bizU.S.-Philippines joint military exercis…Photo story: A family infected by HIV3 U.S. naval ships make port call in Ho…Premier stresses foresight in economic …OpinionsGreat wisdom needed to push Sino-US ties
China Q1 sound despite slower growth
Key lessons to improve fiscal transparency
Triple blasts rock Boston, triggering fears of terror
Who makes the massive immigration fraud?
Overcapacity troubles Chinese economyWhat’s happening in ChinaLiving the high lifeOnline drug deals make it tough for the police
Recycler returns 200,000 yuan find
College student poisoned; roommate suspected
Firefighters defend response to deadly blaze
County officials suspended after gambling bust12345678910111213141516171819202122232425262728293031JanFebMarAprMayJunJulAugSepOctNovDec2007年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 *

2 × 5 =