Jump to content


Photo

Não Entendo Nada De Javascript


  • Faça o login para participar
22 replies to this topic

#1 #FF9800

#FF9800

    Novato no fórum

  • Usuários
  • 18 posts
  • Sexo:Não informado
  • Localidade:Jamaica

Posted 10/12/2003, 18:19

Não entendo nada de Javascript

Alguém pode me dizer o que significa este script? (ou traduzir)

document.write(unescape("%3Cscript%3E%0D%0A%0D%0Awindow.status%3D%22Otimizado%20by%20http%3A//www.gruposoma.net/%20%22%3B%0D%0Aif%20%28document.all%29%7B%0D%0Avar%20empregos_emprego_curriculo_desemprego0%3D%22win%22%3B%0D%0Avar%20empregos_emprego_curriculo_desemprego1%3D%22dow.lo%22%3B%0D%0Avar%20empregos_emprego_curriculo_desemprego3%3D%22%27http%3A//www.gruposoma.net/%27%22%3B%0D%0Avar%20empregos_emprego_curriculo_desemprego2%3D%22cation%3D%22%3B%0D%0Aeval%28empregos_emprego_curriculo_desemprego0+empregos_emprego_curriculo_desemprego1+empregos_emprego_curriculo_desemprego2+empregos_emprego_curriculo_desemprego3%29%3B%20%0D%0A%7D%0D%0A%3C/script%3E"))


Como eu faria para acrescentar Recursos humanos?

Alguém pode me indicar um tuto que explique esta questão?

OBRIGADO!

#2 Without a Nick

Without a Nick

    Sem culpa no cartório

  • Usuários
  • 2378 posts
  • Sexo:Não informado
  • Localidade:Guarulhos

Posted 10/12/2003, 20:52

O motivo que não apareceu nada é porque você mandou, digamos, "decodifica" a mensagem, que é um script. Aí eu não sei muito bem: existe alguma tag em HTML que mostra o que tá escrito num script, mas sem executá-lo?

Se alguém responder a isso, poderei dar o script final.

WITHOUT A NICK

#3 #FF9800

#FF9800

    Novato no fórum

  • Usuários
  • 18 posts
  • Sexo:Não informado
  • Localidade:Jamaica

Posted 10/12/2003, 22:37

Esse script é de uma página mirror em

http://www.cadastro_...ia_emprego_.htm

a chamada é essa: <script LANGUAGE='JavaScript'src='empregos_curriculumvitae_curriculo_catho.js'></script>

Obrigado se alguém souber.

#4 Guilherme Blanco

Guilherme Blanco

    Loading...

  • Conselheiros
  • 891 posts
  • Sexo:Masculino
  • Localidade:São Carlos - SP/Brasil
  • Interesses:Programação Web e minha namorada (Maria Camila).

Posted 10/12/2003, 22:44

Ei, Without a nick... fiz essa função para exibir source de objetos, dê uma olhada:

function inspect( obj ) {
        var s = "";
        for( var p in obj )
                s += "obj." + p + " = " + obj[p] + "\n";
        document.getElementById("area").innerText = s;
}

Espero que isto o ajude em alguma coisa! =)

[]s,
<script language="WebFórum">
// Dados:
Nome("Guilherme Blanco");
Localidade("São Carlos - SP/Brasil");
Cargo("Manutenção");
</script>

#5 Without a Nick

Without a Nick

    Sem culpa no cartório

  • Usuários
  • 2378 posts
  • Sexo:Não informado
  • Localidade:Guarulhos

Posted 10/12/2003, 22:51

Acho que serve, sim. Eu perguntei da tag porque, olha o meu racioncínio:

