Thread: no left click but only once
Results 1 to 8 of 8
Related
-
Click right side of image for next image, left side back? Forum: Javascript Forum
Replies: 3 -
left side scroll bar Forum: CSS Forum
Replies: 1 -
extensible left column Forum: CSS Forum
Replies: 2 -
left nav spacing Forum: CSS Forum
Replies: 3 -
CSS Validator (on left menu) Forum: CSS Forum
Replies: 4
-
08-30-2002, 10:03 PM #1
no right click but only once
i'm in need of a script that when someone right clicks( the first time on my page) they will get an alert that warns them about @copyright. but when they right click the second time, it'll go back to normal. any script like that?
Last edited by geek987; 08-31-2002 at 12:05 PM.
-
08-31-2002, 10:33 PM #2
could someone reply plz?(i kinda want at least some comments 'bout this...
)
-
09-01-2002, 05:04 AM #3
edited to correct front page problem
Heres a simple example of 'Doing something once'
Code:<script Language="JavaScript"> function check() { if (window.badger.value != "HaveDone"){ alert('I will \n do this \n only once.'); window.badger.value='HaveDone'; } } </script> <input type="button" name="badger" value="Just Once" onClick="check()">
Last edited by HTML; 09-01-2002 at 09:59 AM.
If one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
-
09-01-2002, 12:00 PM #4
Thx, dean, but i'm not very good at making or combining scripts; so , i kinda need some help on combining the 'bove script and the scipt below:
<SCRIPT LANGUAGE="javascript">
function click() {
if (event.button==2) {
alert('Sorry, this function is disabled.')
}
}
document.onmousedown=click
</SCRIPT>
Last edited by geek987; 09-01-2002 at 12:09 PM.
-
09-02-2002, 10:49 AM #5
I'll have a go when I get home.
If one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
-
09-02-2002, 12:13 PM #6
-
09-03-2002, 03:44 AM #7
Okay, this is very much a bodge job.
It only works in IE, as far as I can see -
Code:<script Language="JavaScript"> function check() { if (event.button==2) { if (window.badger.value != "HaveDone"){ alert('Sorry, this function is disabled.') window.badger.value='HaveDone'; }} } document.onmousedown=check </script> <input type="hidden" name="badger" value="Just Once">
Have fun...If one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
-
09-03-2002, 12:10 PM #8
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum