/ Published in: JavaScript
                    
                                        
Para marcar navegaciones según la página.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
function getPartUrl(part) {
var query = self.location.href;
if( query.indexOf(part) == -1 ){
return false;
}else{
return true;
}
}
//Example
<script>document.write getPartUrl('news.php') ? 1 : 0</script>
Comments
 Subscribe to comments
                    Subscribe to comments
                
                