Free Web Hosting in Delhi

We are a premium web hosting provider backed by leading data centres in the US as well as India. We deploy the best of hardware and software components for hassle-free functioning of your servers. Our technical support team comprises industry experts who proactively tackle all your hosting-related issues.

We are providing free web hosting with each domain registration. Book your domain today.

Visit http://www.itsoftwarelab.com/ for details

or

Call us at 91-9718198189

Change sub sub menu items colors using css

#top-menu .sub-menu li:hover a{
color: #ffffff!important;

/*color: #005199;*/
}

#top-menu .sub-menu li:hover li a {
color: #005199!important;

/*color: #005199;*/
}

#top-menu .sub-menu li:hover li:hover a {
color: #fff!important;

/*color: #005199;*/
}

// different submenu and sub sub menu icons in css

.sub-menu li a:not(:last-child):hover:before,.sub-menu li a:hover:before
{
content: “■ “;
font-size: 16px!important;
/* vertical-align: middle!important; */
margin-left: -15px;
color:#ffffff!important;

}

#top-menu .sub-menu li >.sub-menu a::before{
content: “\2022 “;
font-size: 18px!important;
/* vertical-align: middle!important; */
margin-left: -15px;
}

Convert coutry code from Alpha 2 to Alpha 3

<?php
$codes2 = 'AD,AF,AX,AL,DZ,AS,AO,AI,AQ,AG,AR,AM,AW,AU,AT,AZ,BS,BH,BD,BB,BY,BE,BZ,BJ,BM,BT,BO,BQ,BA,BW,BV,BR,IO,BN,BG,BF,BI,CV,KH,CM,CA,KY,CF,TD,CL,CN,CX,CC,CO,KM,CG,CD,CK,CR,CI,HR,CU,CW,CY,CZ,DK,DJ,DM,DO,EC,EG,SV,GQ,ER,EE,ET,FK,FO,FJ,FI,FR,GF,PF,TF,GA,GM,GE,DE,GH,GI,GR,GL,GD,GP,GU,GT,GG,GN,GW,GY,HT,HM,VA,HN,HK,HU,IS,IN,ID,IR,IQ,IE,IM,IL,IT,JM,JP,JE,JO,KZ,KE,KI,KP,KR,KW,KG,LA,LV,LB,LS,LR,LY,LI,LT,LU,MO,MK,MG,MW,MY,MV,ML,MT,MH,MQ,MR,MU,YT,MX,FM,MD,MC,MN,ME,MS,MA,MZ,MM,NA,NR,NP,NL,NC,NZ,NI,NE,NG,NU,NF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';

$str = explode(',', $codes3);

$total = count($str);

$i = 0;

for($i=0;$i<$total;$i++){

$str2 = explode('-', $str[$i]);

if (in_array(strtoupper($code2), $str2))
{

// $str3 = explode('-', $str[$i]);

//print_r($str3);

echo $str2['1'];

}

//echo $str[$i].'
‘;

}

//print_r($str);

}

if($_GET[‘code’]){

$c = $_GET[‘code’];

} else {

$c = ‘UM’;

}

echo convert_code($c);

?>

WordPress: WordPress Features

WordPress is very powerful publishing platform and it comes with a great features designed to make your experience as a publisher easy, pleasant, and appealing.

The following is a list of some of the WordPress features that comes standard WordPress Installation :

1. Simplicity – WordPress makes it possible for you to get your website online and get publishing, quickly.
2. Flexibility – Using WordPress, you can build any type of website that you want. This could be a personal blog, photoblog, business website, any news website, online community or even a network of multiple websites
3. Publish with Ease – You can easily create Posts, format easily, insert media files, and make it live on the web.
4. Publishing Tools – You can make your content public or private, and can also secure your posts and pages with password
5. User Management – You can provide different access for different type of users and its all easy for the admin.
6. Media Management – Uploading images or videos are quite easy in wordpress. You can make live your media files in just few clicks.
7. Easy Theme System – You can easily upload a new theme just using the admin panel only. Administrators don’t need a special training for this.
8. Extend with Plugins – There are a lot of plugins which can be used for different kind of features and these plugins can be installed in just few clicks only.
9. Built-in Comments – WordPress has built-in comment system. Also there are several plugins which can be used to improve this.
10. Search Engine Optimized – Creating SEO optimization for posts and pages is quite easy in wordpress because there are several FREE plugins available which can be used for this purpose.
11. Multilingual – WordPress supports multi-language. WordPress supports more than 70 languages.
12. Easy Installation and Upgrades – WordPress Installation is quite easy for a beginner also.

There are a lot of other features of wordpress. So this is the best platform for a website owner.

Number format with javascript – add comma

function addCommas(nStr)
{
nStr += ”;
x = nStr.split(‘.’);
x1 = x[0];
x2 = x.length > 1 ? ‘.’ + x[1] : ”;
var rgx = /(\d+)(\d{3})/;
while (rgx.test(x1)) {
x1 = x1.replace(rgx, ‘$1’ + ‘,’ + ‘$2’);
}
return x1 + x2;
}

addCommas(1000)
// 1,000

addCommas(1231.897243)
// 1,231.897243

addCommas(‘9999999.00’)
// 9,999,999.00

addCommas(-500000.99)
// -500,000.99

REF: http://www.mredkj.com/javascript/nfbasic.html