Resultados 1 al 3 de 3

Tema: Emoticons en Blogger

  1. #1

    Emoticons en Blogger

    En genbeta podemos encontrar un artículo en el que nos explican como poner emoticons en Blogger:



    De entre las carencias de Blogger podemos echar en falta los emoticonos. Si es tu caso, te vamos a facilitar un código que permitirá el reemplazo de distintas combinaciones de caracteres por su equivalente emoticono, de modo que ya puedas disfrutar de estas divertidas caras amarillas:

    Para ello deberás de editar el código de tu web siguiendo los pasos, que son pocos, que te ofrecemos a continuación:

    Dentro de la etiqueta head deberemos de poner lo siguiente:
    Código:
    <script type="text/javascript">
    <!—
    
    function replaceText() {
    // no support
    if(!document.getElementById) {
    return;
    }
    
    bodyText = document.getElementById("body");
    theText = bodyText.innerHTML;
    
    // replace
    theText = theText.replace(/;\)/g,’<img src="http://photos1.blogger.com/blogger/7678/802/1600/wink.gif" alt=";)" />’);
    theText = theText.replace(/;-\)/g,’<img src="http://photos1.blogger.com/blogger/7678/802/1600/wink.gif" alt=";-)" />’);
    theText = theText.replace(/:D/g,’<img src="http://photos1.blogger.com/blogger/7678/802/1600/biggrin.gif" alt=":D" />’);
    theText = theText.replace(/:-D/g,’<img src="http://photos1.blogger.com/blogger/7678/802/1600/biggrin.gif" alt=":-D" />’);
    theText = theText.replace(/B\)/g,’<img src="http://photos1.blogger.com/blogger/7678/802/1600/cool.gif" alt="B)" />’);
    theText = theText.replace(/B-\)/g,’<img src="http://photos1.blogger.com/blogger/7678/802/1600/cool.gif" alt="B-)" />’);
    theText = theText.replace(/:x/g,’<img src="http://photos1.blogger.com/blogger/7678/802/1600/mad.gif" alt=":x" />’);
    theText = theText.replace(/:X/g,’<img src="http://photos1.blogger.com/blogger/7678/802/1600/mad.gif" alt=":X" />’);
    theText = theText.replace(/:-x/g,’<img src="http://photos1.blogger.com/blogger/7678/802/1600/mad.gif" alt=":-x" />’);
    theText = theText.replace(/:-X/g,’<img src="http://photos1.blogger.com/blogger/7678/802/1600/mad.gif" alt=":-X" />’);
    theText = theText.replace(/:-\(/g,’<img src="http://photos1.blogger.com/blogger/7678/802/1600/sad.gif" alt=":-(" />’);
    theText = theText.replace(/:\(/g,’<img src="http://photos1.blogger.com/blogger/7678/802/1600/sad.gif" alt=":(" />’);
    theText = theText.replace(/:o/g,’<img src="http://photos1.blogger.com/blogger/7678/802/1600/ohmy.gif" alt=":o" />’);
    theText = theText.replace(/:O/g,’<img src="http://photos1.blogger.com/blogger/7678/802/1600/ohmy.gif" alt=":O" />’);
    theText = theText.replace(/:-o/g,’<img src="http://photos1.blogger.com/blogger/7678/802/1600/ohmy.gif" alt=":-o" />’);
    theText = theText.replace(/:-O/g,’<img src="http://photos1.blogger.com/blogger/7678/802/1600/ohmy.gif" alt=":-O" />’);
    theText = theText.replace(/:p/g,’<img src="http://photos1.blogger.com/blogger/7678/802/1600/tongue.gif" alt=":p" />’);
    theText = theText.replace(/:-p/g,’<img src="http://photos1.blogger.com/blogger/7678/802/1600/tongue.gif" alt=":-p" />’);
    theText = theText.replace(/:-P/g,’<img src="http://photos1.blogger.com/blogger/7678/802/1600/tongue.gif" alt=":-P" />’);
    theText = theText.replace(/:P/g,’<img src="http://photos1.blogger.com/blogger/7678/802/1600/tongue.gif" alt=":P" />’);
    theText = theText.replace(/:-\)/g,’<img src="http://photos1.blogger.com/blogger/7678/802/1600/smile.gif" alt=":-)" />’);
    theText = theText.replace(/:\)/g,’<img src="http://photos1.blogger.com/blogger/7678/802/1600/smile.gif" alt=":)" />’);
    
    bodyText.innerHTML = theText;
    }
    —>



    Luego dentro de body:

    Código:
    <body id="body" onload="replaceText();">
    y ya tienes emoticonos en tu blog.
    Última edición por Tenshi; 31/03/2006 a las 22:36

  2. #2

    Re: Emoticons en Blogger

    son feitos :S

    aver si se los puede cambiar :O

  3. #3

    Re: Emoticons en Blogger

    es verdad, son realmente feos

    no tengo forma de probarlo, pero si alguien puede y esto anda podemos armar algo con emoticons más lindos

    Código:
    <script type="text/javascript">
    <!—
    
    function replaceText() {
    // no support
    if(!document.getElementById) {
    return;
    }
    
    bodyText = document.getElementById("body");
    theText = bodyText.innerHTML;
    
    // replace
    theText = theText.replace(/=P/g,’<img src="http://www2.mundomessenger.com/data/media/3/Emo_15219_MundoMessenger_com.png" alt="=P" />’);
    
    bodyText.innerHTML = theText;
    }
    con esto deberíamos reemplazar el =P por
    Última edición por Tenshi; 31/03/2006 a las 22:36

Permisos de Publicación

  • No puedes crear nuevos temas
  • No puedes responder temas
  • No puedes subir archivos adjuntos
  • No puedes editar tus mensajes
  •  

ESCORTS Capital Federal | ESCORTS Zona Sur | ESCORTS Zona Norte | ESCORTS Zona Oeste | ESCORTS Mar del Plata | ESCORTS La Plata | ESCORTS Cordoba | ESCORTS Rosario | ESCORTS Tucuman | Escorts Almagro | Escorts Belgrano | Escorts Caballito | Escorts Centro | Escorts Flores | Escorts Microcentro | Escorts Once | Escorts Palermo | Escorts Recoleta | Escorts Tribunales | Escorts Devoto | Escorts Villa Urquiza | Escorts Caba