need a code please

Discussion in 'Scripts' started by cooper.derek, May 7, 2005.

to remove all ads.
  1. cooper.derek

    cooper.derek New Member

    Messages:
    6
    is there any code that I can use to get rid of the menu that pops up when you hover over big pictures? I think its only a thing that happens with windows XP.. Im using internet explorer also.. Thanks

    My Website

    Heres an example-
    [​IMG]
     
  2. Chroder

    Chroder New Member

    Messages:
    194
    This is a feature of Internet Explorer, you can't use any code to disable it, the user has to do it themselves.

    Tools -> Internet Options -> Advanced (tab) -> Enable Image Toolbar (under Multimedia)
     
  3. StephanieCordray

    StephanieCordray New Member

    Messages:
    1,017
    Why would you want to? It gives the viewer the option of seeing the image in full resolution when it's larger than the browser window. All you have to do to not see it is move your mouse pointer off the image.
     
  4. rimian

    rimian New Member

    Messages:
    6
    i can see why someone would want to disable it. it's imposing.

    how large is the image? you might need to crop you image a bit tighter if you've got a lot of black around it.

    if that doesn't work you can place a transparent layer over the image with the link on it. you will need a <div> and a transparent gif file. this will fool the browser into ignoring the mouseover on your graphic (though it's not a true mouseover event from what i can see).

    here's a test file that you can try. the icons will appear if you mouseover the blue image but not the red layer on the top.

    <html>
    <body>
    <img src="spacer.gif" width="1000" height="1000" border="1" style="background-color:blue;">
    <div style="position: absolute; top 0px; left: 0px; width: 100px; height: 100px; background-color:red;">
    &nbsp;
    </div>
    </body>
    </html>

    hppe that helps!
     
  5. cooper.derek

    cooper.derek New Member

    Messages:
    6
    Thanks for the help rimian

    Thanks for the help.. I tried to figure out the code you gave me but I was not able to.. Is there a way I could post the images and the code I have and maybe you could possibly make a new code? Thanks

    [​IMG]

    [​IMG]

     
  6. StephanieCordray

    StephanieCordray New Member

    Messages:
    1,017
    I think perhaps I misunderstood your question. Did you mean you wanted to prevent someone from saving the pic? If so, there are scripts you can add to pages to disable saving the images. I find www.dynamicdrive.com (there might be a hyphen in that, can't remember) and www.javascriptsource.com to be very helpful when I need something like that. Nothing will disable that menu popping up in IE, as Chroder said, but you can protect your pics.
     
  7. cooper.derek

    cooper.derek New Member

    Messages:
    6
    yeah, I know, I already have the right click disabled but people can still save images when that stupid toolbar menu thing pops up.. Ahh.. Thanks for your help anyways..
     
  8. Dmexio

    Dmexio New Member

    Messages:
    17
    There is a way

    Dont be dismay me friend there is a way i will will show its so simple really.

    use IMAGE Mapping i use it to remove that annoying block myself...here is the code



    <map name="any name you want"></map>
    <img src="your photo.jpg" width="400" height="180" usemap="any name you want">
    <map name="any name you want"></map>

    All the best
    ________
    Web shows
     
    Last edited: Aug 14, 2011

Share This Page