Mi archivos son:
Funciones.js
$(document).ready(function(){
$('p.oculto').hide();
$('span.mas').click(function() {
$('p.oculto').show();
});
jQuery(function(){
jQuery('ul.sf-menu').superfish();
});
$('#contenedor').addClass('contenedor');
$('td#head').flash(
{ src: 'inc/bann.swf',
width: 955,
height: 110 },
{ version: 8 }
);
$('td#nav').addClass('nav');
$('td#noti').addClass('noti');
jQuery.noConflict();
function pageload(hash) {
// hash doesn't contain the first # character.
if(hash) {
// restore ajax loaded state
jQuery("#conte").load(hash);
} else {
// start page
jQuery("#conte").empty();
}
}
// Initialize history plugin.
// The callback is called at once by present location.hash.
jQuery.historyInit(pageload);
// set onlick event for buttons
jQuery("a[rel='history']").click(function(){
//
var hash = this.href;
hash = hash.replace(/^.*#/, '');
// moves to a new page.
// pageload is called at once.
// hash don't contain "#", "?"
jQuery.historyLoad(hash);
return false;
});
});
Y cursos.php
<p>Presione <span class=”mas”>aquí</p> para ver</p>
<p class=”oculto”>Texto Oculto</p>