Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

F-gos

Preencher campos com onChange

Recommended Posts

ola pessoal ...

 

tenho esse script para top do site, funciona assim toda vez q eu entrar no site aparece uma imagem diferente no top. até ai tudo bem ....

.... mas agora eu gostaria de acrescentar um link nas imagens, toda vez q eu clico nas imagens abre a pagina de contato.

 

segue o codigo

 

<!--  var currentdate = 0;  var core = 0;  function StringArray (n) {	this.length = n;	for (var i =0; i < n; i++) {	  this[i] = 'images/foto'+i+'.jpg';	}  }  image = new StringArray(6);  var ran = 60/image.length;  function ranimage() {	currentdate = new Date();	core = currentdate.getSeconds();	core = Math.floor(core/ran);	return(image[core]);  }  document.write("<img src='" +ranimage()+ "' alt='DebCred - Sistema de gestão empresarial ERP organiza informações de vendas, CRM, contabilidade, fiscal, finanças, ativo fixo, PCP, produção, MRP, estoques, engenharia, custos, BI business intelligence.' border=0>");
sei q tenho q acrescentar nessa parte (document.write) mas oq ponho???

Compartilhar este post


Link para o post
Compartilhar em outros sites

<!--  var currentdate = 0;  var core = 0;  function StringArray (n) {	this.length = n;	for (var i =0; i < n; i++) {	  this[i] = 'images/foto'+i+'.jpg';	}  }  image = new StringArray(6);  var ran = 60/image.length;  function ranimage() {	currentdate = new Date();	core = currentdate.getSeconds();	core = Math.floor(core/ran);	return(image[core]);  }  document.write("<a href='" +ranimage()+ "' target='_blank'><img src='" +ranimage()+ "' alt='DebCred - Sistema de gestão empresarial ERP organiza informações de vendas, CRM, contabilidade, fiscal, finanças, ativo fixo, PCP, produção, MRP, estoques, engenharia, custos, BI business intelligence.' border=0></a>");

prontim :lol:

Compartilhar este post


Link para o post
Compartilhar em outros sites

Eu uso este para imagens randomicas com link:

 

<script language="JavaScript" type="text/javascript">		intRandom = Math.random()*2;		intRandom = Math.ceil(intRandom);		switch (intRandom) {		   case 1 :			  strLink = "" 			  figura="logo01.jpg"				alvo="http://www.google.com"			  break;		   case 2 :			  strLink = "" 			  figura="logo02.jpg"				alvo="http://www.google.com"			  break;		} 		document.write ("<a href=" + alvo + "> <img src='imagens/" + figura + "' border=0> </a>"); 	  </script>

Compartilhar este post


Link para o post
Compartilhar em outros sites

Se o link sempre for faq.htm é assim:

<!--  var currentdate = 0;  var core = 0;  function StringArray (n) {	this.length = n;	for (var i =0; i < n; i++) {	  this[i] = 'images/foto'+i+'.jpg';	}  }  image = new StringArray(6);  var ran = 60/image.length;  function ranimage() {	currentdate = new Date();	core = currentdate.getSeconds();	core = Math.floor(core/ran);	return(image[core]);  }  document.write("<a href='faq.htm' target='_blank'><img src='" +ranimage()+ "' alt='DebCred - Sistema de gestão empresarial ERP organiza informações de vendas, CRM, contabilidade, fiscal, finanças, ativo fixo, PCP, produção, MRP, estoques, engenharia, custos, BI business intelligence.' border=0></a>");

:D

Compartilhar este post


Link para o post
Compartilhar em outros sites

Se o link sempre for faq.htm é assim:

<!--  var currentdate = 0;  var core = 0;  function StringArray (n) {	this.length = n;	for (var i =0; i < n; i++) {	  this[i] = 'images/foto'+i+'.jpg';	}  }  image = new StringArray(6);  var ran = 60/image.length;  function ranimage() {	currentdate = new Date();	core = currentdate.getSeconds();	core = Math.floor(core/ran);	return(image[core]);  }  document.write("<a href='faq.htm' target='_blank'><img src='" +ranimage()+ "' alt='DebCred - Sistema de gestão empresarial ERP organiza informações de vendas, CRM, contabilidade, fiscal, finanças, ativo fixo, PCP, produção, MRP, estoques, engenharia, custos, BI business intelligence.' border=0></a>");
:D
valeus

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.