Slideshow javascript issue - Which is wrong (doc or code)?

jfriendjfriend Registered Users Posts: 8,097 Major grins
The slideshow Wiki says to use this line of javascript to insert your slideshow:
SM.flash.insertSlideshow(600, 600, ssConfig, 'transparent');
Yet, the insertSlideshow function only takes three parameters:
SM.flash.insertSlideshow = function(w, h, params) {
    var args = "";
    for (var i in params) {
        args += i + "=" + params[i] + "&";
    }
    document.writeln('<object width="100%" height="100%" align="middle">' + '<param name="movie" value="/ria/ShizamSlides-2007102301.swf?' + args + '" />' + '<param name="wmode" value="transparent" />' + '<embed src="/ria/ShizamSlides-2007102301.swf?' + args + '" wmode="transparent" width="' + w + '" height="\
                ' + h + '" type="application/x-shockwave-flash" allowScriptAccess="always" allowNetworking="all"/><\/object>');
    return 1;
};
Why is the documentation telling us to use this extra parameter?

I was looking into this because a customer wants a non-transparent slideshow. Is there a way to do that?
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question

Comments

  • jfriendjfriend Registered Users Posts: 8,097 Major grins
    edited March 28, 2009
    Bump
    Bump.
    --John
    HomepagePopular
    JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
    Always include a link to your site when posting a question
  • AndyAndy Registered Users Posts: 50,016 Major grins
    edited March 28, 2009
    jfriend wrote:
    Bump.
    Dunno, I'll email shizam and ask him to reply.
    thanks.
  • ShizamShizam Registered Users Posts: 418 Major grins
    edited March 28, 2009
    The confusion there is from the legacy API for inserting the slideshow. Before we had a built in SM.* method to do it the old method had 4 arguments, the SM.* method apparently did away with the 4th option, the wiki should get updated.

    To answer the second question, yes the slideshow can be opaque (default is transparent), set the argument transparent=false to make it opaque. The swf object will still be transparent (which is good) but the stage of the swf will be opaque once it loads.

    Sam
    Ever hear of Optimus Zoom? Me either.
    SmugMug iOS Sorcerer
Sign In or Register to comment.