Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - pixelkitty

Pages: [1]
1
I have a script that I am currently using at pixelkitty.net to disable right click of images only.

This way, visitors can still use other right click functions such as bookmark, back, open in new window/tab etc on the page itself.

Is it possible to put this script into 4images instead of the current 'disable right click' script?

I want to do this as I find the current disable script is too restrictive, as I use right click extensively for navigation and other purposes when I am within my own sites.

The script I use at the above site is below, for those who may want it.

Code: [Select]
// JavaScript Document
var clickmessage="© Copyright by {site_name}"

function disableclick(e) {
if (document.all) {
if (event.button==2||event.button==3) {
if (event.srcElement.tagName=="IMG"){
alert(clickmessage);
return false;
}
}
}
else if (document.layers) {
if (e.which == 3) {
alert(clickmessage);
return false;
}
}
else if (document.getElementById){
if (e.which==3&&e.target.tagName=="IMG"){
alert(clickmessage)
return false
}
}
}

function associateimages(){
for(i=0;i<document.images.length;i++)
document.images[i].onmousedown=disableclick;
}

if (document.all)
document.onmousedown=disableclick
else if (document.getElementById)
document.onmouseup=disableclick
else if (document.layers)
associateimages()

2
Discussion & Troubleshooting / create category generates db error
« on: February 20, 2003, 06:58:58 AM »
Warning: mkdir() failed (Permission denied) in /public_html/photo/admin/categories.php on line 78

Warning: mkdir() failed (Permission denied) in /public_html/photo/admin/categories.php on line 81

Warning: mkdir() failed (Permission denied) in /public_html/photo/admin/categories.php on line 78

Warning: mkdir() failed (Permission denied) in /public_html/photo/admin/categories.php on line 81
Category added

permissions are set to 777 on admin and all files contained therein.

Even though I get the error each time, the category is created.

Any help much appreciated.

Pages: [1]