Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----------------------- CAJA DE PERFIL 1 -----------------------
- $(function() {
- for (var a = document.getElementsByTagName('SPAN'), i = 0, j = a.length, label; i<j; i++) {
- if (/profileField/.test(a[i].className)) {
- label = a[i].innerHTML.replace(/<.*?>/g,'').replace(/:.*$/,'').replace(/^\s+|\s+$/g,'');
- switch (label) {
- case 'Foto identificativa' :
- a[i].className += ' field-userpic';
- break;
- case 'Mensajes' :
- a[i].className += ' field-msg';
- break;
- case 'Fecha de inscripción' :
- a[i].className += ' field-fecha';
- break;
- }
- }
- }
- });
- ----------------------- CAJA DE PERFIL 2 -----------------------
- $(document).ready(function(){
- $("#pestanas li").click(function() {
- currentprofile = $(this).parent().parent().parent().parent();
- $("#pestanas li", currentprofile).removeClass('active');
- $(this).addClass("active");
- $(".tab_content", currentprofile).hide();
- var selected_tab = $(this).find("a").attr("href");
- $(selected_tab, currentprofile).fadeIn();
- return false;
- });
- });
- ----------------------- DESCONECTARSE -----------------------
- jQuery(document).ready(function(){
- jQuery('a.mainmenu[href^="/login?logout=1"]').html('Desconectarse');
- });
- ----------------------- CAMBIOS DE NOMBRE -----------------------
- $(function(){
- $("p.page-bottom").each(function(){
- $(this).html($(this).html()
- .replace("Nuestros miembros han publicado un total de", "Total de ")
- .replace("Tenemos", " ")
- .replace("publicaciones", " ")
- .replace("El último usuario registrado es", "Recién llegado"));
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement