• 0
Sign in to follow this  
Guest claudio alberto

Salvar Figura

Question

Guest claudio alberto

ola pessoal,

voces conhecem algum codigo em que a pessoa não consiga salvar figura

Obrigado,

Claudio

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0
Guest Music Man

Bom véio

Tem esse que bloqueia o botão direito...

oncontextmenu="return false;" (coloca dentro do body)

mas se o cara salvar a página...

Share this post


Link to post
Share on other sites
  • 0

Cara, eu achei que era pra salvar,

mesmo assim, coloque assim:

Quando o Cara clickar com o 2 botao,

no body: OnMouseClick="ops()"

no js:

function ops()

{

clic = "0"

if(clic=="0")

{

clic=2

alert('Por Favor não Clique com o Botão Direito\nOu sofrera consequencias.')

}

else

{

alert('Vôcê pediu!')

babo1()

}

}

function babo1()

{

alert('Haha')

babo2()

}

function babo2()

{

alert('Hahaha')

babo1()

}

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this