Jump to content

Moving Images in Browser

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
Takumi

Takumi

    Newbie

  • Members
  • PipPip
  • 16 posts
Hi I am not sure if I am at the right place here, but I need to get rid of those images which are created when you click and move a image. Is there any way to get rid of it?

Edited by Takumi, 11 November 2010 - 07:56 AM.


#2
BlaineSch

BlaineSch

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,448 posts
I'm actually not totally sure what you mean by this. When I click an image and move it a semi-transparent image appears. This is just me dragging the image so I can save it.

If you want to get rid of it, make a element and put it as the background. Which will prevent people from dragging it and printing it.

There is no full proof way to stop people from downloading your images however so I wouldn't bother if that is the end result.

#3
Takumi

Takumi

    Newbie

  • Members
  • PipPip
  • 16 posts

Quote

Sorry I couldnt really find the good word for it, because I'm dutch. But yeah you are right, I want to disable image dragging. I am making a script to drag around a world map. And this is not possible when the browser is blocking this.

#map_backgroundmain {

	background: url("water.jpg") no-repeat top left;

	width: 1000px;

	height: 750px;

	margin-left: 50px;

}

I use this css code, but this is not disabling it.

I have already found the solution:

<img src="water.jpg" onmousedown="event.preventDefault()" >

Takumi