ArmandRicard
Legacy Member
Hey,
Als ik op een thumb klik wil ik dat de grote image in een nieuw venster wordt geopend. Dit popupvenster past zich automatisch aan aan de size van de image. Ik doe dit door de volgende functie in mijn verwijspagina:
function PopupPic(sPicURL,sPicTitle) {
window.open( "popup.html?"+sPicURL+"?"+sPicTitle,"","resizable=1,HEIGHT=200,WIDTH=200");
Ik geef dus de image en een title mee voor de image, zodat wanneer de gebruiker over de grote image hoovert, de title verschijnt.
ik roep de functie aan met:
window.location="javascript
opupPic('watcher.jpg','Durin's Bane')"
Het is met die Durin's Bane dat het foutloopt. Die quote wil maar niet parsen.
window.location="javascript
opupPic('watcher.jpg','Durin\'s Bane')" met escape character voor de quote werkt ook niet..
in de popuppagina is dit de code:
<html>
<head>
<title>:+: Crusade Alliance :+:</title>
<script language='javascript'>
var arrTemp=self.location.href.split("?");
var picUrl = (arrTemp[1].length>0)?arrTemp[1]:"";
var picTitle= (arrTemp[2].length>0)?arrTemp[2]:"";
var NS = (navigator.appName=="Netscape")?true:false;
function FitPic() {
iWidth = (NS)?window.innerWidth:document.body.clientWidth;
iHeight = (NS)?window.innerHeight:document.body.clientHeight;
iWidth = document.images[0].width - iWidth;
iHeight = document.images[0].height - iHeight;
window.resizeBy(iWidth, iHeight);
self.focus();
};
</script>
</head>
<body bgcolor="#000000" onload='FitPic();' topmargin="0"
marginheight="0" leftmargin="0" marginwidth="0">
<script language='javascript'>
picTitle=picTitle.replace(/%20/g,' ')
document.write( "<img src='" + picUrl + "' title='" + picTitle + "' border=0>" );
</script>
</body>
</html>
Help mij aub voor ik mijn laptop door het raam gooi met mij erachter
Groeten,
Marius
Als ik op een thumb klik wil ik dat de grote image in een nieuw venster wordt geopend. Dit popupvenster past zich automatisch aan aan de size van de image. Ik doe dit door de volgende functie in mijn verwijspagina:
function PopupPic(sPicURL,sPicTitle) {
window.open( "popup.html?"+sPicURL+"?"+sPicTitle,"","resizable=1,HEIGHT=200,WIDTH=200");
Ik geef dus de image en een title mee voor de image, zodat wanneer de gebruiker over de grote image hoovert, de title verschijnt.
ik roep de functie aan met:
window.location="javascript
opupPic('watcher.jpg','Durin's Bane')"Het is met die Durin's Bane dat het foutloopt. Die quote wil maar niet parsen.
window.location="javascript
opupPic('watcher.jpg','Durin\'s Bane')" met escape character voor de quote werkt ook niet..in de popuppagina is dit de code:
<html>
<head>
<title>:+: Crusade Alliance :+:</title>
<script language='javascript'>
var arrTemp=self.location.href.split("?");
var picUrl = (arrTemp[1].length>0)?arrTemp[1]:"";
var picTitle= (arrTemp[2].length>0)?arrTemp[2]:"";
var NS = (navigator.appName=="Netscape")?true:false;
function FitPic() {
iWidth = (NS)?window.innerWidth:document.body.clientWidth;
iHeight = (NS)?window.innerHeight:document.body.clientHeight;
iWidth = document.images[0].width - iWidth;
iHeight = document.images[0].height - iHeight;
window.resizeBy(iWidth, iHeight);
self.focus();
};
</script>
</head>
<body bgcolor="#000000" onload='FitPic();' topmargin="0"
marginheight="0" leftmargin="0" marginwidth="0">
<script language='javascript'>
picTitle=picTitle.replace(/%20/g,' ')
document.write( "<img src='" + picUrl + "' title='" + picTitle + "' border=0>" );
</script>
</body>
</html>
Help mij aub voor ik mijn laptop door het raam gooi met mij erachter

Groeten,
Marius

lidelink()">
