heej lui ik wil in mijn website foto's zetten, nu is het probleem dat als je deze op ware grootte houd je de pagina zo vol hebt. nu heb ik ze dus allemaal klein gemaakt en als je er op klikt dan worden ze vergroot dmv javascript..:
In <head>
<SCRIPT LANGUAGE="JavaScript">
<!--
function popUpCenteredWindow(){
var iMyWidth;
var iMyHeight;
iMyWidth = (window.screen.width/2) - (300 + 10)
iMyHeight = (window.screen.height/2) - (150 + 50)
var win2 = window.open("2.htm","Window2","status,height=330,width=500,resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=no")
}
//-->
</script>
en in <body>
<A HREF="javascript:void()" onClick="popUpCenteredWindow()">[img]"../Website/images/foto.GIF"[/img]</A>
het probleem is dat dit maar bij een foto werkt.. als ik een andere maak komtie op dezelfde site uit als de vorige foto.. snappen jullie em?
wie weet wat ik aan moet passen om dit per foto goed te laten gaan?
In <head>
<SCRIPT LANGUAGE="JavaScript">
<!--
function popUpCenteredWindow(){
var iMyWidth;
var iMyHeight;
iMyWidth = (window.screen.width/2) - (300 + 10)
iMyHeight = (window.screen.height/2) - (150 + 50)
var win2 = window.open("2.htm","Window2","status,height=330,width=500,resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=no")
}
//-->
</script>
en in <body>
<A HREF="javascript:void()" onClick="popUpCenteredWindow()">[img]"../Website/images/foto.GIF"[/img]</A>
het probleem is dat dit maar bij een foto werkt.. als ik een andere maak komtie op dezelfde site uit als de vorige foto.. snappen jullie em?
wie weet wat ik aan moet passen om dit per foto goed te laten gaan?