5/03/2011

Design Tweaks

http://www.colorzilla.com/gradient-editor/


http://komotion.com/examples/elements/buttons-and-links

http://komotion.com/examples/elements/toggles-and-tabs/

http://www.webdesignerwall.com/demo/css-buttons.html

fav icon creator - http://tools.dynamicdrive.com/favicon/

http://fortawesome.github.com/Font-Awesome/#icons-web-app

usefull links for font:
http://www.fontsquirrel.com/fontface/generator
http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/

--------------------------------------------------------------------------
Show special character in alert box
function deCode(str)
{
var convertstr;
convertstr = str.replace(/\&\#(\d+)\;/g, function(p1,p2){ return String.fromCharCode(p2) } );
return convertstr;
}
What you need to do is…
1) Copy above function and paste it in script tag.
2) Find the decimal character of your special character of language.(for e.g æ id for æ.)
3) Replace the decimal character in string which you write in alert().
4) Write alert string in deCode().
5) Thats it.
ref: http://www.programmingfacts.com/show-special-charactors-international-language-in-javascript-alert/

PHP code to detect IE version:
function ieversion()  
{ 
  $match=preg_match('/MSIE ([0-9]\.[0-9])/',$_SERVER['HTTP_USER_AGENT'],$reg); 
  if($match==0) 
   return -1; 
  else 
   return floatval($reg[1]);  
}

No comments:

Post a Comment