Jump to content

Recommended Posts

Posted

boas

Bem, num site que estou a fazer, queria colocar umas imagens aleatorias!

Nessas imagens queria colocar tambem um link!

Eu conheço este código, mas ao clicar na imagem, o link aparece na mesma janela, o que eu queria era que abri-se noutra janela externa!

Podem-me ajudar?

<script language="JavaScript">
var quotes=new Array()
quotes[0]='<a href="LINK"><img alt="NOME DO BLOG" src="Imagem"/></a>'
quotes[1]='<a href="Link"><img alt="NOME DO BLOG" src="Imagem"/></a>'
quotes[2]='<a href="Link"><img alt="NOME DO BLOG" src="Imagem"/></a>'
var whichquote=Math.floor(Math.random()*(quotes.length))
document.write(quotes[whichquote])
</script>

Obrigado

cumps

Visual Studio 2010 C#

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.