Skal åbne i samme vindue
Hejsa alleKan det lade sig at åbne disse links i det samme vindue?
Mit link ser således ud:
<a href=\"java script:;\" onclick=\"PopupPic('url=" + dr[1] + "" + dr[0] + "','" + dr[2] + "')\"><img src=\"../dataentry/gitte/filmfotos/" + dr[1] + ".jpg\" alt=\"" + dr[2] + "\" border=\"0\" /></a>
function PopupPic(sPicURL,alt)
{
window.open("Popup.aspx?" + sPicURL + "&alt=" + alt,"","resizable=1,height=100,width=100");
self.focus();
}
Dette script resizer vinduet til billedets størrelse:
var arrTemp = self.location.href.split("?");
var picUrl = (arrTemp.length > 0)?arrTemp[1]:"";
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();
}
http://www.whyweb.dk/gitte/filmfotos_vis.aspx
alpapa
