Tja, jag undrar hur man får scrollen att visa sig både X och Y på detta Jojoxx script?
<script type="text/javascript">
/* The code contained in this file is copyrighted by [url]www.jojoxx.net[/url]
The file may be used for none commercial applications and distributed
as long as these lines remain intact. The file or part of it may not
be sold or included in any other commercial application without
agreement from the author. If you have questions or comments, contact
the author at [url]http://www.jojoxx.net[/url]
© Copyright - [url]www.jojoxx.net[/url] - 2004 */
function imgPopup5(url){
var loader=new Image();
var top=parseInt(screen.height/2-50); var left=parseInt(screen.width/2-50);
var tempwin=window.open("","","scrollbars=yes,resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,width=200,height=100,top="+top+",left="+left);
with(tempwin.document){
open();
write("<html><head><title>Click image to close window</title></head><body marginwidth=0 marginheight=0 leftmargin=0 topmargin=0 rightmargin=0 style=\"overflow: auto; background-color: black; color: white;\">");
write("Loading the image, please wait.");
write("</body></html>");
close();
}
loader.onload=function(){
var top=parseInt(screen.height/2-this.height/2);
var left=parseInt(screen.width/2-this.width/2);
tempwin.close();
MyWin = window.open("","","scrollbars=yes,resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,width="+this.width+",height="+this.height+",top="+top+",left="+left);
with(MyWin.document){
open();
write("<html><head><title>Click image to close window</title></head><body marginwidth=0 marginheight=0 leftmargin=0 topmargin=0 rightmargin=0 style=\"overflow: auto;\">");
write("<a href=\"javascript:window.close()\"><img id='myimg' src=\""+url+"\" border=0></a>");
write("</body></html>");
close();
}
}
loader.src=url;
}
</script>
Som ni ser har jag gjort vissa ändringar, men det funkar ändå inte.