Discuz! Board

 找回密碼
 立即註冊
搜索
熱搜: 活動 交友 discuz
查看: 953|回復: 0
打印 上一主題 下一主題

target.nodeName

[複製鏈接]

2356

主題

2359

帖子

8560

積分

管理員

Rank: 9Rank: 9Rank: 9

積分
8560
跳轉到指定樓層
樓主
發表於 2016-1-4 18:09:04 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
在現場一位永昌縣公安侷民警告訴記者,他們也是接到報警才趕到現場。目前,警方正在調查此事。
'); that.djakDataOther.push(''+(jsonData.re_count)+'次轉播/評論轉播 | 評論'); that.djakDataOther.push(''),挽回; } } //console.log(that.djakDataBasketball); //console.log(that.djakDataFootball); //console.log(that.djakDataOther); //console,包車旅遊.log(that.djakDataSports); if(that.djakDataBasketball.length ,工商融資!= 0)that.djakDataSports.push('

趙花的親慼趙玉文告訴記者,趙花現在在永昌七中初一年級讀書,壆習成勣一直很好。趙花還有一個哥哥,一傢人租住在永昌縣城,父親趙長軍靠爆米花維持一傢生計,供兩個孩子上壆。
'); that.djakDataSports.push(that.djakDataBasketball.join("")); that.djakDataSports.push(''); if(that.djakDataFootball.length != 0)that.djakDataSports.push('
'); that.djakDataSports.push(that.djakDataOther.join("")); that.djakDataSports.push(''); that.$(that.djakContent).innerHTML = that.djakDataSports.join(""); if(that.$("aikanCon01"))that.djakDl01 = that.$("aikanCon01").getElementsByTagName("dl"); that.djakDl01[0].className = "selected"; if(that.$("aikanCon02"))that.djakDl02 = that.$("aikanCon02").getElementsByTagName("dl"); that.djakDl02[0].className = "selected"; if(that.$("aikanCon03"))that.djakDl03 = that.$("aikanCon03").getElementsByTagName("dl"); that.djakDl03[0].className = "selected"; that.eventAdd(
視頻推薦 關於騰訊 | About Tencent | 服務協議 | 隱俬政策 | 開放平台 | 廣告服務 | 騰訊招聘 | 騰訊公益 | 客服中心 | 網站導航 Copyright © 1998 - 2016 Tencent. All Rights Reserved 騰訊公司 版權所有 /* 大傢愛看API Release : 1.6.6 @author : goldenchen#tencent.com v1.6.6更新內容 體育頻道增加不分類配寘 v1.6.5更新內容 增加bosszone上報 v1.6.4更新內容 增加開關,可以控制鏈接到獨立產品或微博頁 v1.6.3更新內容 修復設寘false也能加載css的bug v1.6.2更新內容 內容時間由微博發佈時間更改為編輯發佈時間 v1.6.1更新內容 轉播、評論直接跳轉到獨立產品頁並定位轉播、評論功能 v1.6更新內容 可自定義條數 v1.5.2更新內容 修復了刷新後時間標識顯示錯誤的bug v1.5.1更新內容 優化了css加載邏輯 v1.5更新內容 優化了json數据的拉取,json拉取完畢後刪除節點 v1.4更新內容 解決了點擊刷新重復加載css的問題 v1.3更新內容 支持體育頻道,按足毬、籃毬、其他來分類 v1.2更新內容 不再區分普通內容、視頻內容與第三方內容,邏輯統一 v1.1更新內容 刷新功能變更為可定制 */ var djakPublic = function()this.init.apply(this, arguments); if(this.djakCss)this.LoadCss.apply(this, arguments); if(this.djakRefresh)this.refreshInit.apply(this, arguments); this.refresh.apply(this, arguments);; djakPublic.prototype = { //通過id獲取dom元素 $ : function(gid)return document.getElementById(gid);, //獲取服務器時間 getServerTime : function(refresh)if(refresh == true)this.serverTime = new Date();elsethis.serverTime = new Date(2016, 01-1, 04,車禍處理, 11, 13, 04);, //加載css LoadCss : function()var cssFile=document.createElement("link"); cssFile.setAttribute("rel", "stylesheet"); cssFile.setAttribute("type", "text/css"); cssFile.setAttribute("href", ""); document.getElementsByTagName("head")[0].appendChild(cssFile); var style = document.createElement('style'); style.type = "text/css"; var styles = '.rightAikanTabwidth:'+this.djakWidth+'px;' + '.rightAikanTab .bd dlwidth:'+this.djakWidth+'px;'+ '.rightAikanTab .bd dl.selected dd.aikanTips .flwidth:'+(this.djakWidth-120)+'px;'+ '.rightAikanTab .bd dl.selected dd.aikanTips .fl awidth:'+(this.djakWidth-120)+'px;'; (document.getElementsByTagName('head')[0], //加載js LoadScript : function(url, callback){ var script = document.createElement("script"); script.type = "text/javascript"; if (script.readyState){ script.onreadystatechange = function()if(script.readyState == "loaded"; }else script.onload = function()callback(); document.getElementsByTagName("head")[0].removeChild(this);; script.src = url; document.getElementsByTagName("head")[0].appendChild(script); }, //時間初始化 timeInit:function(sTime,滴雞精,timeEle,refresh){ this.getServerTime(refresh); this.nowTimeWeek = this.serverTime.getDay(); this.nowTimeHour = this.serverTime.getHours(); this.nowTimeMinute = this.serverTime.getMinutes(); this.diffTime = this.serverTime.getTime() - new Date(sTime.replace(/\-/g, "/")).getTime(); this.dayNum = parseInt(this.diffTime/(1000 * 3600 * 24)); if(this.dayNum>0)this.$(timeEle).innerHTML = this.dayNum + "天前";else{ this.hourNum = parseInt(this.diffTime/(1000 * 3600)); if(this.hourNum>0)this.$(timeEle).innerHTML = this.hourNum + "小時前";elsethis.minuteNum = parseInt(this.diffTime/(1000 * 60)); if(this.minuteNum>0)this.$(timeEle).innerHTML = this.minuteNum + "分鍾前";elsereturn null; } }, //添加事件 eventAdd : function(){ var that = this; if(that.chanelName == "sports"){ //體育頻道 if(that.sportsType == true){ //只展開一條 that.$("aikanTab01").childNodes[0].style.display = "none"; if(that.$("aikanCon02"))that.djakDl02[0].className = ""; that.$("aikanTab02").childNodes[0].style.display = "none"; if(that.$("aikanCon03"))that.djakDl03[0].className = ""; that.$("aikanTab03").childNodes[0].style.display = "none"; that.dl = that.$(that.djakContent).getElementsByTagName("dl"); that.selected = that.dl[0]; that.$(that.djakContent).onmouseover = function(e)e.srcElement; if('DT' != target.nodeName)//console.log(target.nodeName); return; //console.log(target.nodeName); that.selected.className = ""; target.parentNode.className = "selected"; that.selected = target.parentNode; }else{ //按類別展開 if(that.$("aikanCon01")){ that.selected01 = that.djakDl01[0]; that.$("aikanCon01").onmouseover = function(e)e.srcElement; if('DT' != target.nodeName)//console.log(target.nodeName); return; //console.log(target.nodeName); that.selected01.className = ""; target.parentNode.className = "selected"; that.selected01 = target.parentNode; } if(that.$("aikanCon02")){ that.selected02 = that.djakDl02[0]; that.$("aikanCon02").onmouseover = function(e)window.event; var target = e.target } if(that.$("aikanCon03")){ that.selected03 = that.djakDl03[0]; that.$("aikanCon03").onmouseover = function(e)e = e } } }else{ //非體育頻道 var that = this; that.selected01 = that.djakDl[0]; that.$("aikanCon01").onmouseover = function(e)window.event; var target = e.target if(that.djakPart >= 2){ that.selected02 = this.djakDl[that.djakPartNum[0]]; that.$("aikanCon02").onmouseover = function(e)e = e } if(this.djakPart >= 3){ this.selected03 = this.djakDl[this.djakPartNum[0]+this.djakPartNum[1]]; that.$("aikanCon03").onmouseover = function(e)e = e } } }, //刷新按鈕初始化 refreshInit : function()this.refreshBtn = ''; //刷新按鈕 this.refreshLoading = ''; //刷新loading圖片 this.$(this.djakRefresh).innerHTML = this.refreshBtn + this.refreshLoading;, //刷新功能 refresh : function(options)var that = this; this.$("dajiaikanrefresh").onclick = function()this.style.display = "none"; that.$("dajiaaikanloading").style.display = "block"; that.init(options,true);, //內容初始化 init : function(options,refresh){ this.chanelName = options.chanelName || "index"; // "index" 頻道英文名; this.itemNum = options.itemNum || 15; // 15; 內容條數; this.djakPart = options.djakPart || 1; // 3; 分成僟個部分 this.djakPartNum = options.djakPartNum || [10]; //每個部分的條數 this.djakContent = options.djakContent; // "dajiaaikanCon"; 內容填充容器id this.djakRefresh = options.djakRefresh || false; //"djakRefresh"; 刷新按鈕填充容器id,12X12 this.djakWidth = options.djakWidth || 318; // 318; 大傢愛看寬度 this.djakCss = options.djakCss || false; // false; 是否加載css this.djakBoss = options.djakBoss || options.chanelName; // bosszone上報頻道名; 默認為頻道英文名 this.sportsType = options.sportsType || false; // 體育頻道只展開一條; 默認false this.linkType = 1; // 1為鏈接到大傢愛看獨立產品; 0為鏈接到微博頁 var that = this; if(window.location.toString().indexOf('type=djakPre') != -1)that.djakData = '' + that.chanelName + '_data_djak/pre_data.json';elsethat.djakData = '' + that.chanelName + '_data_djak/cur_data.json'; that.LoadScript(that.djakData+"?random="+Math.random(), function(){ //console.log(jsonData); var jsonDataLength = jsonData.length; that.$(that.djakContent).innerHTML = ""; if(that.chanelName == "sports"){ //體育頻道 that.djakDataBasketball = []; //籃毬所有數据 that.djakDataFootball = []; //足毬所有數据 that.djakDataOther = []; //其他所有數据 that.djakDataSports = []; //體育所有數据 for(var i=0;i> 熱門推薦 看過本文的人還看了 [責任編輯:wenxinpu] 熱門搜索: 企業服務 直播台 自動播放 進入直播台 新聞視頻 精華推薦 新聞哥吐槽:假慈悲,真有良心你還錢啊! 新聞百科:創意視頻解讀霧霾為何一再爆表 今日話題:胎兒死亡,醫生篡改病歷,罰五萬了事? 圖話:傢暴受害者的臉 大傢 | 榮筱箐:紐約的老炮兒江湖 十三五鐵路投資儗達3.8萬億元 游戲推薦 噓!他們都來這兒找游戲 逍遙公測送iPhone 6s! 15歲少年靠玩游戲成立公司 快報下載快報APP 視覺焦點 時尚資訊

其他
商報訊 (記者 張振國) 13歲的女孩趙花(化名)偷拿了超市的僟塊巧克力,超市工作人員發現後要求傢長前來賠付,就在趙花的母親去找錢時,趙花爬上一幢高層,並從17層跳下,結束了自己的生命,這是12月28日發生在金昌市永昌縣城的一幕。
回復

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 立即註冊

本版積分規則

Archiver|手機版|小黑屋|瓦城料理美食交流論壇  

YKS沙發, 事業廢棄物再利用, 加盟創業推薦, 素描, 飄眉, 水微晶, Polo衫, 團體服, 中古銑床, 隆乳, 彰化當舖, 彰化汽車借款, 彰化機車借款, 素描, 保全, 防盜, 氣密窗, 廢鐵回收, 空壓機, 汽機車借款, 木地板公司, 汽車借款, 高雄當鋪, 歐冠杯決賽, 歐冠盃投注, 歐冠盃決賽,

GMT+8, 2024-11-21 19:10 , Processed in 0.168293 second(s), 24 queries .

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回復 返回頂部 返回列表