PDA

Volledige versie bekijken : Popup Script aanpassen / titels in bovenbalk


last
%Europe/Berlin %375 %2005, 10:00
Hoe pas ik dit script aan om geen andere teksten, zoals het webadres of Microsoft Internet Explorer, in de bovenbalk te krijgen.
<!--
function Foto(img){
foto1= new Image();
foto1.src=(img);
CheckFoto(img);
}
function CheckFoto(img){
if((foto1.width!=0)&&(foto1.height!=0)){
viewFoto(img);
}
else{
uitvoering="CheckFoto('"+img+"')";
interval=setTimeout(uitvoering,20);
}
}
function viewFoto(img){
imgbreedte=foto1.width;
imghoogte=foto1.height;
vars="width="+imgbreedte+",height="+imghoogte+",left="+((screen.width-imgbreedte)/2)+",top="+((screen.height-imghoogte)/2);
newwindow=window.open("","nieuwvenster",vars);
newwindow.document.write("<html>\n<head>\n<title>KLIK OP DE AFBEELDING OM TE SLUITEN</title>\n");
newwindow.document.write("<meta http-equiv=\"imagetoolbar\" content=\"no\">\n");
newwindow.document.write("</head>\n\n<body style=\"margin: 0 0 0 0;\">\n");
newwindow.document.write("<img src=\""+img+"\" border=\"0\" onclick=\"javascript:window.close()\">\n");
newwindow.document.write("</body>\n</html>\n");
newwindow.document.focus();
newwindow.document.close();
}
// einde script -->

mknol
%Europe/Berlin %450 %2005, 11:49
Handig script he!? Je hebt het al goed gedaan hoor. pas de text in de <title> aan. je kan er hetvolgende nog doen (beetje crappy manier om titel in om internet explorer weg te laten), dat werkt ook goed:
newwindow.document.write("<html>\n<head>\n<title>HIER JOUW TEXT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </title>\n");

Of zoiets

<!--
function Foto(img){
foto1= new Image();
foto1.src=(img);
CheckFoto(img);
}
function CheckFoto(img){
if((foto1.width!=0)&&(foto1.height!=0)){
viewFoto(img);
}
else{
uitvoering="CheckFoto('"+img+"')";
interval=setTimeout(uitvoering,20);
}
}
function viewFoto(img){
imgbreedte=foto1.width;
imghoogte=foto1.height;
vars="width="+imgbreedte+",height="+imghoogte+",left="+((screen.width-imgbreedte)/2)+",top="+((screen.height-imghoogte)/2);
newwindow=window.open("","nieuwvenster",vars);
newwindow.document.write("<html>\n<head>\n<title>HIER JOUW TEXT</title>\n");
newwindow.document.write("<meta http-equiv=\"imagetoolbar\" content=\"no\">\n");
newwindow.document.write("</head>\n\n<body style=\"margin: 0 0 0 0;\">\n");
newwindow.document.write("<img src=\""+img+"\" border=\"0\" onclick=\"javascript:window.close()\">\n");
newwindow.document.write("</body>\n</html>\n");
newwindow.document.focus();
newwindow.document.close();
}
// einde script -->