see live demo!

Not signed in (Sign In)

Categories

 

buy Monoslideshow

via PayPal / credit card

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorreticuli
    • CommentTimeMay 1st 2010
     permalink

    Has anyone got an example of how to change the background music via JavaScript? I can't find anything that suggests the API specifically supports this in an elegant way but the manual suggests something crude like this should work, but it doesn't:

    function ChangeTrack (input_TrackNumber)
    {
    var flashvars = {dataFile: "/resources/media/music/playtrack.asp?iTrack=" + input_TrackNumber, showLogo: "false", showRegistration: "false"};
    var params = {allowScriptAccess: "sameDomain", allowFullScreen: "true"};
    var attributes = {id: "monoslideshow", name: "monoslideshow", bgColor: "000000"};
    swfobject.embedSWF("/resources/plug-ins/monoslideshow/monoslideshow2.05/monoslideshow.swf", "idMusicPort", "1", "1", "9", false, flashvars, params, attributes);
    }

    ChangeTrack (4);

monokai logo © 2009 Monokai, all rights reserved. Buy Monoslideshow.