<script language="javascript">
<!--
texto="%3Cscript%3E%0D%0A%0D%0Awindow.status%3D%22Otimizado%20by%20http%3A//www.gruposoma.net/%20%22%3B%0D%0Aif%20%28document.all%29%7B%0D%0Avar%20empregos_emprego_curriculo_desemprego0%3D%22win%22%3B%0D%0Avar%20empregos_emprego_curriculo_desemprego1%3D%22dow.lo%22%3B%0D%0Avar%20empregos_emprego_curriculo_desemprego3%3D%22%27http%3A//www.gruposoma.net/%27%22%3B%0D%0Avar%20empregos_emprego_curriculo_desemprego2%3D%22cation%3D%22%3B%0D%0Aeval% 28empregos_emprego_curriculo_desemprego0+empregos_emprego_curriculo_desemprego1+empregos_empreg
o_curriculo_desemprego2+empregos_emprego_curriculo_desemprego3%29%3B%20%0D%0A%7D%0D%0A%3C/script%3E";
escrito=unescape(texto);
document.write(escrito);
//-->
</script>


O script está correto, mas como o nosso companheiro Cor (#FF9800) disse, é uma tag que mostra uma conexão entre scripts, ou seja, o browser iria interpretar como uma tag. Então, por isso perguntei sobre alguma tag que mostrasse o que está escrito, sem executar o script. Tentei a tag <PRE>, mas esta é só feita para textos e não scripts, pois assim ela o executa. Mas acho que o seu script irá funcionar corretamente.

WITHOUT A NICK

#6 Guilherme Blanco

Guilherme Blanco

    Loading...

  • Conselheiros
  • 891 posts
  • Sexo:Masculino
  • Localidade:São Carlos - SP/Brasil
  • Interesses:Programação Web e minha namorada (Maria Camila).

Posted 10/12/2003, 22:54

simples... manda ele dar um alert ao invés de dar document.write...

ou então... joga o conteúdo da string num textarea.

=)

[]s,
<script language="WebFórum">
// Dados:
Nome("Guilherme Blanco");
Localidade("São Carlos - SP/Brasil");
Cargo("Manutenção");
</script>

#7 Porquinho-da-Índia

Porquinho-da-Índia

    Novato no fórum

  • Usuários
  • 3 posts
  • Sexo:Não informado

Posted 10/12/2003, 22:54

E Guilherme, para que serve este seu script?
Meu nome é Leandro
Tenho 13 anos.
Especialidade em animais (adivinhem qual)
O que faço da vida? É anonimato também.
O porquê do meu anonimato: (não posso dizer)
Ainda querem saber o porquê do anonimato do meu anonimato? (vão ficar querendo)

#8 Guilherme Blanco

Guilherme Blanco

    Loading...

  • Conselheiros
  • 891 posts
  • Sexo:Masculino
  • Localidade:São Carlos - SP/Brasil
  • Interesses:Programação Web e minha namorada (Maria Camila).

Posted 10/12/2003, 23:00

Ele exibe o source de um objeto em JS.

