Hi,
This piece of code works in chrome & IE but not Firefox, can anyone see why?
function openimage(a, b, c, d) {
var b = document.getElementById('photo' + a).value;
var c = document.getElementById('album' + a).value;
var d = document.getElementById('clicks' + a).value;
if (d = 1) {
jQuery.facebox({
ajax: 'profile/previewphoto.inc.php?photo=' + b + '&album=' + c + ' '
})
document.getElementById('clicks' + a).value = '2';
setTimeout('setitback(' + a + ')', 1500);
}
}
function setitback(a) {
document.getElementById('clicks' + a).value = '1';
}
Thanks in advance
Wayne