var $RB = jQuery.noConflict(); var RBTS = "http://www.paramadina.or.id/ywP/wp-content/themes/v3para"; var IEsial = (navigator.appName == "Microsoft Internet Explorer"); var is87 = ((navigator.appVersion.indexOf("MSIE 8.0") > -1) || (navigator.appVersion.indexOf("MSIE 7.0") > -1)); $RB(function(){ $RB("#navbar .mypanel, #navbar .tabpanel, .postinfo").remove(); //$RB( //#events-cntr:hidden $RB("div.tabpanel:hidden, #sticky .silentplease:hidden,#events-cntr:hidden,#navbar:hidden").fadeIn('slow'); //#THDR $RB("#thdr > .cntr").prepend(" "); $RB("#thdr > .cntr > span").css({"position":"absolute", "left":"0px","width":"60%", "display":"inline"}) .mouseenter(function() { $RB("#thdr .tabpanel").slideToggle(400) }); $RB("#thdr .mypanel .mytab").click(function(){ $RB("#thdr > .cntr > span").mouseenter(); }); $RB(".mypanel").tabs("div.tabpanel .tabcontent", { event: 'mouseover', effect: 'fade', tabs: "div.mytab", initialIndex:0 }); //$RB(".post-item > p").filter(":first-child").wrap("
"); $RB(".post-item p:first-child").addClass('pertama'); $RB("#hdr .logo2").reflect({height: 0.3, opacity: 0.3}); //this works ok:: $RB('#events-cntr').myScroll({ myel: 'li',cbox:'runtxt',box:'slide',speed:0.06 //,mode: 'swing' }); // this works ok:: $RB('#sticky .silentplease') .cycle({ fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc... speed: 3000, delay: 4000, pause:1, timeout: 8000,requeueTimeout: 6500 }); /* using vertical scroll in main-top-content $RB("#main div.scroll").scrollable({ size: 1, clickable:false, vertical:true }); */ $RB('#top-content .tabs').tabs('.scrollbox > div',{ effect: 'fade', event:'dblclick', //clickable:false, fadeInSpeed: "slow", rotate: true, // dengan ini, bagian akhir langsung masuk ke bagian awal tabs: '.scrollbox > div' }).slideshow({clickable:false}); // Ahha like above :P so for what this new setup // the different only is the effect: horizontal.. hah not makes sense // (note the [if !IE] syntax, instructing IE/Win to ignore the markup that follows) /* */ // $RB(".mymenu-div .t2").css({'display':'none'}); $RB(".t1").tabs(".t1 > div", { tabs: "img", effect: 'horizontal' }); $RB(".t2").tabs(".t2 li ul", { tabs: "li>h2 img", effect: 'horizontal' }); //biar fleksibel coba jenis yg lain //$RB("#sticky .post-entry").addClass('trspL roundAll'); //This for textShadow /* $(elem).textShadow({ color: "#000", xoffset: "5px", yoffset: "5px", radius: "5px", opacity: "50" }); */ var $theUL = $RB(".mainnav .categories > ul"); var $theLI = $theUL.children('li'); $theLI.prepend("
"); if ((IEsial) && (!is87)){ //NoScript:IE GO-TO-HELL!//IE6 cannot read style from addClass//'); var myLIIE = {"padding":"10px","min-width": "140px","min-height": "50px", "display":"inline","float":"left"}; var myLiA = {"border-bottom":"1px solid #e6f7fc","color": "#e6f7fc","text-transform":"uppercase","font-size":"1.083em","letter-spacing": "1px"}; //$RB("#hdr .logo shape").css({'left':'20px',"margin":"20px 10px 10px 10px"}); $RB("#hdr .logo2").css({'left':'0','margin-left':'-40px'}); $RB('#nav .cntr').css({'width': "800px",'height':'24px','left':'70px'}); $RB('#nav .k40R').css({'position':'absolute','max-width': '70em','height':'24px','bottom':'-24px','right':'0'}); $RB('#events-cntr').parent().parent().css({'left':'0','height':'24px','margin-right': '-2000px','width':'2000px','overflow':'hidden','background':'#6C0404'}); $theUL.addClass('mynavIE6ul'); $theLI.addClass('mynavIE6li').css(myLIIE) .hover(function(){$RB(this).addClass('ie6dodol');},function(){$RB(this).removeClass('ie6dodol');}) .children('a').css(myLiA); var ienotify = $RB("#ienotice:hidden"); ienotify.fadeIn(1000,function(){ienotify.css({"backgroundColor":"#EBEFF9"});setTimeout(function(){ienotify.css({"backgroundColor": "#FCF5D0","border-bottom":"1px solid #F6D679"}); }, 2000); });$RB('.closethis').click(function(){ienotify.fadeOut(2000);}); /* EndOf IEsialan */ } $theLI.filter(":contains('Cak Nur Corner')").find("div:empty").addClass('caknur'); $theLI.filter(":contains('Riset')").find("div:empty").addClass('ris'); $theLI.filter(":contains('Publikasi')").find("div:empty").addClass('pub'); /* .children('img').attr({ src: RBTS + '/img/32/folder_yellow.png', //'/img/use/caknur46.png', title: "Cak Nur Corner", alt: "Cak Nur Corner", 'class': "fleft" }); $theLI.filter(":contains('Riset')").children('img').attr({ src: RBTS + '/img/32/folder_green.png', */ /* var words = $("p:first").text().split(" "); var text = words.join(" "); $("p:first").html("" + text + ""); $("span").click(function () { $(this).css("background-color","yellow"); }); //mau pake Jquery? Kalau JS di-stop, gimana dong layout kita? * html div.cntr { width: auto; width: expression((document.documentElement && document.documentElement.clientHeight) ? (((document.documentElement.clientWidth > (80 * 12 * (parseInt(this.parentNode.currentStyle.fontSize) / 100))) ? "80em" : "auto" )) : (((document.body.clientWidth > (80 * 12 * (parseInt(this.parentNode.currentStyle.fontSize) / 100))) ? "80em" : "auto" ))); } * html #tnav,* html #hdr,* html #sbhdr,* html #extnav, * html #main,* html #nav,* html #thdr,* html #ext,* html #extmain,* html #ftr { width: auto; width: expression((document.documentElement && document.documentElement.clientHeight) ? ((document.documentElement.clientWidth < 976) ? "976px" : "auto") : ((document.body.clientWidth < 976) ? "976px" : "auto"));} */ });