// JavaScript Document // News-article-sid-11-theme-phpBLANKid.txt sURL = "http://lokal.php-id.org/"; sThemes = "-theme-phpBLANKid.pas"; sThemes = "-theme-phpBLANKid.txt"; bHideForum = false; //http://lokal.php-id.org/site/Topic9-theme-phpBLANKid.pas //index.php?name=News&topic=9 var ie=document.all&&navigator.userAgent.indexOf("Opera")==-1; var myWidth = 0, myHeight = 0; var scrOfX = 0, scrOfY = 0; var moz = ((document.all)? false : true); //var ie = ((document.all)? true : false); --> ada yg pake 'ie' var frmLastDiv = ""; function coba(){ alert('a'); } function exr(){ document.getElementById( 'ar50').style.height='400px'; } function tunggu( detik){ var date = new Date(); var curDate = null; do { curDate = new Date(); } while(curDate-date < detik); } function GetWindowSize() { if( typeof( window.innerWidth ) == 'number' ) { //Non-IE myWidth = window.innerWidth; myHeight = window.innerHeight; } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { //IE 6+ in 'standards compliant mode' myWidth = document.documentElement.clientWidth; myHeight = document.documentElement.clientHeight; } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { //IE 4 compatible myWidth = document.body.clientWidth; myHeight = document.body.clientHeight; } } function getScrollXY() { if( typeof( window.pageYOffset ) == 'number' ) { //Netscape compliant scrOfY = window.pageYOffset; scrOfX = window.pageXOffset; } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) { //DOM compliant scrOfY = document.body.scrollTop; scrOfX = document.body.scrollLeft; } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) { //IE6 standards compliant mode scrOfY = document.documentElement.scrollTop; scrOfX = document.documentElement.scrollLeft; } return [ scrOfX, scrOfY ]; } function CariSiap(){ GetWindowSize(); getScrollXY(); liX = myWidth - 295; if (moz) { liX = liX - 15; } if (BrowserDetect.browser=="Opera"){ liX = liX - 15; } liX = liX + 'px'; lsTop = '73px'; if (BrowserDetect.browser=="Explorer") { lsTop = "75px"; } loDiv = document.getElementById( 'idCari'); loDiv.style.visibility = "visible"; loDiv.style.top = lsTop; loDiv.style.left = liX; if (moz){ }else{ } tunggu( 500); document.getElementById( 'q').focus(); } function CariClose(){ document.getElementById( 'idCari').style.visibility = "hidden"; } function Artikel( psID) { //-- pn7 lsURL = "News-article-sid-" + psID + sThemes; //-- pn8 lsURL = "module-News-display-sid-" + psID + sThemes; ajaxGET('GET', lsURL, 'maindisplay', 'innerHTML', 'maindisplay'); } function _Artikel( psID, psDiv, psDiv2) { //--pn7 lsURL = "News-article-sid-" + psID + sThemes; //-- pn8 lsURL = "module-News-display-sid-" + psID + sThemes; //e=document.getElementById(psDiv2); //liWarnaAsli = e.style.backgroundColor; //e.style.backgroundColor = "#FFFFee"; e=document.getElementById(psDiv); ajaxGET('GET', lsURL, psDiv, 'innerHTML', psDiv); //return .f.; } function _SetDIV( psDIV, psPesan) { document.getElementById( psDIV).innerHTML = psPesan; } function _getrefDIV(divID,oDoc) { if( !oDoc ) { oDoc = document; } if( document.layers ) { if( oDoc.layers[divID] ) { return oDoc.layers[divID]; } else { //repeatedly run through all child layers for( var x = 0, y; !y && x < oDoc.layers.length; x++ ) { //on success, return that layer, else return nothing y = getRefToDiv(divID,oDoc.layers[x].document); } return y; } } if( document.getElementById ) { return document.getElementById(divID); } if( document.all ) { return document.all[divID]; } return false; } // Forum function Thread( psID, psDIV){ loDIV = document.getElementById( psDIV); loDIV.style.display = ""; if (frmLastDiv == ''){ }else{ document.getElementById( frmLastDiv).style.display = "none"; } frmLastDiv = psDIV; } function ForumRefresh(){ clpsForum.slidedown(); lsURL = "index.php?theme=LastForumOnly"; var t=setTimeout( "hideAll()", 5000); ajaxGET('GET', lsURL, 'bllForum', 'innerHTML', 'maindisplay'); } function toggle(id) { el = document.getElementById(id); var display = el.style.display ? '' : 'none'; el.style.display = display; }