Slideshow javascript issue - Which is wrong (doc or code)?
jfriend
Registered Users Posts: 8,097 Major grins
The slideshow Wiki says to use this line of javascript to insert your slideshow:
I was looking into this because a customer wants a non-transparent slideshow. Is there a way to do that?
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
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
0
Comments
Bump.
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
thanks.
Portfolio • Workshops • Facebook • Twitter
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