Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
vicha38
tagDiv Member

Hi,

My dev looked at the code and says that the problem comes from the script below. He said that when I right click, the script expects an element included in a form (select, input, textarea, password), if none of it is detected, nothing happens… Is there a way to take this script off?

Thanks

<script type=”text/javascript”>

/*<![CDATA[*/

document.oncontextmenu = function() {

return false;

};

document.onselectstart = function() {

if (event.srcElement.type != “text” && event.srcElement.type != “textarea” && event.srcElement.type != “password”) {

return false;

}

else {

return true;

}

};

if (window.sidebar) {

document.onmousedown = function(e) {

var obj = e.target;

if (obj.tagName.toUpperCase() == ‘SELECT’

|| obj.tagName.toUpperCase() == “INPUT”

|| obj.tagName.toUpperCase() == “TEXTAREA”

|| obj.tagName.toUpperCase() == “PASSWORD”) {

return true;

}

else {

return false;

}

};

}

document.ondragstart = function() {

return false;

};

/*]]>*/

</script>

vicha38
tagDiv Member

Is there a ”hotlink protection” enabled on the Newspaper theme?

Viewing 2 posts - 1 through 2 (of 2 total)