lindsayanng Posted October 6, 2008 Posted October 6, 2008 ok.. so there was a SUPER LONG thread a while back about disabling right click.. i got it to work by using this script: <script src="noclick.js"> </script> Inbetween the <head> and </head> tags. I even put it AFTER the pop up java script, like it was in the product_info.php page.. I am TRYING to get this to work on my index.php page and my popup.php page.. WHY wont it work? it doesnt make sense to me! to call for this script: function click(e) { if (document.all) { if (event.button==2||event.button==3) { oncontextmenu='return false'; } } if (document.layers) { if (e.which==3) { oncontextmenu='return false'; } } if (document.layers) { document.captureEvents(Event.MOUSEDOWN); } } A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!!
germ Posted October 7, 2008 Posted October 7, 2008 The product info page where it works has TWO <body> tags. The 1st is yours, the 2nd is the one I posted: <body oncontextmenu="return false" ondragstart="return false" onselectstart="return false"> If you remove the 2nd body tag and it stops working that would tell you it's necessary for the script. Honestly, I'm grasping at straws here b'cuz I can't see why it's being cantankerous... <_< If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
lindsayanng Posted October 7, 2008 Author Posted October 7, 2008 i bet thats it! A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!!
lindsayanng Posted October 7, 2008 Author Posted October 7, 2008 I LOVE YOU TOO!! i have a lot of love to spread today!! Were you wearing the hat when you thought of that?? i think having the extra head on your head is helping! A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!!
germ Posted October 7, 2008 Posted October 7, 2008 B) Dang I'm good... ;) :lol: You really should combine them into one tag though. P.S. :wub: to u 2 If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
playcraft Posted October 7, 2008 Posted October 7, 2008 i bet thats it! Multiple body tags are not valid.
lindsayanng Posted October 7, 2008 Author Posted October 7, 2008 i will.. i wanted to see if it would work first! A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.