Menu
Hi,
If anyone could suggest a java script that does best at the following;
I would like to be able to click on my photos to get a pop-up with an enlarged view.
Problem; All scripts I have tried, I cannot figure out how to get my pictures linked properly; Any help would be sooooo appreciated!!!
Thanks!
S
? and new at this stuff
var largerView = "";
var winToggle = false;
function openFullSize(Pix){
if (winToggle == true){largerView.close()}
document.getElementById('nullIMG').src = Pix;
wStr = document.getElementById('nullIMG').width;
offsetW = wStr;
wStr = wStr+20;
wStr = "width="+wStr;
hStr = document.getElementById('nullIMG').height;
offsetH = hStr;
hStr = hStr+20;
hStr = "height="+hStr;
lStr = (screen.width-50-offsetW)/2;
lStr = "left="+lStr;
tStr = (screen.availHeight-50-offsetH)/2;
tStr = "top="+tStr;
largerView = window.open(Pix,"FullSize","toolbar=0,status=0, "+tStr+","+lStr+","+wStr+","+hStr+" ");
largerView.document.images[0].alt = "This is a description";
winToggle = true;
}
function buildSupport(){
styleStr = "<Style> .placeHolder {Position:Absolute;Top:-2000}</Style>";
divStr = "<Div class=placeHolder><IMG Src=Null ID=nullIMG></Div>"
document.write(styleStr);
document.write(divStr);
}
buildSupport();
window.onunload=function(){
if (winToggle && !largerView.closed){largerView.close()}
}
0.1.9 — BETA 6.1