If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 1 of 1
  1. #1
    Junior Member
    Join Date
    Jul 2004
    Member #
    I have thumbnails that, when clicked, pop up a window with a bigger version of that thumbnail. I have scrollbars=no, but Gecko browsers (Mozilla/Firefox/Safari/etc) puts scrollbars in there anyway and it actually takes away from the effect because the window is supposed to be the exact width/height of the popup. Does anyone know why this might be occuring?

    My javascript is here in case this is the culprit:

    function zoom(imgName,imgWidth,imgHeight) {
    zoomWindow ='', 'zoomWin', 'width='+imgWidth+',height='+imgHeight+'top=200,left=50,toolbar=no,menubar=no,location=no, scrollbars=no')
    zoomWindow.document.write("<html><head><title>Loading Image, Please Wait...</title></head><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 text='",imgWidth,imgHeight,"'><center><a href='#' onClick =javascript:window.close()><img src='",imgName,"' alt='Click to Close' border='0'></a></center></body></html>")
    	zoomWindow.window.resizeTo(imgWidth+8, imgHeight+29);
    	zoomWindow.document.title = " CLICK TO CLOSE"
    Other than some obscure trickery that I might not be aware of, I cannot understand why this code works perfectly in IE, but not Mozilla/firefox/safari or other gecko browsers.

    I posted this in the javascript forum as well incase the problem is in my javascript, but I don't see anything wrong with the javascript, so I hope it is something else.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT -6. The time now is 12:35 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: