F.N.G.
01-17-2003, 12:03 AM
Hello,
I'd like to know if the following script (or something similar) can be modified to use "on" and "off" radio buttons to toggle disableselect... preferably loading the page with the "on" button selected.
Thanks for any help:
-----------------------------------------------------------------------------
<script>
function disableselect(){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false")
{
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>
-----------------------------------------------------------------------------
I'd like to know if the following script (or something similar) can be modified to use "on" and "off" radio buttons to toggle disableselect... preferably loading the page with the "on" button selected.
Thanks for any help:
-----------------------------------------------------------------------------
<script>
function disableselect(){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false")
{
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>
-----------------------------------------------------------------------------