/*----------------------------- I/ SetHomePage 1/Chèn thẻ span này vào trang để thực hiện lấy giá trị homepage hiện thời 2/Gọi hàm setHomePage() kiểm tra nếu homepage là họ *.zing.vn thì thôi - chỉ chạy trên IE 3/Gọi hàm addFavorite() để thêm domain hiện tại vào Bookmarks II/ Hiển thị các sản phẩm họ Zing 1/ zshowHeader(innerID) để hiển thị trên header liên kết tới các sản phẩm *.zing 2/ zshowFooter(innerID) để nhảy tới sản phẩm *.zing trong combobox innerID là tab chứa nội dung sẽ được hiển thị 3/ zshowCopyright(innerID) hiển thị copyright Zing 4/ zshowProducts(innerID) hiển thị các sản phẩm của Zing ZingPortal -----------------------------*/ function getCookies(name){ var start = document.cookie.indexOf( name + "=" ); var len = start + name.length + 1; if ( ( !start ) && ( name != document.cookie.substring( 0, name.length ) ) ) return null; if ( start == -1 ) return null; var end = document.cookie.indexOf( ";", len ); if ( end == -1 ) end = document.cookie.length; return unescape( document.cookie.substring( len, end ) ); }; /*-----------------------------*/ var url = 'http://' + window.location.host + '/'; var ZingD = ['www','chat','forum','mail','me','movie','mp3','photo','play','star','video']; var ZingT = ['Trang chủ Zing','Chat','Forum','Mail','Me','Movie','Mp3','Photo','Play','Star','Video']; /*var ZingD = ['www','chat','forum','mail','me','movie','mp3','news','photo','play','star','video','yobanbe']; var ZingT = ['Trang chủ Zing','Chat','Forum','Mail','Me','Movie','Mp3','News','Photo','Play','Star','Video','Yobanbe'];*/ /* var ZingD = ['www','chat','forum','mail','movie','mp3','news','photo','star','video','yobanbe']; var ZingT = ['Trang chủ Zing','Chat','Forum','Mail','Movie','Mp3','News','Photo','Star','Video','Yobanbe']; */ var ZingCopyright = 'Copyright © 2009 Zing
Đơn vị chủ quản: Công ty Cổ phần Dịch vụ Phần mềm Trò chơi Vi Na - VinaGame
Giấy phép ICP số: 41/GP-TTĐT.'; /*-----------------------------*/ function setHomePage(){ if(document.all){ var homepage = document.getElementById('zing_homepage'); if(!homepage) return; var ishp = false; for(var i=0;i Option > Main > Use Current Page (Alt+C) để đặt trang chủ!'); }; function addFavorite(){ var title='ZingPortal'; for(var i=0;i-1) { title = ZingT[i]; break; } } if(document.all) window.external.AddFavorite(url,title); else if (window.sidebar) window.sidebar.addPanel(title, url, "") }; /*-----------------------------*/ function zshowHeader(dID){ dID = document.getElementById(dID); if(!dID) return; var str =''; for(var i=0;i'+zt+' | '; else if(zd=='www') str += ''+zt+' | '; else if(zd=="me") str += ''+zt+' | '; else str += ''+zt+' | '; } dID.innerHTML = str + '123Mua'; }; function cboZfChange(_th){ var i = _th.selectedIndex; if(i==0) return; window.location.href = _th[i].value; }; function _zproducts(){ var str = ''; return str; }; function zshowFooter(dID){ dID = document.getElementById(dID); if(!dID) return; dID.innerHTML = _zproducts(); }; function zshowCopyright(dID){ dID = document.getElementById(dID); if(!dID) return; dID.innerHTML = ZingCopyright; /*----------------*/ //var skey = getCookies('skey'); //if(skey==null || skey=='') // return; /*----------------*/ //notify_new_mail(); //var script = document.createElement("script"); //script.setAttribute("src","http://mail.zing.vn/cgi-bin/unreadnum?callback=notify_new_mail"); //script.setAttribute("type","text/javascript"); //document.getElementsByTagName('head')[0].appendChild(script); }; function zshowProducts(dID){ dID = document.getElementById(dID); if(!dID) return; var str = '

Một dịch vụ củaZing

'; str += '

' + _zproducts() + '

'; dID.innerHTML = str; }; function zcreFlash(src_,width,height){ var HTML = ''; HTML += ''; HTML += ''; HTML += ''; HTML += ''; HTML += ''; HTML += ''; HTML += ''; HTML += ''; HTML += ''; break; case 'ifr': innerboxID.innerHTML = rand[1]; break; case 'htm': innerboxID.innerHTML = rand[1]; break; } }; /* function notify_new_mail(obj,containerID){ var unread=0; if(obj){ if(obj.unread>=0) unread = obj.unread; } if(typeof(containerID)==undefined || containerID==null) containerID = 'zmail2711'; document.getElementById(containerID).innerHTML = 'Mail ('+unread+')'; }; */ function zpopupFeedback(){ var _reg = new RegExp(/^https?\:\/\/(?:.*\.)?([^\.]+)\.zing\.vn.*?$/ig); var _reg = _reg.exec(location.href); var product = 'www'; if(_reg) product = _reg[1].toLowerCase(); var datenow_ = new Date(); var rand = datenow_.getDate(); rand += datenow_.getHours(); rand += datenow_.getMinutes(); rand += datenow_.getSeconds(); rand += datenow_.getTime(); zpopupWindow('http://www.zing.vn/feedback/?p=' + product + '&r=' + rand, false, true, true, false, false, false, true, true, 550, 524, 0, 0); }; function zpopupWindow(url, isStatus, isResizeable, isScrollbars, isToolbar, isLocation, isFullscreen, isTitlebar, isCentered, width, height, top, left) { if (isCentered) { top = (screen.height - height) / 2; left = (screen.width - width) / 2; } window.open(url, '_blank', 'status=' + (isStatus ? 'yes' : 'no') + ',' + 'resizable=' + (isResizeable ? 'yes' : 'no') + ',' + 'scrollbars=' + (isScrollbars ? 'yes' : 'no') + ',' + 'toolbar=' + (isToolbar ? 'yes' : 'no') + ',' + 'location=' + (isLocation ? 'yes' : 'no') + ',' + 'fullscreen=' + (isFullscreen ? 'yes' : 'no') + ',' + 'titlebar=' + (isTitlebar ? 'yes' : 'no') + ',' + 'height=' + height + ',' + 'width=' + width + ',' + 'top=' + top + ',' + 'left=' + left); }; function CheckInstall_ZingChat() { if(window.navigator.appVersion.indexOf("MSIE") == -1) { alert("Các trình duyệt bạn không hỗ trợ các chức năng đàm thoại của Zing Chat 2, vui lòng sử dụng trình duyện Internet Explorer để tru"); return false; } try{ var xmlhttp=new ActiveXObject("TimwpDll.TimwpCheck_ZingChat"); return true; }catch(e){ alert('Bạn không thể cài đặt Zing Chat 2, vui lòng nhấn vào “Xác nhận” để tải về.'); window.open("http://chat.zing.vn/","_blank"); return false; } } function zshowBanner(boxID){ if(!boxID) boxID = 'zEventZone'; showBanner(boxID,960,120, [ /*['ifr',''],*/ ['ifr',''], ['img','http://nhungnuhonrucro.mp3.zing.vn','http://www.zing.vn/zing/ZingBanner/banner_960x120_2511.gif'] ]); }; // Time = 14:36 25/11/2009