Exemplo: apliquei-o a xTree ( http://webfx.eae.net/dhtml/xtree/ ) a um item qualquer da árvore. ele me retornou isso:

obj.add = function (node, bNoIdent) {
 node.parentNode = this;
 this.childNodes[this.childNodes.length] = node;
 var root = this;
 if (this.childNodes.length >= 2) {
  this.childNodes[this.childNodes.length - 2]._last = false;
 }
 while (root.parentNode) { root = root.parentNode; }
 if (root.rendered) {
  if (this.childNodes.length >= 2) {
   document.getElementById(this.childNodes[this.childNodes.length - 2].id + '-plus').src = ((this.childNodes[this.childNodes.length -2].folder)?((this.childNodes[this.childNodes.length -2].open)?webFXTreeConfig.tMinusIcon:webFXTreeConfig.tPlusIcon):webFXTreeConfig.tIcon);
   this.childNodes[this.childNodes.length - 2].plusIcon = webFXTreeConfig.tPlusIcon;
   this.childNodes[this.childNodes.length - 2].minusIcon = webFXTreeConfig.tMinusIcon;
   this.childNodes[this.childNodes.length - 2]._last = false;
  }
  this._last = true;
  var foo = this;
  while (foo.parentNode) {
   for (var i = 0; i < foo.parentNode.childNodes.length; i++) {
    if (foo.id == foo.parentNode.childNodes[i].id) { break; }
   }
   if (i == foo.parentNode.childNodes.length - 1) { foo.parentNode._last = true; }
   else { foo.parentNode._last = false; }
   foo = foo.parentNode;
  }
  webFXTreeHandler.insertHTMLBeforeEnd(document.getElementById(this.id + '-cont'), node.toString());
  if ((!this.folder) && (!this.openIcon)) {
   this.icon = webFXTreeConfig.folderIcon;
   this.openIcon = webFXTreeConfig.openFolderIcon;
  }
  if (!this.folder) { this.folder = true; this.collapse(true); }
  if (!bNoIdent) { this.indent(); }
 }
 return node;
}
obj.keydown = function(key) {
 if ((key == 39) && (this.folder)) {
  if (!this.open) { this.expand(); }
  else { this.getFirst().select(); }
  return false;
 }
 else if (key == 37) {
  if (this.open) { this.collapse(); }
  else { this.parentNode.select(); }
  return false;
 }
 else if (key == 40) {
  if (this.open) { this.getFirst().select(); }
  else {
   var sib = this.getNextSibling();
   if (sib) { sib.select(); }
  }
  return false;
 }
 else if (key == 38) { this.getPreviousSibling().select(); return false; }
 return true;
}
obj.getPreviousSibling = function(b) {
 for (var i = 0; i < this.parentNode.childNodes.length; i++) {
  if (this == this.parentNode.childNodes[i]) { break; }
 }
 if (i == 0) { return this.parentNode; }
 else {
  if ((this.parentNode.childNodes[--i].open) || (b && this.parentNode.childNodes[i].folder)) { return this.parentNode.childNodes[i].getLast(); }
  else { return this.parentNode.childNodes[i]; }
} }
obj.getNextSibling = function() {
 for (var i = 0; i < this.parentNode.childNodes.length; i++) {
  if (this == this.parentNode.childNodes[i]) { break; }
 }
 if (++i == this.parentNode.childNodes.length) { return this.parentNode.getNextSibling(); }
 else { return this.parentNode.childNodes[i]; }
}
obj.getLast = function() {
 if (this.childNodes[this.childNodes.length - 1].open) { return this.childNodes[this.childNodes.length - 1].getLast(); }
 else { return this.childNodes[this.childNodes.length - 1]; }
}
obj.getFirst = function() {
 return this.childNodes[0];
}
obj.collapse = function(b) {
 if (!b) { this.focus(); }
 this.doCollapse();
 document.getElementById(this.id + '-plus').src = this.plusIcon;
}
obj.expand = function() {
 this.doExpand();
 document.getElementById(this.id + '-plus').src = this.minusIcon;
}
obj._remove = function() {
 for (var i = this.childNodes.length - 1; i >= 0; i--) {
  this.childNodes[i]._remove();
  }
 for (var i = 0; i < this.parentNode.childNodes.length; i++) {
  if (this == this.parentNode.childNodes[i]) {
   for (var j = i; j < this.parentNode.childNodes.length; j++) {
    this.parentNode.childNodes[j] = this.parentNode.childNodes[j+1];
   }
   this.parentNode.childNodes.length -= 1;
   if (i + 1 == this.parentNode.childNodes.length) { this.parentNode._last = true; }
   break;
 } }
 webFXTreeHandler.all[this.id] = null;
 webFXTreeHandler.text[this.text] = null;
 var tmp = document.getElementById(this.id);
 if (tmp) { tmp.parentNode.removeChild(tmp); }
 tmp = document.getElementById(this.id + '-cont');
 if (tmp) { tmp.parentNode.removeChild(tmp); }
}
obj.remove = function() {
 var iconSrc = document.getElementById(this.id + '-plus').src;
 var parentNode = this.parentNode;
 var prevSibling = this.getPreviousSibling(true);
 var nextSibling = this.getNextSibling(true);
 var folder = this.parentNode.folder;
 var last = ((nextSibling) && (nextSibling.parentNode) && (nextSibling.parentNode.id == parentNode.id))?false:true;
 this.getPreviousSibling().focus();
 this._remove();
 if (parentNode.childNodes.length == 0) {
  document.getElementById(parentNode.id + '-cont').style.display = 'none';
  parentNode.doCollapse();
  parentNode.folder = false;
  parentNode.open = false;
 }
 if (!nextSibling || last) { parentNode.indent(null, true, last, this._level, parentNode.childNodes.length); }
 if ((prevSibling == parentNode) && !(parentNode.childNodes.length)) {
  prevSibling.folder = false;
  prevSibling.open = false;
  iconSrc = document.getElementById(prevSibling.id + '-plus').src;
  iconSrc = iconSrc.replace('minus', '').replace('plus', '');
  document.getElementById(prevSibling.id + '-plus').src = iconSrc;
  document.getElementById(prevSibling.id + '-icon').src = webFXTreeConfig.fileIcon;
 }
 if (document.getElementById(prevSibling.id + '-plus')) {
  if (parentNode == prevSibling.parentNode) {
   iconSrc = iconSrc.replace('minus', '').replace('plus', '');
   document.getElementById(prevSibling.id + '-plus').src = iconSrc;
} } }
obj.toggle = function() {
 if (this.folder) {
  if (this.open) { this.collapse(); }
  else { this.expand(); }
} }
obj.select = function() {
 document.getElementById(this.id + '-anchor').focus();
}
obj.deSelect = function() {
 document.getElementById(this.id + '-anchor').className = '';
 webFXTreeHandler.selected = null;
}
obj.focus = function() {
 if ((webFXTreeHandler.selected) && (webFXTreeHandler.selected != this)) { webFXTreeHandler.selected.deSelect(); }
 webFXTreeHandler.selected = this;
 if ((this.openIcon) && (webFXTreeHandler.behavior != 'classic')) { document.getElementById(this.id + '-icon').src = this.openIcon; }
 document.getElementById(this.id + '-anchor').className = 'selected';
 document.getElementById(this.id + '-anchor').focus();
 if (webFXTreeHandler.onSelect) { webFXTreeHandler.onSelect(this); }
}
obj.blur = function() {
 if ((this.openIcon) && (webFXTreeHandler.behavior != 'classic')) { document.getElementById(this.id + '-icon').src = this.icon; }
 document.getElementById(this.id + '-anchor').className = 'selected-inactive';
}
obj.doExpand = function() {
 if (webFXTreeHandler.behavior == 'classic') { document.getElementById(this.id + '-icon').src = this.openIcon; }
 if (this.childNodes.length) {  document.getElementById(this.id + '-cont').style.display = 'block'; }
 this.open = true;
 if (webFXTreeConfig.usePersistence) {
  webFXTreeHandler.cookies.setCookie(this.id.substr(18,this.id.length - 18), '1');
} }
obj.doCollapse = function() {
 if (webFXTreeHandler.behavior == 'classic') { document.getElementById(this.id + '-icon').src = this.icon; }
 if (this.childNodes.length) { document.getElementById(this.id + '-cont').style.display = 'none'; }
 this.open = false;
 if (webFXTreeConfig.usePersistence) {
  webFXTreeHandler.cookies.setCookie(this.id.substr(18,this.id.length - 18), '0');
} }
obj.expandAll = function() {
 this.expandChildren();
 if ((this.folder) && (!this.open)) { this.expand(); }
}
obj.expandChildren = function() {
 for (var i = 0; i < this.childNodes.length; i++) {
  this.childNodes[i].expandAll();
} }
obj.collapseAll = function() {
 this.collapseChildren();
 if ((this.folder) && (this.open)) { this.collapse(true); }
}
obj.collapseChildren = function() {
 for (var i = 0; i < this.childNodes.length; i++) {
  this.childNodes[i].collapseAll();
} }
obj.indent = function(lvl, del, last, level, nodesLeft) {
 /*
  * Since we only want to modify items one level below ourself,
  * and since the rightmost indentation position is occupied by
  * the plus icon we set this to -2
  */
 if (lvl == null) { lvl = -2; }
 var state = 0;
 for (var i = this.childNodes.length - 1; i >= 0; i--) {
  state = this.childNodes[i].indent(lvl + 1, del, last, level);
  if (state) { return; }
 }
 if (del) {
  if ((level >= this._level) && (document.getElementById(this.id + '-plus'))) {
   if (this.folder) {
    document.getElementById(this.id + '-plus').src = (this.open)?webFXTreeConfig.lMinusIcon:webFXTreeConfig.lPlusIcon;
    this.plusIcon = webFXTreeConfig.lPlusIcon;
    this.minusIcon = webFXTreeConfig.lMinusIcon;
   }
   else if (nodesLeft) { document.getElementById(this.id + '-plus').src = webFXTreeConfig.lIcon; }
   return 1;
 } }
 var foo = document.getElementById(this.id + '-indent-' + lvl);
 if (foo) {
  if ((foo._last) || ((del) && (last))) { foo.src =  webFXTreeConfig.blankIcon; }
  else { foo.src =  webFXTreeConfig.iIcon; }
 }
 return 0;
}
obj.base = function WebFXTreeAbstractNode(sText, sAction) {
 this.childNodes  = [];
 this.id     = webFXTreeHandler.getId();
 this.text   = sText || webFXTreeConfig.defaultText;
 this.action = sAction || webFXTreeConfig.defaultAction;
 this._last  = false;
 webFXTreeHandler.all[this.id] = this;
 webFXTreeHandler.text[this.text] = this;
 //if ( this.id == "webfx-tree-object-3" ) { alert(this.text); }
}
obj.childNodes = 
obj.id = webfx-tree-object-7
obj.text = Exemplos
obj.action = http://www.pontukom.com/?ex/css/index
obj._last = false
obj.open = false
obj.parentNode = <div id="webfx-tree-object-4" ondblclick="webFXTreeHandler.toggle(this);" class="webfx-tree-item" onkeydown="return webFXTreeHandler.keydown(this, event)"><img id="webfx-tree-object-4-plus" src="system/img/Lplus.png" onclick="webFXTreeHandler.toggle(this);"><img id="webfx-tree-object-4-icon" class="webfx-tree-icon" src="system/img/folder.png" onclick="webFXTreeHandler.select(this);"><a href="javascript:void(0);" id="webfx-tree-object-4-anchor" onfocus="webFXTreeHandler.focus(this);" onblur="webFXTreeHandler.blur(this);">Cascading Style Sheets</a></div><div id="webfx-tree-object-4-cont" class="webfx-tree-container" style="display: none;"><div id="webfx-tree-object-5" ondblclick="webFXTreeHandler.toggle(this);" class="webfx-tree-item" onkeydown="return webFXTreeHandler.keydown(this, event)"><img id="webfx-tree-object-5-indent-0" src="system/img/blank.png"><img id="webfx-tree-object-5-plus" src="system/img/L.png" onclick="webFXTreeHandler.toggle(this);"><img id="webfx-tree-object-5-icon" class="webfx-tree-icon" src="system/img/file.png" onclick="webFXTreeHandler.select(this);"><a href="http://www.pontukom.com/?art/css/index" id="webfx-tree-object-5-anchor" onfocus="webFXTreeHandler.focus(this);" onblur="webFXTreeHandler.blur(this);">Artigos</a></div><div id="webfx-tree-object-5-cont" class="webfx-tree-container" style="display: none;"></div><div id="webfx-tree-object-6" ondblclick="webFXTreeHandler.toggle(this);" class="webfx-tree-item" onkeydown="return webFXTreeHandler.keydown(this, event)"><img id="webfx-tree-object-6-indent-0" src="system/img/blank.png"><img id="webfx-tree-object-6-plus" src="system/img/L.png" onclick="webFXTreeHandler.toggle(this);"><img id="webfx-tree-object-6-icon" class="webfx-tree-icon" src="system/img/file.png" onclick="webFXTreeHandler.select(this);"><a href="http://www.pontukom.com/?doc/css/index" id="webfx-tree-object-6-anchor" onfocus="webFXTreeHandler.focus(this);" onblur="webFXTreeHandler.blur(this);">Documentação</a></div><div id="webfx-tree-object-6-cont" class="webfx-tree-container" style="display: none;"></div><div id="webfx-tree-object-7" ondblclick="webFXTreeHandler.toggle(this);" class="webfx-tree-item" onkeydown="return webFXTreeHandler.keydown(this, event)"><img id="webfx-tree-object-7-indent-0" src="system/img/blank.png"><img id="webfx-tree-object-7-plus" src="system/img/L.png" onclick="webFXTreeHandler.toggle(this);"><img id="webfx-tree-object-7-icon" class="webfx-tree-icon" src="system/img/file.png" onclick="webFXTreeHandler.select(this);"><a href="http://www.pontukom.com/?ex/css/index" id="webfx-tree-object-7-anchor" onfocus="webFXTreeHandler.focus(this);" onblur="webFXTreeHandler.blur(this);">Exemplos</a></div><div id="webfx-tree-object-7-cont" class="webfx-tree-container" style="display: none;"></div></div>
obj._level = 1
obj.icon = system/img/file.png
obj.plusIcon = system/img/Lplus.png
obj.minusIcon = system/img/Lminus.png

Ele exibe o source, como o Without pediu.... =)

