CSS:
body {
background-image: url(/images/some_image.jpg);
background-attachment: fixed;
background-repeat: no-repeat;
background-position: center top;
cursor: pointer;
}
#page {
cursor: auto;
}
JS:
function recordOutboundLink(link, category, action)
{
_gat._getTrackerByName()._trackEvent(category, action);
setTimeout('window.open("' + link + '")', 100);
}
jQuery(document).ready(function() {
jQuery("body").click(function(e) {
var target = jQuery(e.target);
if (target.attr('id') == 'body_id')
{
recordOutboundLink('http://www.karlmonaghan.com','outbound', 'karlmonaghan')
}
});
});
HTML:
<body id="body_id">
Komentarų nėra:
Rašyti komentarą