Re: img onClick problem

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



OK, but how do I know all images are loaded, from the script

"Mr Newbie" <here@xxxxxxx> ¼¶¼g©ó¶l¥ó·s»D:uK2rYJS7FHA.3200@xxxxxxxxxxxxxxxxxxxxxxx
why dont you direct the onlick event to a function and have that function
exit unless all the images are loaded ?




--
Best Regards

The Inimitable Mr Newbie º¿?
"Jason Chan" <no@xxxxxxxxx> wrote in message
news:u$UQztR7FHA.1484@xxxxxxxxxxxxxxxxxxxxxxx
>I create a webpage contain a table of thumbnails (around 30).
> Since the thumbnails is generated on the fly, it take some time to load
> all
> of them, around 15s.
>
> On each image, I have a onClick listener to open the larger version of
> thumbnail in a popup window.
>
> If I click one of image when the page is still downloading the remaining,
> the popup open but the opener window stop download the remaining. Is it a
> normal behavior or I can do something to walk around it?
>
> Some of my code.
> <a href="javascript:openImage(1);">
> <img alt="" src="getResizedImageByID.aspx?id=1" />
> </a>
>
>
> function openImage(FileID)
> {
> var winl = (screen.width - 610) / 2;
> var wint = (screen.height - 610) / 2;
> winprops = 'height=' + 610 + ',width=' + 610 +
> ',top='+wint+',left='+winl+',scrollbars=no'
> win = window.open("","Preview", winprops)
> win.document.bgColor="#666666";
> docBody = win.document.body;
> docBody.style.margin = "5px 5px 5px 5px";
> docBody.innerHTML = "<img src='getResizedImageById.aspx?id=" +
> FileID + "&w=600' />";
> win.focus();
> }
>
> P.S Brower IE 6
>
>



.



Relevant Pages

  • Re: Website review sought - comments invited
    ... jewellery and for ease of access it is now available through ... The thumbnails load first and you get to see them. ... While you are looking at the thumbnails, the bigger images are ...
    (rec.crafts.jewelry)
  • Re: Photo Gallery
    ... I basically just looped through my images and dropped each one into a new ... > images and display thumbnails. ... > As far as huge photos are concerned, I can check the size at upload time ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Deleting files
    ... It happens because you are dragging the images once they have been selected. ... >> The thumbs.db file is generated by Windows. ... >> Thumbs.db file contains the thumbnails for a particular folder. ...
    (microsoft.public.windowsxp.general)
  • Re: Creating webpage with resized jpg images
    ... You could easily build a webpage that pulls in ... thumbnails before hand as you could dynamically create them on the fly. ... This uses a PHP class (have one for ASP.NET which can be used in an ASP ... Information about the images are gathered ...
    (microsoft.public.vb.general.discussion)
  • Re: Jpeg Folders open strangely
    ... When I open a folder of jpeg images (say 15 images at ... the thumbnails appear very slowly.... ... Boot Options in Windows XP ...
    (microsoft.public.windowsxp.photos)