Estou utilizando o script abaixo, porém gostaria que os link´s abrissem em nova janela e não na mesma janela como está acontecendo. Se alguém puder ajudar, agradeço. <html>
<head>
<meta http-equiv="Content-Language" content="pt-br">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>últimas noticias</title>
<style>
<!--
p
{margin-right:0cm;
margin-left:0cm;
font-size:12.0pt; color: #CC0000
font-family:"Times New Roman";
}
p.style10
{margin-right:0cm;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman";
}
p.MsoNormal
{mso-style-parent:"";
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";
margin-left:0cm; margin-right:0cm; margin-top:0cm}
-->
</style>
</head>
<body topmargin="10">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="69%" id="AutoNumber1">
<tr>
<td width="200%">
<!-- Edite aqui o texto e o link -->
<script language="javascript" type="text/javascript"><!--
var news = new Array([ "RECEITA FEDERAL - Aqui informações sobre Certificado Digital para empresas" , "http://www.receita.fazenda.gov.br/AtendVirtual/Orientacoes/Default.htm" ] ,
[ "ICMS - Fazenda entrega ao MP autuações com indícios de sonegação de mais de R$ 197 milhões" , "http://www.sefaz.rs.gov.br/Site/NoticiaDetalhes.aspx?NoticiaId=4331" ] ,
[ "CANOAS - Controle por câmeras amplia segurança em parques" , "http://www.canoas.rs.gov.br/Site/Noticias/Noticia.asp?notId=9836" ] ,
[ "ESCRITURAÇÃO DIGITAL exige mais cuidados por parte das empresas" , "http://www2.uol.com.br/canalexecutivo/notas10/1806201012n.htm" ] ,
[ "EMPRESARIAL - empresas de serviços escolhem como sede fiscal um município que tenha a menor carga tributária" , "http://www.classecontabil.com.br/v3/artigos/ver/2118" ] ,
[ "ICMS/Ajustar - Parcelamento de débitos - Decreto nº 47.301/2010..." , " " ] ,
[ "Regras da lei do inquilinato beneficiam fiador" , "http://www.informanet.com.br/noticias/detalhes.php?id=6347" ] ,
[ "CANOAS - Estado repassa R$12mi em contrapartidas da instalação do presídio" , "http://www.canoas.rs.gov.br/Site/Noticias/Noticia.asp?notId=9848" ] ,
[ "Rodovia do Parque - Dnit faz vistoria e garante que obra está no prazo" , "http://jcrs.uol.com.br/site/noticia.php?codn=31757" ] ,
[]
);
//--></script>
<!-- fim da edição -->
<script language="javascript" type="text/javascript"><!--
var ticker_layer = false;
var step_time = 55;
var freeze_time = 2000;
var news_index = 0;
var title_index = 0;
var end_title = "_";
var title_max_size = 77;
var pause = false;
var freeze_timeout_id;
var step_timeout_id;
var step_char_length = 1;
function prepare(){
// aki se muda o tamanho
var container_size = 505;
for ( var i = 0; i < news.length - 1; i++ ){
t = news[i][0];
t = t.replace(/\"/gi,'"');
t = t.replace(/\&/gi,'&');
t = t.replace(/\'/gi,'\'');
var dummy = document.createTextNode( t );
document.getElementById('dummy').appendChild( dummy );
var size = document.getElementById('dummy').offsetWidth;
while( size > container_size ){
t = t.substring( 0 , title_max_size );
t = t.substring( 0 , t.lastIndexOf( ' ' ) );
t += '...';
clear_element( 'dummy' );
var dummy = document.createTextNode( t );
document.getElementById('dummy').appendChild( dummy );
size = document.getElementById('dummy').offsetWidth;
}
clear_element( 'dummy' );
news[i][0] = t;
}
}
function clear_element( name ){
/* esvaziar dummy */
if ( document.getElementById( name ) ){
while ( document.getElementById( name ).lastChild != null ){
child = document.getElementById( name ).lastChild;
document.getElementById( name ).removeChild( child );
}
}
}
function begin_roll_ticker(){
window.setTimeout( "roll_ticker()" , step_time );
}
function move_next(){
if ( title_index == 0 ){
// índice de notícias já está na posição certa, apenas dar play
freeze_timeout_id = window.setTimeout( "roll_ticker()" , t );
}
else{
title_index = 0;
next_line(0);
}
}
function move_prev(){
if ( title_index == 0 ){
// índice de notícias já foi movido; corrigir
news_index == 0 ? news_index = news.length - 2 : news_index--;
prev_line(0);
}
else{
title_index = 0;
prev_line(0);
}
}
function fill_line(){
step_char_length = news[news_index][0].length - title_index;
step_timeout_id = window.setTimeout( "roll_ticker()" , step_time );
}
function t_next( obj ){
pause = false;
freeze_timeout_id = window.clearTimeout( freeze_timeout_id );
step_timeout_id = window.clearTimeout( step_timeout_id );
step_timeout_id = window.setTimeout( 'move_next()' , step_time );
}
function t_prev( obj ){
pause = false;
freeze_timeout_id = window.clearTimeout( freeze_timeout_id );
step_timeout_id = window.clearTimeout( step_timeout_id );
step_timeout_id = window.setTimeout( 'move_prev()' , step_time );
}
function t_pause( obj ){
pause = !pause;
if ( pause ){
// limpar timeout se uma notícia já estiver presente
if ( title_index == 0 && freeze_timeout_id ){
window.clearTimeout( freeze_timeout_id );
}
else{
window.clearTimeout( step_timeout_id );
step_timeout_id = window.setTimeout( "fill_line()" , step_time );
}
}
else{
if ( title_index == 0 ){
next_line(0);
}
}
}
function roll_ticker(){
var title;
if ( title_index == 0 ){
while ( document.getElementById('ticker').lastChild != null ){
child = document.getElementById('ticker').lastChild;
document.getElementById('ticker').removeChild( child );
}
}
if ( news_index < news.length + 2 && news[news_index][0].length >= title_index ){
title = news[ news_index ];
document.getElementById('ticker_anchor').setAttribute( "href" , title[1] );
s_text = title[0].substring( title_index , title_index + step_char_length );
title_index += step_char_length;
if ( step_char_length > 1 ){
step_char_length = 1;
}
if ( document.getElementById('ticker').lastChild != null ){
if ( document.getElementById('ticker').lastChild.nodeValue == "_" ){
child = document.getElementById('ticker').lastChild;
document.getElementById('ticker').removeChild( child );
}
}
txt = document.createTextNode( s_text );
document.getElementById('ticker').appendChild( txt );
if ( title[0].length > title_index ) {
if ( title_index % 10 != 0 ){
txt = document.createTextNode( "_" );
document.getElementById('ticker').appendChild( txt );
}
}
step_timeout_id = window.setTimeout( "roll_ticker()" , step_time );
}
else{
title_index = 0;
if ( !pause ){
next_line( freeze_time );
}
}
}
function next_line( t ){
news_index >= news.length - 2 ? news_index = 0 : news_index++;
freeze_timeout_id = window.setTimeout( "roll_ticker()" , t );
}
function prev_line( t ){
news_index == 0 ? news_index = news.length - 2 : news_index--;
freeze_timeout_id = window.setTimeout( "roll_ticker()" , t );
}
//--></script>
<style type="text/css"><!--
body { margin: 0; }
a { color: #CC0000; font-family: verdana; font-size: 11px; font-weight: bold; text-decoration: none; }
#tickerContent { margin: 0; padding: 0; border-collapse: collapse; border-spacing: 0 0; }
#tickerCell { width: 515px; height: 25px; line-height: 25px; padding: 0; margin: 0; vertical-align: middle; }
#buttonsCell { width: 25px; height: 25px; line-height: 25px; padding: 0 0 3px 0; margin: 0; vertical-align: middle; text-align: right; }
#dummy { color: #CC0000; font-family: verdana; font-size: 11px; font-weight: bold; text-decoration: none; margin: 0; visibility: hidden; }
--></style>
</head>
<body onLoad="prepare();begin_roll_ticker();" topmargin="10">
<table id="tickerContent" width="610" style="border-collapse: collapse" bordercolor="#111111" cellpadding="0" cellspacing="0">
<tr>
<td width="4"> </td>
<td id="tickerCell" width="508">
<a href="#" id="ticker_anchor" target="_top" name="ticker_anchor"><span id="ticker"></span></a>
<td id="buttonsCell" style="width: 128">
<a href="java script:t_prev(this);">
<img src="Texto%20digitado/icn-anterior-4x8.gif" width="36" height="25" border="0" title="Anterior"></a>
<a href="java script:t_pause(this);">
<img src="Texto%20digitado/icn-pausa-6x8.gif" width="39" height="25" border="0" title="Pausa"></a>
<a href="java script:t_next(this);">
<img src="Texto%20digitado/icn-proximo-4x8.gif" width="34" height="25" border="0" title="Próxima"></a>
</td>
</tr>
</table>
<span id="dummy"></span>
</body>
</html></td>
</tr>
</table>
</body>
</html>