15 Januari 2011

 

No cache!

html meta

http-equiv='cache-control' content='no-cache'
http-equiv='expires' content='-1'
http-equiv='pragma' content='no-cache'

JQuery

$.ajaxSetup({cache: false});

.htaccess


ExpiresDefault A0
Header set cache-control: "no-cache, no-store,public, must-revalidate"


Label: , ,


 

My reset.css

My Reset CSS with commonly used
html,body,div,span,object,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,tt,var,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;vertical-align:baseline;outline:none;font-size:100%;background:transparent;border:none;text-decoration:none}
b,i,hr,u,center,menu,layer,s,strike,font,xmp{margin:0;padding:0;vertical-align:baseline;outline:none;font-size:100%;font-weight:normal;font-style:normal;background:transparent;border:none;text-decoration:none}

html{height:100%;margin-bottom:0.1em;overflow-y:scroll}
* html{overflow-x:hidden}
body {font-size:13px;line-height: 18px;}
h1{font-size:2em}
h2{font-size:1.75em}
h3{font-size:1.5em}
h4{font-size:1.25em}
h5{font-size:1em}
h6{font-size:.75em}
h1,h2,h3,h4,h5,h6{margin:1em 0 .5em}
table { border-collapse: collapse }
.pos{position:absolute}
.fix{position:fixed}
.rel{position:relative}
.click{cursor:pointer}
.help{cursor:help}
.hide,.old-version{display:none !important}
.show{display:block !important}
.clear,.clr{clear:both}
.noborder{border:none !important}
.right{float:right}
.left{float:left}

.geo,.georgia{font-family:Georgia, "Times New Roman", Times, serif !important}
.ver,.verdana{font-family:Verdana, Arial, Helvetica, sans-serif !important}
.tah,.tahoma{font-family:Tahoma, Arial, Helvetica, sans-serif !important}
.tim,.times{font-family:"Times New Roman", Times, serif !important}
.tre,.trebuchet{font-family:"Trebuchet MS", Arial, Helvetica, cursive !important}
.cou,.courier{font-family:"Courier New", Courier, monospace !important}
.ari,.arial{font-family:Arial, Helvetica, sans-serif !important}
.luc,.lucida{font-family:"Lucida Sans", "Lucida Sans Unicode", "Lucida Grande", Arial, Hevletica, sans-serif !important}

.topnavbar{display:block}
.topnavbar li {list-style-type:none;}
.topnavbar li a { display: block }
.topnavbar > li{float:left;margin-right:24px;}
.topnavbar > li:last-child{margin-right:0}

.show{display:block}
.clear,.clr{clear:both}

.ui-corner-tl{-moz-border-radius-topleft:5px;-webkit-border-top-left-radius:5px;}
.ui-corner-tr{-moz-border-radius-topright:5px;-webkit-border-top-right-radius:5px;}
.ui-corner-bl{-moz-border-radius-bottomleft:5px;-webkit-border-bottom-left-radius:5px;}
.ui-corner-br{-moz-border-radius-bottomright:5px;-webkit-border-bottom-right-radius:5px;}
.ui-corner-top{-moz-border-radius-topleft:5px;-webkit-border-top-left-radius:5px;-moz-border-radius-topright:5px;-webkit-border-top-right-radius:5px;}
.ui-corner-bottom{-moz-border-radius-bottomleft:5px;-webkit-border-bottom-left-radius:5px;-moz-border-radius-bottomright:5px;-webkit-border-bottom-right-radius:5px;}
.ui-corner-right{-moz-border-radius-topright:5px;-webkit-border-top-right-radius:5px;-moz-border-radius-bottomright:5px;-webkit-border-bottom-right-radius:5px;}
.ui-corner-left{-moz-border-radius-topleft:5px;-webkit-border-top-left-radius:5px;-moz-border-radius-bottomleft:5px;-webkit-border-bottom-left-radius:5px;}
.ui-corner-all{-moz-border-radius:5px;-webkit-border-radius:5px;}

.input-checkbox,input[type=checkbox] { vertical-align: -15% }
.input-radio,input[type=radio] { vertical-align: -15% }

Label: ,


 

JQuery: Yahoo API: Weather Updates

Download and documentation: http://www.zazar.net/developers/zweatherfeed/

My script:



Label: ,


 

Jquery plugins: layer Dimmer


(function($) {

/* Syntax: $('element').dimlayer() */

$.fn.dimlayer = function() {
        var content=$(this).html();
        var sw=$(this).width();
        var sh=$(this).height();
        var zi=$(this).css('z-index');

        $(this).empty();

        $(this).prepend("
"); var dimmer = $(this).children('.JQ_dim'); dimmer.width(sw); dimmer.height(sh); dimmer.css('z-index',zi-2); $(this).append("
"+content+"
"); var intense= $(this).children('.JQ_int'); intense.css('z-index',zi-1); return; }; })(jQuery);

Label:


Arsip

Januari 2009   Oktober 2009   November 2009   Maret 2010   Januari 2011   Februari 2011   Juli 2011   Juni 2012