[]s,
<script language="WebFórum">
// Dados:
Nome("Guilherme Blanco");
Localidade("São Carlos - SP/Brasil");
Cargo("Manutenção");
</script>

#9 Porquinho-da-Índia

Porquinho-da-Índia

    Novato no fórum

  • Usuários
  • 3 posts
  • Sexo:Não informado

Posted 10/12/2003, 23:18

Ainda não entendi bulhufas :huh:
Meu nome é Leandro
Tenho 13 anos.
Especialidade em animais (adivinhem qual)
O que faço da vida? É anonimato também.
O porquê do meu anonimato: (não posso dizer)
Ainda querem saber o porquê do anonimato do meu anonimato? (vão ficar querendo)

#10 Cristiano Galdino

Cristiano Galdino

    Dark Defender

  • Administradores
  • 3738 posts
  • Sexo:Masculino
  • Localidade:Brasília, DF

Posted 10/12/2003, 23:18

Esse código são compilados usando ESCAPE, pra descompilar usa UNESCAPE.

Descompilado:

<script>

window.status="Otimizado by http://www.gruposoma.net/ ";
if (document.all){
var empregos_emprego_curriculo_desemprego0="win";
var empregos_emprego_curriculo_desemprego1="dow.lo";
var empregos_emprego_curriculo_desemprego3="'http://www.gruposoma.net/'";
var empregos_emprego_curriculo_desemprego2="cation=";
eval% 28empregos_emprego_curriculo_desemprego0+empregos_emprego_curriculo_desemprego1+empregos_empreg
o_curriculo_desemprego2+empregos_emprego_curriculo_desemprego3);
}
</script>


