djudner Posted April 29, 2013 at 06:05 PM Report #505212 Posted April 29, 2013 at 06:05 PM Olá Estou ás voltas com um problema, em que pretendo que se abra o link ao clicar em outra janela ou aba do browser. Neste momento abre no mesmo sitio que é uma iframe. Esta é a parte do codigo: </script> <img src="avaplayer/noar_public_html.jpg" border='1' width="225" height="150"> <marquee id="scroller1" scrollamount="4" onmouseover="stop();" onmouseout="start();" behavior="scroll" direction="left" width="250"> <script type="text/javascript"> document.write("<a href='"+txtlink+"'>"+txt+" - "+txt1+"</a>"); </script> </marquee> é no marquee que se clica e abre o link, so que pretendo que ele abra noutra pa´gina, será possivel fazer isto? Obrigado
yoda Posted April 29, 2013 at 06:08 PM Report #505213 Posted April 29, 2013 at 06:08 PM (edited) target="_blank" document.write("<a href='"+txtlink+"' target='_blank'>"+txt+" - "+txt1+"</a>"); Edited April 29, 2013 at 06:09 PM by yoda before you post, what have you tried? - http://filipematias.info sense, purpose, direction
djudner Posted April 29, 2013 at 06:22 PM Author Report #505220 Posted April 29, 2013 at 06:22 PM Ola Obrigado pela resposta! Pois, acho que ja tinha experimentado sem resulktado, voltei a experimentar, mas ele abre na mesma dentro da iframe.
djudner Posted April 30, 2013 at 01:11 PM Author Report #505310 Posted April 30, 2013 at 01:11 PM Esqueci-em referir, que o iframe está num site em joomla. Não sei se tem influencia! Obrigado.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now