Zoek de verschillen (ook al is de originele code nu weg...):
code:
1
2
3
4
5
6
7
8
9
10
11
12
| <script type="text/javascript">
if (screen.width <= 800) {
window.location = 'main.php';
} else {
var winl = (screen.width - 800) / 2;
var wint = (screen.height - 600) / 2;
winprops = 'height=600,width=800,top='+wint+',left='+winl+',scrollbars=yes,resizable=no';
window.open('main.php', '4SMS.BIZ', winprops);
}
</script> |
Intentionally left blank
ok ik heb nu dit:
Bij 800x600 doet ie wat ie moet doen alleen bij 1024x768 popt ie niet up... Waar zit dat em in??
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
| <script language="Javascript"><!--
if (screen.width <= 800) {
document.location = 'main.php';
} else {
var winl = (screen.width - 800) / 2;
var wint = (screen.height - 600) / 2;
winprops = 'width=800,height=600,top='+wint+',left='+winl+',scrollbars=yes,resizable=no';
window.open('main.php','4SMS.BIZ',winprops);
}
//-->
</script> |
Bij 800x600 doet ie wat ie moet doen alleen bij 1024x768 popt ie niet up... Waar zit dat em in??
Er mag geen . zitten in je popup naam (4SMS.BIZ).Op zaterdag 27 april 2002 13:53 schreef WebMasterMike het volgende:
ok ik heb nu dit:
code:
1 2 3 4 5 6 7 8 9 10 11 12 13<script language="Javascript"><!-- if (screen.width <= 800) { document.location = 'main.php'; } else { var winl = (screen.width - 800) / 2; var wint = (screen.height - 600) / 2; winprops = 'width=800,height=600,top='+wint+',left='+winl+',scrollbars=yes,resizable=no'; window.open('main.php','4SMS.BIZ',winprops); } //--> </script>
Bij 800x600 doet ie wat ie moet doen alleen bij 1024x768 popt ie niet up... Waar zit dat em in??
Let ook nog even op het volgende:
<script type="text/javascript">
window.location = 'main.php';
Maakt voor de werking weinig uit, maar is gewoon netter.
Intentionally left blank