D
Daniele petracca
<SCRIPT TYPE="text/javascript">
if (screen.width==1024) {
distanza=100;
sinistra=100;
}
else {
distanza=10;
sinistra=10;
}
document.write(screen.width);
</script>
....
< href="noJS.html"
onclick="apri('frametotali.htm','finestra1','width=790,height=565,top=?,left
=?,toolbar=no,resizable=no');">
I wanna make a choice
if resolution is 1024x768 distanza and sinistra will get 100 as value
if resolution is 800x600 distanza and sinistra will get 10 as value
How can i apply those values to the top and left of the popup opened by the
onclick?
thank you
daniele
if (screen.width==1024) {
distanza=100;
sinistra=100;
}
else {
distanza=10;
sinistra=10;
}
document.write(screen.width);
</script>
....
< href="noJS.html"
onclick="apri('frametotali.htm','finestra1','width=790,height=565,top=?,left
=?,toolbar=no,resizable=no');">
I wanna make a choice
if resolution is 1024x768 distanza and sinistra will get 100 as value
if resolution is 800x600 distanza and sinistra will get 10 as value
How can i apply those values to the top and left of the popup opened by the
onclick?
thank you
daniele