Voltar para Paste Lymas | pasteLog v. 2.0-alpha

Visualizando código



Postado por Giverny em 19/01/2012 07:36:10.
http://paste.lymas.com.br/2354

Clique AQUI para fazer download do código. Esconder número da linha

  1.             /*
  2.              * Ajuda pro Fernando
  3.              *
  4.              * Author: Giverny - #PHP-BR
  5.              */
  6.            
  7.             function Fernando(str, str1, args){
  8.                
  9.                 self = this;
  10.  
  11.                     self.str = 'Fernando';
  12.                     self.str1 = 'Giverny';
  13.                     self.args = new Array();
  14.             };
  15.            
  16.             Fernando.prototype.concatenaStr = function(seletor){
  17.                
  18.                 try{
  19.                     seletor = $(seletor);
  20.                    
  21.                     seletor.append(self.str, self.str1);
  22.                    
  23.                 }catch(e){
  24.                     document.write(e.message);
  25.                 }
  26.                
  27.             };
  28.            
  29.             Fernando.prototype.concatenaArr = function(seletor){
  30.                
  31.                 try{
  32.                     seletor = $(seletor);
  33.                    
  34.                     self.args[0] = 'Fernando';
  35.                     self.args[1] = 'Giverny';
  36.                    
  37.                     seletor.append(self.args[0], self.args[1]);
  38.                    
  39.                 }catch(e){
  40.                     document.write(e.message);
  41.                 }
  42.                
  43.             };
  44.            
  45.             $(function(){
  46.                 Pessoa = new Fernando();
  47.                 Pessoa.concatenaArr('p');
  48.                 Pessoa.concatenaStr('p');
  49.             });


Colando um novo código


Seu Apelido:
Guardar o apelido em um cookie?

Linguagem:


Código: