Issue NOT use
This script makes the popup sit behind the main webpage once clicked off it and if another image is chosen to enlarge the image will not be seen as it is still sits behind the main web page.
What I am asking
Is it possible to add some script to this code to make the popup always sit on top when the script is activated?
Excuse me if it sounds like a dull question it's just I am not a developer and would really appreciate any help.
Thank you
This script makes the popup sit behind the main webpage once clicked off it and if another image is chosen to enlarge the image will not be seen as it is still sits behind the main web page.
What I am asking
Is it possible to add some script to this code to make the popup always sit on top when the script is activated?
Code:
<script type="text/javascript">
function jkpopimage(image) {
function detectexist(obj){
return (typeof obj !="undefined")
}
var i = new Image();
i.src = image;
var x = i.width;
var y = i.height;
// window.status for degugging:
window.status = image + " = " + x + " x " + y + " pixels";
var z = "scrollbars=no,width=" + (x+20) + ",height=" + (y+20);
window.open(image,"image",z);
}
</script>
Thank you
Comment