Any one can tell me please, what is the different between this three things.
if ( document.location.href.indexOf('#Work') > -1 ) {
$('#elementID').animate({"left": "250"}, "slow");
}
if ( document.location.href.indexOf('#Work') > 0 ) {
$('#elementID').animate({"left": "250"}, "slow");
}
if ( document.location.href.indexOf('#Work') != -1 ) {
$('#elementID').animate({"left": "250"}, "slow");
}