Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I've got below code working on all browsers except Firefox:

var flashMovie;

  //Load the flash player. Properties for the player can be changed here.
  function loadPlayer(slideshare_id) {
    //allowScriptAccess from other domains
    var params = { allowScriptAccess: "always" };
    var atts = { id: "slideshare-player" };

    //doc: The path of the file to be used
    //startSlide: The number of the slide to start from
    //rel: Whether to show a screen with related slideshows at the end or not. 0 means false and 1 is true..
    var flashvars = { doc : slideshare_id, startSlide : 1, rel : 0 };

    swfobject.switchOffAutoHideShow();
    //Generate the embed SWF file
    swfobject.embedSWF("http://static.slidesharecdn.com/swf/ssplayer2.swf", "slideshare-player", "565", "400", "8", null, flashvars, params, atts);

    //Get a reference to the player
    flashMovie = document.getElementById("slideshare-player");
  }

In Firefox it displays nothing.

Is there a reason why this is happening?

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.