Results 1 to 13 of 13

Thread: picture codes

  1. #1
    Join Date
    Dec 2001
    Location
    Penang, Malaysia
    Posts
    33
    Rep Power
    0

    picture codes

    hi. I was just wondering whether you can like patse a code or script for a pic to prevent other people from saving or downloading it...

    thankx
    Last edited by sunshinerocke; 27-03-2003 at 07:29 PM.

  2. #2
    Join Date
    Jun 2001
    Location
    Mystic Kingdoms
    Posts
    2,749
    Rep Power
    278
    before that.. i would ask you 1 question..

    "What is that for?"

  3. #3
    Join Date
    Dec 2001
    Location
    Penang, Malaysia
    Posts
    33
    Rep Power
    0
    for pictures.. iwant them to view but i don't want them to save or download it...

  4. #4
    Join Date
    Oct 2001
    Location
    kay el city
    Posts
    122
    Rep Power
    222
    Well, I'm too lazy to look for the scripts but do a search on Google for "JavaScript disable right click". That should do the trick. But just a reminder, there is actually NO way you can hide a picture from being downloaded. If you can't do it through the browser, you can always do it manually (through the URL) or even just take a screenshot of it.
    _<BR><CENTER><IMG src="http://avatar.peachjon.com" alt="My Avatar"><A HREF="http://www.peachjon.com/wp"><IMG SRC="http://www.peachjon.com/mybanner.gif" BORDER="0" ALT="visit wAntAn productions, click here!"></A><BR><FONT FACE="arial, tahoma, helvetica" SIZE="1">- = l E E w Y E j O N = -</FONT></CENTER>

  5. #5
    Join Date
    Jun 2001
    Location
    BTHO
    Posts
    775
    Rep Power
    238
    Hmm...that is easy. I can give you two versions:

    Version 1
    Code:
    <!--
    
    function mouseDown(e) {
    
     if (parseInt(navigator.appVersion)>3) {
    
      var clickType=1;
    
      if (navigator.appName=="Netscape") clickType=e.which;
    
      else clickType=event.button;
    
      if (clickType!=1) {
    
    alert("Copyright  2002 MENJ On The Web\n\nAll HTML code and images contained within are the intellectual property of MENJ. Do not attempt to steal or copy them.");
    
    }
    
     }
    
     return true;
    
    }
    
    if (parseInt(navigator.appVersion)>3) {
    
     document.onmousedown = mouseDown;
    
     if (navigator.appName=="Netscape") 
    
      document.captureEvents(Event.MOUSEDOWN);
    
    }
    
    //-->
    
    </SCRIPT>
    When a user right-clicks on a page, a pop-up box will pop up and say "Copyright 2002 MENJ On The Web....", blah blah blah. Edit the

    Code:
    alert("Copyright  2002 MENJ On The Web\n\nAll HTML code and images contained within are the intellectual property of MENJ. Do not attempt to steal or copy them.");
    part with your own error message.

    Now.....

    Version 2
    Code:
    BODY onload="if (self != top) top.location = self.location" oncontextmenu="return false" ondragstart="return false" onselectstart="return false">
    This is a less-messy code It disables right-click, but there is no pop-up box if the user right-clicks.

    Demo

    For version 1: http://menj.tripod.com/

    For version 2: http://menj.tripod.com/Pejuang_Bangs...r_gemilang.htm

    Right click on those pages to see what I mean.

    I hope this helps!

    - MENJ

  6. #6
    Join Date
    Dec 2001
    Location
    Penang, Malaysia
    Posts
    33
    Rep Power
    0
    but post where? I tried posting in the body, head, everywhere...but still doesn't work??

  7. #7
    Join Date
    Jun 2001
    Location
    BTHO
    Posts
    775
    Rep Power
    238
    Originally posted by sunshinerocke
    but post where? I tried posting in the body, head, everywhere...but still doesn't work??
    Version 1 can be posted before the <BODY> tag. Version 2 must be inserted inside the body tag. You can go to those demo pages I gave you earlier and view the source to find out how it is done.

    - MENJ

  8. #8
    Join Date
    Jun 2001
    Location
    Mystic Kingdoms
    Posts
    2,749
    Rep Power
    278
    sometime there's a trouble about that..
    while browser cannot complete / load the pic, we must right click = show picture. But then when we cannot do that ( right click ) it gonna make you page broken view..

    Sometimes u can use = ALT key then right ..

    or PRESS LEFT BUTTON + then RIGHT CLICK = also can be use.

    BTW, the another BEST and RECOMMENDED one is here:

    inside BODY TAG...
    Code:
    </head>
    <body bgcolor="#bgcolor" bgproperties="fixed" oncontextmenu="return false" ondragstart="return false">
    saya selalu guna yang ini saja

  9. #9
    Join Date
    Dec 2001
    Location
    Penang, Malaysia
    Posts
    33
    Rep Power
    0
    Originally posted by MENJ
    Version 1 can be posted before the <BODY> tag. Version 2 must be inserted inside the body tag. You can go to those demo pages I gave you earlier and view the source to find out how it is done.

    - MENJ
    but the link to your Java applets section couldn't be accessed...

  10. #10
    Join Date
    May 2003
    Location
    Earth
    Posts
    29
    Rep Power
    0

    Angry ya can never do that (99%)

    a'kum! sad to say this but, the javascript for no right click or image protect is not foolproof my friend. even if people can't right click to save, the image is by default cached into hard disk. so even if they can't right click to save, they can still find the image/picture in the cache folder. another way to save images from a page is to save the page (in IE) and all the pics on a the saved page will automatically be saved with it.

    anyway if you find a way to do so, please tell me. you can try to set the meta tag to "no cache" and tell me the result. i've never tried this idea of mine before.

  11. #11
    Join Date
    Oct 2002
    Posts
    22
    Rep Power
    0

  12. #12
    Join Date
    Jan 2002
    Location
    SoObHanG JhaYa
    Posts
    501
    Rep Power
    227
    lor.... leh save gak gambaq,, drag image ke address bar. tapi menjadi untuk browser IE 5.5 kebawah...
    <form name="jump">
    <select name="menu" onChange="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" style="border:1px #393F31 solid;color:#393F31;font:10px Verdana;font-weight:bold;" >
    <option value="0" style="background: #9CC8FE" selected>*SELECT-LINKS</option>
    <option value="http://www.gengturbo.org/" style="background: #FF0000">GENGTURBO</option>
    <option value="http://www.phixelgrafix.com/" target="new" style="background: #C6D607">PHIXELGRAFIX</option>
    <option value="http://dailydigital.phixelgrafix.com/" style="background: #FCBC45">OLD-BLOG</option>
    <option value="http://www.mesrahosting.net/" style="background: #FF99CC">WEBHOSTING</option>
    </select>
    </form>

  13. #13
    Join Date
    Jun 2001
    Location
    Mystic Kingdoms
    Posts
    2,749
    Rep Power
    278
    that's why i asked before :
    "What is that for?".

    no matter how, you will never ever protect people to save your img. ( kalau susah sangat tak payah la buat image! )

    it's just a newbie dillema thus always think their 'design' are superb and great ( but yes for that time ). and afraid their great design will be stolen. Everybody experienced it b4 right

    sooo.. my advice.. JUST SKIP IT, and dont ever doing this kind of stupid ( yeah.. i really mean it! - stupid matter = to protect others to view / save img ). Just upgrade your skill without any worries coz... if they still wanna it, they will always DO IT!.

    POWERFULL SKILL TO COPY IMAGE = HIT your PRINTSCREEN button then paste into paint? So What the hell of that?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Coupon Codes
    By Brice in forum Web Hosting Offers
    Replies: 1
    Last Post: 26-05-2008, 09:21 AM
  2. Coupon Codes
    By Brice in forum Web Hosting Offers
    Replies: 1
    Last Post: 21-05-2008, 09:15 PM
  3. Consolas Font for Your Codes
    By wingwp in forum Website Programming
    Replies: 0
    Last Post: 18-10-2007, 08:27 PM
  4. mail () display all html codes
    By joyce in forum Website Programming
    Replies: 8
    Last Post: 23-09-2002, 04:36 PM
  5. Save Picture As...
    By kpyew in forum Mamak Stall
    Replies: 6
    Last Post: 23-04-2002, 04:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search Engine Optimization by vBSEO 3.5.0 RC1 PL1

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47