Newsgroup: it.comp.lang.javascript
Titolo: Niubbo 0 - Slideshow 1

Ciao, sono un nuovo apprendista del linguaggio Java, e, non ci crederete, ma
ho un problema! :D
Io ho uno script funzionante per realizzare uno slideshow con descrizione e
link per ingrandire le immagini.
Il problema consiste nel fatto che vorrei fargli ingrandire le foto in una
nuova pagina, invece che nella stessa con conseguente ri-caricamento.
So che la riga che fa questo è la seguente: "
window.location=OneLinks[Onecurrent] "
Ma non sono riuscito a trovare l'istuzione per aprire in una nuova pagina.
Lo script è il seguente, come posso fare???
Grazie per l'aiuto
Matteo
----------------------------------------
<head>
<SCRIPT LANGUAGE="JavaScript">
var Onerotate_delay = 1500; // delay in milliseconds (5000 = 5 secs)
Onecurrent = 0;
var OneLinks = new Array(2);
OneLinks[0] = "images/1.jpg";
OneLinks[1] = "images/2.jpg";
function Onenext() {
if (document.Oneslideform.Oneslide[Onecurrent+1]) {
document.images.Oneshow.src =
document.Oneslideform.Oneslide[Onecurrent+1].value;
document.Oneslideform.Oneslide.selectedIndex = ++Onecurrent;
   }
else Onefirst();
}
function Oneprevious() {
if (Onecurrent-1 >= 0) {
document.images.Oneshow.src =
document.Oneslideform.Oneslide[Onecurrent-1].value;
document.Oneslideform.Oneslide.selectedIndex = --Onecurrent;
   }
else Onelast();
}
function Onefirst() {
Onecurrent = 0;
document.images.Oneshow.src = document.Oneslideform.Oneslide[0].value;
document.Oneslideform.Oneslide.selectedIndex = 0;
}
function Onelast() {
Onecurrent = document.Oneslideform.Oneslide.length-1;
document.images.Oneshow.src =
document.Oneslideform.Oneslide[Onecurrent].value;
document.Oneslideform.Oneslide.selectedIndex = Onecurrent;
}
function Oneap(text) {
document.Oneslideform.Oneslidebutton.value = (text == "Stop") ? "Start" :
"Stop";
Onerotate();
}
function Onechange() {
Onecurrent = document.Oneslideform.Oneslide.selectedIndex;
document.images.Oneshow.src =
document.Oneslideform.Oneslide[Onecurrent].value;
}
function Onerotate() {
if (document.Oneslideform.Oneslidebutton.value == "Stop") {
Onecurrent = (Onecurrent == document.Oneslideform.Oneslide.length-1) ? 0 :
Onecurrent+1;
document.images.Oneshow.src =
document.Oneslideform.Oneslide[Onecurrent].value;
document.Oneslideform.Oneslide.selectedIndex = Onecurrent;
window.setTimeout("Onerotate()", Onerotate_delay);
}
}
function Onetransport(){
window.location=OneLinks[Onecurrent]
}
</SCRIPT>
</head>
<body>
<TABLE border="0" cellspacing="0" cellpadding="0">
  <TR>
    <TD>
      <form name="Oneslideform" >
        <DIV align="center">
          <TABLE width="150" border="1" cellspacing="0" cellpadding="4"
bordercolor="#FF0000">
            <TR>
              <TD bgcolor="#0000FF">
                <DIV align="center">
                  <p align="center"><B><FONT color="#FFFFFF">Image
Slideshow</FONT></B></DIV>
              </TD>
            </TR>
            <TR>
              <TD bgcolor="#FFFFFF">
                <DIV align="center">
                  <p align="center"><A href="javascript:Onetransport()"><IMG
src="images/thbfoto1.jpg" width="80" height="80" name="Oneshow"
border="0"></A></DIV>
              </TD>
            </TR>
            <TR>
              <TD bgcolor="#0000FF">
                <DIV align="center">
                  <p align="center">
                  <SELECT name="Oneslide" onChange="Onechange();">
                    <OPTION value="images/thb1.jpg"  selected>Foto1</OPTION>
                    <OPTION value="images/thb2.jpg">Foto2</OPTION>
                  </SELECT>
      </DIV>
              </TD>
            </TR>
            <TR>
              <TD bgcolor="#0000FF">
                <DIV align="center">
                  <p align="center">
                  <INPUT type=button onClick="Oneprevious();" value="<<"
title="Previous">
                  <INPUT type=button name="Oneslidebutton"
onClick="Oneap(this.value);" value="Start" title="AutoPlay">
                  <INPUT type=button onClick="Onenext();" value=">>"
title="Next">
          </DIV>
              </TD>
            </TR>
          </TABLE>
        </DIV>
      </form>
    </TD>
  </TR>
</TABLE>
</body>


Ma sei troooopppppo un mito!!!!!!!!
Funzia!!!!!!
Graaaaaaaazzziiieeeeeeeeeeeeeeeeee :))))))))