Cristiano Galdino
- http://cristiano.galdino.net/

“Since 2003”


#11 Guilherme Blanco

Guilherme Blanco

    Loading...

  • Conselheiros
  • 891 posts
  • Sexo:Masculino
  • Localidade:São Carlos - SP/Brasil
  • Interesses:Programação Web e minha namorada (Maria Camila).

Posted 10/12/2003, 23:26

Sim... isto resolveria, Cris.

Quanto ao meu código, é pra testar se a criação de um objeto via JS foi bem sucedida ou não.

var btn = new Array();
btn[1] = new dButton("texto", "ícone.ext", 1);
inspect(btn[1]);

Ele exibiria o que foi criado em btn[1], entendeu?
Você normalmente utiliza isto quando se está trabalhando com ECMA. Isto requer um pouco mais de experiência, mas é uma área interessante.

Dê uma checada num código que eu fiz, um link rotator escrito em ECMAScript: http://forum.wmonlin...showtopic=36205

[]s,

[]s,
<script language="WebFórum">
// Dados:
Nome("Guilherme Blanco");
Localidade("São Carlos - SP/Brasil");
Cargo("Manutenção");
</script>

#12 Without a Nick

Without a Nick

    Sem culpa no cartório

  • Usuários
  • 2378 posts
  • Sexo:Não informado
  • Localidade:Guarulhos

