I never said anything of the sort. I think you were missing the point. The
op knows that he\she cannot keep the images from the client. That's a done
deal Rob. Steve Easton said, "[t]his also disables the ability to right
click and create a shortcut. Among other things." You then agreed with
him, "I hate when people do that...I use shortcuts all the time...so I just
leave the site cause I'm pissed...I suspect a lot of people will just
leave." I guess I thought you meant save it as a Favorite as a shortcut.
Oh well my mistake then. No shortcuts to the page as I showed you either.
My point was why not make the page have a disabled context menu if the
shortcut would never work in the first place? Like I said that would mean
you were upset with Form Confirmation pages or Secure sites. Because you
cannot save them as a shortcut. You still have to go through the logon
process.
--
George Hester
_________________________________
"Rob Giordano (aka: Crash Gordon®)" <
[email protected]>
wrote in message I think you may be missing the point.
Try your method, post the url and I bet you anyone here will have the image
downloaded in less time then it would take to read your last post.
| Wait a minute that asumes if you made a shortcut it would mean anything.
| That's like assuming you can make a shortcut to a Form Confirmation page.
| Ain't gonna work man. If the page is generated on the fly why not make it
| right-click disabled? What I do is have the page with only one image in
it.
| The <body has the oncontextmenu in it. But for the <img tag I have this:
|
| <img id="oImage" name="oImage" style="visibility: hidden;" />
|
| I cache it and check that it exists:
|
| function image_onerror(){
| document.getElementById('oImage').style.display = 'none';
| document.getElementById('floattrack').innerHTML = '<center><font
| color="#FFFF00" size="+3">Error loading image...</font></center>';
| document.write('<font size="4" color="#FFFF00"><center>Cannot find
image! -
| '+aImage[0].src+' - <%=strPicture%></center></font>');
| window.location.replace('<%=astrRoot(0) & strPath1%>');
| }
|
| If it don't then I redirect. If it does I display it:
|
| function image_onload(){
| var objImage = document.getElementById('oImage');
| objImage.src = aImage[0].src;
| objImage.style.visibility = 'visible';
| floattrack.style.display = 'block';
| if (!release)
| objImage.galleryImg = 'yes';
| else
| objImage.galleryImg = 'no';
| }
|
| And make it availabe to Right-click Save as...
|
| document.images('oImage').oncontextmenu = image_oncontextmenu;
|
| function image_oncontextmenu(){
| window.event.returnValue = true;
| window.event.cancelBubble = true;
| }
|
| The rest of the page is still off limits to the context menu. That means
no
| clicking on the navigation links on the page to see where they go. I know
| they can read the source. I don't care. As for adding it to favorites it
| won't work. The page is login protected and the page is dynamically
built.
| If you were able to get to just the page without sending parameters well
you
| can tell from above the page is off limits. Won't work. This is just in
| pages that are specific to images. I basically just oncontextmenu false
| everyting and then choose what I want to enable it for inside. Remember
add
| to favorites (with images) is not an issue here because pages with images
| cannot be added as favorites even if that was functional..
|
| --
| George Hester
| _________________________________
| | > I leave as soon as I see it. What good is information that comes from an
| > uninformed source?
| >
| > --
| > HTH,
| > Kevin Spencer
| > .Net Developer
| > Microsoft MVP
| > Neither a follower
| > nor a lender be.
| >
| > "Rob Giordano (aka: Crash Gordon®)"
<
[email protected]>
| > wrote in message | > I hate when people do that...I use shortcuts all the time...so I just
| leave
| > the site cause I'm pissed...I suspect a lot of people will just leave.
| >
| >
| > | > | This also disables the ability to right click and create a shortcut.
| > Among other things.
| > |
| > |
| > | --
| > | Steve Easton
| > | Microsoft MVP FrontPage
| > | 95isalive
| > | This site is best viewed............
| > | .......................with a computer
| > |
| > | | > | > Just disable right-clicking:
| > | >
| > | > <body oncontextmenu="return false;">
| > | >
| > | > This only works in IE and it doesn't protect your images from
| anything.
| > All
| > | > it does is disable right-clicking in IE.
| > | >
| > | > --
| > | > George Hester
| > | > _________________________________
| > | > | > | > > How do I prevent website images from being downloaded and saved by
| > viewers
| > | > > who use the right click menu?
| > | >
| > | >
| > |
| > |
| >
| >
|
|