Newsgroup: it.comp.www.html
Titolo: Pagina aperta in un'altra finestra.Come?

Come faccio a fare in modo che quando clicco sull'immagine relativa ad un
URL, la nuova pagina venga aperta in un'altra finestra? ho provato con
target="_blank" oppure "window-1" ma con lo script sotto riportato non
funziona:
<SCRIPT LANGUAGE="JavaScript">
<!-- Hide from JavaScript-Impaired Browsers
/* First, if you load fewer or more than 6 sponsors
   into your rotator, change the "sponnr" variable
   to the actual number of sponsor .gifs you plan to
   load. */
number_of_sponsors=6;
var sctr=0;
var halt=0;
var isn=new Array();
for (i=0;i<number_of_sponsors;i++){
 isn[i]=new Image();
}
/* The sponsor .gif names are loaded into the isn[x]
   sponsor images array.  You may load any number of
   sponsor images (.gif or .jpg or both) into this
   array. They must all be the same size, however.
   Substitute your own .gif filenames for the ones
   shown here. Note that the first .gif must appear
   in the isn[0] array element. */
isn[0].src="aqua.jpg";
isn[1].src="controco.jpg";
isn[2].src="divetrav.jpg";
isn[3].src="scubatim.jpg";
isn[4].src="scubatou.jpg";
isn[5].src="testatasub.gif";
/* Finally, replace the URL's below with those of
   your sponsors IN THE SAME ORDER. */
var durl=new Array();
durl[0]="
http://www.aqva.com/
";
durl[1]="
http://www.scuba.it/ssi/contro/controb.htm
";
durl[2]="
http://www.divetravel.com/
";
durl[3]="
http://www.scubatimes.com
";
durl[4]="
http://www.scubatour.it/home.htm
";
durl[5]="
http://www.subacqueo.it/
";
/* This script is set to rotate every 10 seconds.
   (5000=5 seconds, so 30000 would equal 30, etc)
   You should change the number in the setTimeout()
   call below for the number of seconds you wish. */
function rotateIt(){
 if (halt!=1){
  sctr++;
  if (sctr>number_of_sponsors-1){
   sctr=0;
   }
  document.sponsor.src=isn[sctr].src;
  setTimeout("rotateIt()",3000);
  }
 }
/* This code will work just fine with or without
   frames.  However, if you are in frames and wish
   to replicate the TARGET="_top" call to remove
   frames, change the location.href call to:
    parent.location.href=durl[sctr];
   below. */
function doIt(){
 halt=1;
 location.href=durl[sctr];
 }
function dispIt(){
 parent.window.status=durl[sctr];
 }
// End Hiding -->
</SCRIPT>
</HEAD>
<BODY>
<CENTER><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR><TD><A HREF="npgspo.htm" onClick="doIt();return false"
onMouseover="dispIt();return true;">
<IMG SRC="siti_htm.gif" HEIGHT=60 WIDTH=180 NAME="sponsor"
BORDER=0></TD></TR>
</TABLE></CENTER>
<!-- Or, you may wish to have content appear here below
     the rotating sponsor banners.
     IMPORTANT!!! - This little script below is necessary
     right at the bottom of your HTML to begin the sponsor
     banner rotation: -->
<SCRIPT LANGUAGE="JavaScript">
<!-- Hide JavaScript from Java-Impaired Browsers
sctr=0;
rotateIt();
// End Hiding -->
</SCRIPT>
Grazie a Tutti coloro che vorranno  aiutarmi  
mmm...@mmstudio.com
  togliere
le prime 2 mm per rispondere eventualmente via e-mail.
Grazie

<a
href="javascript:window.open('nomefile.htm','Check','toolbar=no,location=no,
directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,hei
ght=228,top=100,left=200')">
I parametri settabili con yes o no sono:
1) Toolbar: barra dei comandi
2) location: barra dell'indirizzo
3) directories: preferiti
4) status: barra di stato
5) menubar: barra dei menů
6) scrollbars: barre di scorrimento
7) resizable: Ridimenzionamento possibilie o meno
8) width: larghezza finestra
9) height: altezza finestra
10) top: margine superiore dello schermo
11) left: margine sinistro dello schermo
Ciao
Giuseppe Di Natale
gdin...@tin.it
----------------
DiNet Group Worldwide Org.
http://utenti.tripod.it/dg

 }
sostituisci location.href con window.open.
Ciao
Roberto
--
i dati negli header sono modificati. Per rispondere
in email sostituire katanga con freemail.
Il Mondiale di F1-Hakkinen espugna Barcellona.
http://www.geocities.com/MotorCity/Downs/5794
Calcolo del bollo on line/Verifiche revisioni auto
http://utenti.tripod.it/aut_marche
--------------------------------------------