sto utilizzando il codice che riporto sotto per la gestione di banner a rotazione linkati ad altre pagine. Essendo inserito in un frame, in alcuni casi avrei bisogno che il link apra una nuova pagina. Come posso fare per differenziare i target?
Grazie!
*s

function loadpage() {

browver= parseInt(navigator.appVersion);

browtype = navigator.appName;

browsertype = "old";

if (browtype == "Netscape" && !(browver < 3)) {

browsertype = "new";

}

if (browtype == "Microsoft Internet Explorer" && !(browver < 4)) {

browsertype = "new";

}

if (browsertype == "new") {

thetimer = setTimeout("changeimage()", 3000);

banneradcode = 0;

listofimages = new Array(9);

listofimages[0] = new Image(489,73)

listofimages[0].src = "http://www.pippo.pi/banner-0.gif"

listofimages[1] = new Image(489,73)

listofimages[1].src = "http://www.pippo.pi/banner-1.gif"

listofimages[2] = new Image(489,73)

listofimages[2].src = "http://www.pippo.pi/banner-2.gif"

listofimages[3] = new Image(489,73)

listofimages[3].src = "http://www.pippo.pi/banner-3.gif"

listofimages[4] = new Image(489,73)

listofimages[4].src = "http://www.pippo.pi/banner-4.gif"

listofimages[5] = new Image(489,73)

listofimages[5].src = "http://www.pippo.pi/banner-5.gif"

listofimages[6] = new Image(489,73)

listofimages[6].src = "http://www.pippo.pi/banner-6.gif"

listofimages[7] = new Image(489,73)

listofimages[7].src = "http://www.pippo.pi/banner-7.gif"

listofimages[8] = new Image(489,73)

listofimages[8].src = "http://www.pippo.pi/banner-8.gif"


}

}



function changeimage(){

if (browsertype == "new") {

banneradcode = banneradcode + 1

if (banneradcode == "9") {

banneradcode = 0

}

imagesource = "http://www.pippo.pi/banner-" + banneradcode + ".gif"

window.document.bannerad.src = imagesource

thetimer = setTimeout("changeimage()", 5000);

}

else if (browsertype == "old") {

}

}



function changepage() {

if (browsertype == "new") {

if (banneradcode == 0) {

newlocation = "http://www.pippo.pi/"

}


else if (banneradcode == 1) {

newlocation = "http://www.pippo.pi/"

}

else if (banneradcode == 2) {

newlocation = "http://www.pippo.pi/"

}

else if (banneradcode == 3) {

newlocation = "www.pippo.pi"

}

else if (banneradcode == 4) {

newlocation = "www.pippo.pi"

}

else if (banneradcode == 5) {

newlocation = "www.pippo.pi"

}

else if (banneradcode == 6) {

newlocation = "www.pippo.pi"




}

else if (banneradcode == 7) {

newlocation = "www.pippo.pi"

}

else if (banneradcode == 8) {

newlocation = "www.pippo.pi"




}

location = newlocation


}


else if (browsertype == "old") {

location = "http://www.pippo.pi/"

}

}