|
視頻推薦 關於騰訊 | 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(); }else{ this.serverTime = new Date(2016, 06-1, 05, 16, 02, 20); } }, //加載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 = '.rightAikanTab{width:'+this.djakWidth+'px;}' + '.rightAikanTab .bd dl{width:'+this.djakWidth+'px;}'+ '.rightAikanTab .bd dl.selected dd.aikanTips .fl{width:'+(this.djakWidth-120)+'px;}'+ '.rightAikanTab .bd dl.selected dd.aikanTips .fl a{width:'+(this.djakWidth-120)+'px;}'; (document.getElementsByTagName('head')[0] || document.body).appendChild(style); if(style.styleSheet){ style.styleSheet.cssText = styles; }else{ style.appendChild(document.createTextNode(styles)); } }, //加載js LoadScript : function(url, callback){ var script = document.createElement("script"); script.type = "text/javascript"; if (script.readyState){ script.onreadystatechange = function(){ if(script.readyState == "loaded" || script.readyState == "complete"){ script.onreadystatechange = null; callback(); document.getElementsByTagName("head")[0].removeChild(this); } }; }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 + "小時前"; }else{ this.minuteNum = parseInt(this.diffTime/(1000 * 60)); if(this.minuteNum>0){ this.$(timeEle).innerHTML = this.minuteNum + "分鍾前"; }else{ return 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 = e||window.event; var target = e.target || 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 = e||window.event; var target = e.target || 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){ e = e||window.event; var target = e.target || e.srcElement; if('DT' != target.nodeName){ //console.log(target.nodeName); return; } //console.log(target.nodeName); that.selected02.className = ""; target.parentNode.className = "selected"; that.selected02 = target.parentNode; } } if(that.$("aikanCon03")){ that.selected03 = that.djakDl03[0]; that.$("aikanCon03").onmouseover = function(e){ e = e||window.event; var target = e.target || e.srcElement; if('DT' != target.nodeName){ //console.log(target.nodeName); return; } //console.log(target.nodeName); that.selected03.className = ""; target.parentNode.className = "selected"; that.selected03 = target.parentNode; } } } }else{ //非體育頻道 var that = this; that.selected01 = that.djakDl[0]; that.$("aikanCon01").onmouseover = function(e){ e = e||window.event; var target = e.target || 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.djakPart >= 2){ that.selected02 = this.djakDl[that.djakPartNum[0]]; that.$("aikanCon02").onmouseover = function(e){ e = e||window.event; var target = e.target || e.srcElement; if('DT' != target.nodeName){ //console.log(target.nodeName); return; } //console.log(target.nodeName); that.selected02.className = ""; target.parentNode.className = "selected"; that.selected02 = target.parentNode; } } if(this.djakPart >= 3){ this.selected03 = this.djakDl[this.djakPartNum[0]+this.djakPartNum[1]]; that.$("aikanCon03").onmouseover = function(e){ e = e||window.event; var target = e.target || e.srcElement; if('DT' != target.nodeName){ //console.log(target.nodeName); return; } //console.log(target.nodeName); that.selected03.className = ""; target.parentNode.className = "selected"; that.selected03 = target.parentNode; } } } }, //刷新按鈕初始化 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 = option
彭德懷有沒有打過金日成耳光?
用微信掃描還可以
賽事主辦方還宣佈,除頂尖職業選手外,未來平民選手也可參與比賽。
明基方面透露,明基與ZOWIE於2010年實現首次合作,到目前已歷經6年。此後,雙方通過合作推出多款電競專用顯示器,並組織了電競賽事。
明基發佈電競新品牌 正式啟動《CS:GO》亞洲杯_游戲_騰訊網 無障礙說明 一鍵登錄 微博 Qzone QQ郵箱 訂閱 收藏 資訊 網游 頁游 手游 圖片 視頻 激活碼 愛玩 明基發佈電競新品牌 正式啟動《CS:GO》亞洲杯 滾動新聞騰訊游戲 [微博] 2016-06-05 16:01 我要分享 0
現場,明基舉辦的《CS:GO》表演賽中邀請到了蒙古和VG戰隊進行對戰,EHOME等俱樂部也派出代表到場。据了解,未來《CS:GO》亞洲公開賽將歷時三個月,超20多個地區近千支戰隊參賽。
視覺焦點 時尚資訊
[摘要]未來《CS:GO》亞洲公開賽將歷時三個月,超20多個地區近千支戰隊參賽。
掃一掃,用手機看新聞!
針對職業選手的需要,明基表示仍將基於舒適、簡單易用等特性推出滑鼠、顯示器這些電競外設。未來,ZOWIE GEAR將成為明基電競產品線專用品牌。ZOWIE加盟明基後,新竹借款,將有利於未來雙方在電競市場的發展。
正文已結束,您可以按alt+4進行評論 相關搜索:
6月5日消息,明基今日在上海舉行ZOWIE GEAR電競品牌發佈會,並啟動了《CS:GO》2016年亞洲杯揭幕儀式。會上,明基宣佈與電競品牌ZOWIE進行結合,並正式發佈了ZOWIE GEAR電競品牌。
分享到: 收藏成功查看我的收藏>> 熱門推薦 守望先鋒全毬首個100級玩傢:花92小時 玩727場 LOL一級6神裝劫單挑18級劫!誰會贏? 推薦微博: 全部收聽全部收聽全部收聽 [責任編輯:troisfeng] 熱門搜索: 企業服務 游戲推薦 >" width="90" height="60" border="0" /> 高玩:玩過200多款游戲!還是最愛這個老游戲>> 騰訊首款100%得人民幣網游橫空出世! LOL現版本最強勢的打埜TOP10 盲僧竟不是第一位? 進入直播台 精華推薦 LOL6.11版本改動前瞻 新英雄和多個英雄面臨加強 最熱游戲Top10火爆開服 來新服稱王稱霸 壕無人性!土豪4小時開1000個守望先鋒補給箱 國外網友評魔獸電影:導演走心了 想再刷一遍 >" /> 鳴人命懸一線等你出擊,進入戰場>> 更多 騰訊愛玩 更多 近期測試游戲帳號 游戲視頻 快報下載快報APP
分享至好友和朋友圈 |
|