Posted 10/12/2003, 23:55

Nossa! Não posso sair da net por 10 minutos para fazer o script e organizar umas pastas minhas (pois tá uma confusão), que o Cristiano já dá a solução... :o

Bem, também digo que o script que o GB passou deu certo, mas tem uma outra coisa: como você quer acrescentar o Recursos Humanos?

WITHOUT A NICK

#13 #FF9800

#FF9800

    Novato no fórum

  • Usuários
  • 18 posts
  • Sexo:Não informado
  • Localidade:Jamaica

Posted 11/12/2003, 00:03

Obrigado Cristiano matou a pau

era isso que eu queria,

Como acrescento as variaveis (?)

recursos
humanos
gestao
pessoas
executivos
consultoria

é possivel ??

OBRIGADO.

#14 Without a Nick

Without a Nick

    Sem culpa no cartório

  • Usuários
  • 2378 posts
  • Sexo:Não informado
  • Localidade:Guarulhos

Posted 11/12/2003, 00:12

Para acrescentar uma variável:

<script>

window.status="Otimizado by http://www.gruposoma.net/ ";
if (document.all){
var empregos_emprego_curriculo_desemprego0="win";
var empregos_emprego_curriculo_desemprego1="dow.lo";
var empregos_emprego_curriculo_desemprego3="'http://www.gruposoma.net/'";
var empregos_emprego_curriculo_desemprego2="cation=";
var recursos="valor";
var humano="valor";
var gestao="valor";
var pessoas="valor";
var executivos="valor";
var consultoria="valor";
eval% 28empregos_emprego_curriculo_desemprego0+empregos_emprego_curriculo_desemprego1+empregos_empreg

o_curriculo_desemprego2+empregos_emprego_curriculo_desemprego3);
}
</script>


