Forum Moderators: open
However I see that the avg. size of the mp3s downloaded is not the full size of the mp3s. This is how I know that this undesirable behavior is occuring.
Here is how I am able to disable left click without the alert...
<a href="http://www.google.com" onclick="return false;">Google></a>
However I want to make a universal JS that will send an alert on the 2nd left click of the link. And I just want to apply this function to the links I desire instead of the whole page. This would force people to use my site as intended. It's not really difficult but people are SOO freaking lazy. :-\
PS - No one please mention the R-button as I have many times subtracted the R word (opposite of left) in order to refine my searchs (without success). Everyone wants to disable the R-button but not the left. I figure this would help people who in the future are not lazy and use their brains. :-)
2) use document.getElementsByTagName("a") and substring on the class to make an array of the interesting urls. Also, generate a random string that you assign to the class name so that all of the URLs has got a double class name. This script has to be assigned to body onload. The script in 3) can be assigned to the onclick handler.
3) This script has to be assigned to the onclick handler for the URLs. It has to use the array generated in 2) and use it to keep a record of the states of the URLs using the random text string as an index into the array. If you just want to keep the state of the latest URL you can do away with the array, and just check for whether the current click was on the same click as the previous one.
I supect it may not and quite rightly so IMHO.
My mouse and its "Left Click" is My control of My PC and I don't take kindly to any attempts to overide "MY CONTROL OF MY PC".
You would soon be added to my Firewalls Exclusions.
If an advanced user is offended that they can not preview a song on my site by clicking on either the dialup or broadband example links then to bad.
Sometimes you have guide the mouse to the cheese.