alex Posted June 13, 2007 Share Posted June 13, 2007 im not sure if its a code or not but i need to find out how to place an image on my website and people cant come and highlight it. i dont care about richt click orprint screen but i just need somene to help I DONT NEED NO RIGHT CLICKI NEED TO FIND OUT HOW TO NOT MAKE PEOPLE DRAG THIER MOUSES ACROSS AN IMAGE AND ATEAL IT |4+ post?|90+ views?| whats wrong with you people?http://animeforevercorp.com Link to comment Share on other sites More sharing options...
S@m Posted June 13, 2007 Share Posted June 13, 2007 I don't understand. You don't want users to be able to click-drag across your image and highlight it?I could be wrong, (please correct me if I am) but I don't think you can do that. If you don't want anyone selecting your images, then I would just not put images on your web site. What are you trying to prevent? Link to comment Share on other sites More sharing options...
Elnof Posted June 13, 2007 Share Posted June 13, 2007 try adding this to the page: <script type="text/javascript">function noRightClick(){if (event.button==2){alert("No right clicking!");return false;}}</script><img src="http://www.mysite.com/myimage.png" onMouseDown="noRightClick()" /> Or <style>#myImg {background: url('http://www.mysite.com/myimage.png"]http://www.mysite.com/myimage.png');}</style><table><tr><td width="imgWidth" height="imgHeight"></td></tr></table> Link to comment Share on other sites More sharing options...
croatiankid Posted June 13, 2007 Share Posted June 13, 2007 You'd have to make it as a background via css. Link to comment Share on other sites More sharing options...
alex Posted June 13, 2007 Author Share Posted June 13, 2007 You'd have to make it as a background via css.how? Link to comment Share on other sites More sharing options...
zppblood Posted June 13, 2007 Share Posted June 13, 2007 how?<style type="text/css"> div.bg { background-image: url("mypic.jpg"); }</style><div class="bg">Background Test</div>Learn CSS to do more with it. Link to comment Share on other sites More sharing options...
alex Posted June 13, 2007 Author Share Posted June 13, 2007 i cant see image ... Link to comment Share on other sites More sharing options...
ATM Posted June 14, 2007 Share Posted June 14, 2007 you have to use background-position to position the image where you want it. Link to comment Share on other sites More sharing options...
croatiankid Posted June 14, 2007 Share Posted June 14, 2007 <div style="width:142px;height:20px;background:url(http://animeforevercorp.com/graphics/home1.gif) left no-repeat"></div> Link to comment Share on other sites More sharing options...
alex Posted June 15, 2007 Author Share Posted June 15, 2007 till nothing Link to comment Share on other sites More sharing options...
alex Posted June 15, 2007 Author Share Posted June 15, 2007 still nothing Link to comment Share on other sites More sharing options...
S@m Posted June 15, 2007 Share Posted June 15, 2007 im not sure if its a code or not but i need to find out how to place an image on my website and people cant come and highlight it. i dont care about richt click orprint screen but i just need somene to helpI DONT NEED NO RIGHT CLICKI NEED TO FIND OUT HOW TO NOT MAKE PEOPLE DRAG THIER MOUSES ACROSS AN IMAGE AND ATEAL IT |4+ post?|90+ views?| whats wrong with you people?http://animeforevercorp.com Interesting.Perhaps it is the long days and low patience, but I just don't feel like helping anymore. I think I have something "wrong with me". Link to comment Share on other sites More sharing options...
henryhenry Posted June 15, 2007 Share Posted June 15, 2007 HelloI was about to post a suggestion but I re-read your updated post. I have to agree with S@m... you need to be a bit nicer when people are giving out free advice.Good luckHenry Link to comment Share on other sites More sharing options...
thesi Posted June 15, 2007 Share Posted June 15, 2007 One other thing is spelling things correctly will help people understand what it is you are talking about. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.