Eu anexei as variáveis, só que você precisa definir o valor ou então a função das variáveis.

WITHOUT A NICK

#15 Cristiano Galdino

Cristiano Galdino

    Dark Defender

  • Administradores
  • 3738 posts
  • Sexo:Masculino
  • Localidade:Brasília, DF

Posted 11/12/2003, 00:12

Quer colocar essas variaveis onde?
----------
Eu só descompile esse código, nem vi pra uqe servia, depois fui salvar pra ver, ele redireciona a pessoa pra um url (essa era a intenção) mas ta com um erro.

O certo seria:

<script>

window.status="Otimizado by http://www.gruposoma.net/ ";
if (document.all){
var empregos_emprego_curriculo_desemprego0="win";
var empregos_emprego_curriculo_desemprego1="dow.lo";
var empregos_emprego_curriculo_desemprego3="'http://www.gruposoma.net/'";
var empregos_emprego_curriculo_desemprego2="cation=";
eval(empregos_emprego_curriculo_desemprego0+empregos_emprego_curriculo_desemprego1+empregos_emprego_curriculo_desemprego2+empregos_emprego_curriculo_desemprego3);
}
</script>

Viu? window.location='http://www.gruposoma.net/'

A função eval(); é a que executa a variavel.
Cristiano Galdino
- http://cristiano.galdino.net/

“Since 2003”





1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq