It's really not as hard as you think. My JavaScript skills are minimal as well. But I can hack my way through jQuery. It kind of saves my face and prevents me from really understanding JS.
It's really not that difficult. I gave you most of the script above
It would seriously just be a few lines.
Code:
jQuery(document).ready(function($) {
if ($.cookie('the_cookie')) {
alert("cookie is loaded");
}
else {
$('a[rel*=facebox]').facebox()
$.cookie('the_cookie', 'the_value'); // set cookie
}
})
The scripts do all of the heavy lifting for you. Note that the above is just theory. There is probably something wrong with it. But you get the idea.
Bookmarks