Forum Moderators: open

Message Too Old, No Replies

stop downloading unseen IMGs

also, how to lock a window or frame

         

sergiemag

4:10 am on Nov 23, 2003 (gmt 0)

10+ Year Member



is there a way you can make it so the client can only download an image they see on their screen? in other words, you can see the rest of the images when you scroll down or something. so how can you make it so that right when you see the image on your screen it downloads - stop the client from downloading the image to their temporary folder before they see it on their screen?

one more thing, how can you make it so that a frame or window cant be scrolled left, right, etc when there is more in that frame than what you see? and so that you cant select and drag spaces. you know what i mean?

thanks,
-sergie

shasan

7:29 am on Nov 23, 2003 (gmt 0)

10+ Year Member



Welcome to Webmaster World sergiemag!

Unfortunately, the only way for a browser to view anything on a webpage is to download in some form or another. I don't think there is anyway you can accomplish this. Maybe someone can correct me if I'm wrong?

<edit> sorry, misread your question </edit>

Maybe can you provide some info as to why you want to do this? Someone may be able to recommend a different method.

For the frame, you can use the following:


<frame src="yourfile.html" name="framename" scrolling="NO" noresize>

However, to disallow selecting and dragging, it's a little more tricky... you could use this to the HTML for the frame:


<body onSelectStart="return false;">

It disables anyone from highlighting the content on your page, so they can't drag across to scroll either. Although I don't know how you would prevent someone from using arrow keys..?

ytswy

10:43 am on Nov 23, 2003 (gmt 0)

10+ Year Member



Hi sergiemag, Welcome to WebmasterWorld!

I think you could do the image loading thing, although it would probably be somewhat messy.

Check out this page:
http*//codepunk.hardwar.org.uk/ajs02.htm

It gives you the Javascript functions to detect page scroling by the user, with this I assume you could control image loading to your requirements.

sergiemag

7:25 pm on Nov 23, 2003 (gmt 0)

10+ Year Member



thanks guy, i appreciate it.

moomoo

6:22 am on Nov 24, 2003 (gmt 0)

10+ Year Member



Image loading would not generally be easily treated by Javascript, unless it could substitute the pictures with blanks until you scrolled to them.... But that's ugly.

The best way to do it in general without ugly javascripts would be to get yourself the Opera web browser, choose only show cached images, and load those that you need when you need them... There have been Opera wishes that allow you to select a patch of text and choose to load all images in the selected area, so hopefully this will be available in future versions to make hiding or showing images much easier...

- Joel