i get a Unexpected token { error on this line
var isSplash =true;
//------DocReady-------------
---> $(document).ready{(function()};
if(location.hash.length == 0)
location.hash="!/"+$('#content > ul > li').eq(2).attr('id');
i get a Unexpected token { error on this line
var isSplash =true;
//------DocReady-------------
---> $(document).ready{(function()};
if(location.hash.length == 0)
location.hash="!/"+$('#content > ul > li').eq(2).attr('id');
You don't need to pass an object to the ready (or try to pass it)
You have this
$(document).ready{(function()};
You need this
$(document).ready(function() { });
Try this...
var isSplash = true;
$(document).ready(function(){
if(location.hash.length === 0) {
location.hash="!/"+$('#content > ul > li').eq(2).attr('id');
}
});