You've got both a
body onload (MM_preloadImages())
and a
window onload (Shadowbox initialisation), and the body one is overriding the window one.
Either :
- move the MM_preloadImages(...) into the window onload (and dump the body onload), or
- move the Shadowbox initialisation into the boy onload (and dump the window onload).
Eg.
window.onload = function(){
var options = {
animSequence: 'sync'
, resizeDuration: "0.35"
, displayCounter: false
, enableKeys: true
, displayNav: false
, overlayOpacity: "0.65"
,flvPlayer:"/v/vspfiles/templates/ReadiComfort/Scripts/shadowbox/build/player/flvplayer.swf"
};
Shadowbox.init(options);
MM_preloadImages(
'/v/vspfiles/templates/ReadiComfort/images/Template/btn_buy_online-over.gif'
, '/v/vspfiles/templates/ReadiComfort/images/Template/badge_survey-over.gif'
, '/v/vspfiles/templates/ReadiComfort/images/Template/badge_affiliate-over.gif'
, '/v/vspfiles/templates/ReadiComfort/images/Template/badge_news-over.gif'
, '/v/vspfiles/templates/ReadiComfort/images/Template/btn_learn_more-over.gif'
);
};
</script>
</head>
<body marginwidth="0" marginheight="0" id="bookbuddy">Combine literacy with curiosity and a whole world of information opens up to you