Thanks for the advice.
I have been in contact with Jacklmoore.com and they have advice using the onComplete function that is available within Colorbox.
"Colorbox create's a new <img> element, which wasn't in the document at the time you looped through them all assigning event handlers. You should use Colorbox's onComplete callback so that you run your code after it has added your content to the document."
For example:
`
$('a.example').colorbox({onComplete:function(){
var $img = $('.cboxPhoto');
// do whatever you want to $img here
}});
`
So how would I amend my theme to use DO NOT DRAG, theme in current use is I-Feel-Dirty? as I have tried: Adding the following after line: 112 and 134;
`
onComplete:function(){disable drag #}
`
Disable Drag 1:
`
$("img").mousedown(function(){ return false; });
`
Disable Drag 2:
`
window.onload = function (e)
{
var evt = e || window.event,// define event (cross browser)
imgs, // images collection
i; // used in local loop
// if preventDefault exists, then define onmousedown event handlers
if (evt.preventDefault)
{
// collect all images on the page
imgs = document.getElementsByTagName('img');
// loop through fetched images
for (i = 0; i < imgs.length; i++)
{
// and define onmousedown event handler
imgs[i].onmousedown = disableDragging;
}
}
};
// disable image dragging
function disableDragging(e)
{
e.preventDefault();
}
`
And i've tried a few others.
But I have been unable to get this to function, please advice where I'm going wrong, and if possible an easy solution in order for me to address this matter.