Skip to content

Instantly share code, notes, and snippets.

@kaiquewdev
Created July 12, 2011 17:02
Show Gist options
  • Save kaiquewdev/1078423 to your computer and use it in GitHub Desktop.
Save kaiquewdev/1078423 to your computer and use it in GitHub Desktop.
$(menuItem+' a').attr({target:'_top'});
var urlAct = $(menuItem+classAct+' a').attr('href');
$(frame).load(urlAct);
$(menuItem).bind('click',function(){
var url = $(this).find('a').attr('href');
var indice = $(menuItem+' a').index(this);
$(this).find('a').attr({href:" "});
$(frame).load(url,function(){
$(menuItem+' a:eq('+indice+')').attr({href:'#'+url});
url = "";
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment