Archive for the ‘Website’ Category

javascript disable back button

November 3, 2009

add this code in the HTML head section


<script type="text/javascript">
history.forward();
</script>

css rounded corner

September 3, 2009


.roundcorner{
border-radius:6px; /*css3 - but not supported yet*/
-webkit-border-radius: 6px; /*mozila - firefox, iceweasel */
-moz-border-radius: 6px; /*webkit - google crome, midori, safari */
}

and more

-moz-border-radius-topleft / -webkit-border-top-left-radius

css – remove dotted border on a active

July 27, 2009


a {
outline-style:none;
outline-width:0;
}

or

a {outline: 0 none;}

css remove dotted outline border from a active links

how to simulate slow internet connection

June 29, 2009


#apt-get install iprelay
$iprelay -b 2500 8000:localhost:80

point the browser to localhost:8000
you can see how website look like with connection speed of 2.5Kbps.

simulate slow internet connection

not clickable link in IE

June 4, 2009

one of my client complaining to me about this problem (using IE 7). another hasLayout problem

not sure which one really fix the problem. But avoiding
<div>and <span> tags inside <a> tags might help.

can’t make links appear clickable in IE

not clickable image in a link

css tests and experiments

css transparency

February 24, 2009


.transparent_class {
filter:alpha(opacity=50); /*IE*/
-moz-opacity:0.5; /* mozilla old version*/
-khtml-opacity: 0.5; /* safari */
opacity: 0.5; /* standard */
}

css transparency setting for all browsers

IE bug fix

January 27, 2009

IE bug fix

1. no min-height
_height:auto !important;

2. preventing step down
float:left; display:inline;

3. haslayout


/* style for IE6 + IE5.5 + IE5.0 */
.gainlayout { height: 0; }

.gainlayout { zoom: 1; }

4. peekaboo bug fix

position: relative; /* peekaboo bug fix for IE6 */
min-width: 0; /* peekaboo bug fix for IE7 */

list of IE7 bugs

January 27, 2009

i hate IE. it took me a week just to fix a web page that works perfectly fine on other browsers even my web page is already pass w3c xhtml validation tests. I come across this a page with complete detailed of all IE7 related problem. In case you don’t know how terrible IE7 browser it. read

MSIE7 bugs

discover all domain hosted on ip address

January 18, 2009

it is a very useful and wonderful tools. You can use it to discover all website hosted on an IP address

yougetsignal.com

alternate table row color. the easy way!

January 5, 2009

it is very simple using jQuery.


$(document).ready(function() {

$('table.zebra tr:odd').addClass('odd');
$('table.zebra tr:even').addClass('even');

});

of course you have to create two css class with the name even and odd.


jquery alternate table rows

tree color alternating pattern