Help with Implementation for FLV

2 messages Options
Embed this post
Permalink
jsp196

Help with Implementation for FLV

Reply Threaded More More options
Print post
Permalink
I am having trouble getting Shadowbox to work on my site.  I implemented it correctly on a different site, and just copied and pasted, changing folder structure as necessary.  The exact same commands aren't working.  Now when I click on the image link, it offers me a Save As dialog.  The website is www.readingcomfort.com/default.htm  and the link is the one toward the bottom that says Click Here for our Promotional Video.  I attempted to post the HTML source below, but it wouldn't let me.  It's viewable on the site though at the above link.  There's also a temporary link small, in the upper right corner of the page, that was allowing me to test Shadowbox by having it open with Google's homepage as the destination.  This didn't work either, but I left the link there for testing at the moment.  Please let me know what I am doing wrong. Thanks.

Jeffrey
Wizzud

Re: Help with Implementation for FLV

Reply Threaded More More options
Print post
Permalink
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