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.
    • CommentAuthorgraham
    • CommentTimeMar 20th 2010
     permalink

    Hello,

    Having trouble with the syntax for adding more than one "flashvars" var. I needed the datafile: var to get monoslideshow to work within Joomla (with success) but my efforts to add, var flashvars = {showLogo: "false"}; disables the flash content.

    the following is the script I am currently using.

    <script type="text/javascript" src="slideshow/swfobject.js"></script>
    </head>
    <body>
    <div id="flashContent">
    <p>Please install Flash®</p>
    </div>
    <script type="text/javascript">
    var flashvars = {dataFile: "slideshow/monoslideshow.xml"};
    var params = {};
    var attributes = {bgColor: "ffffff"};
    swfobject.embedSWF(
    "slideshow/monoslideshow.swf", "flashContent",
    "400", "500", "10", false,
    flashvars, params, attributes
    );
    </script>

    Any help would be greatly appreciated.

    Cheers,

    Mike

  1.  permalink

    You write them one after the other, separated by &
    in your case:
    var flashvars = {dataFile:"slideshow/monoslideshow.xml"&showLogo:"false"};
    Christoph

    • CommentAuthorgraham
    • CommentTimeMar 22nd 2010
     permalink

    Christoph Thanks for the reply.

    I had tried that after visiting the Adobe references. unfortunately I still get the error "Please Install Flash"

    this must be something specific to embedding this into a Joomla custom mod.

    any other ideas? and thanks again for taking the time .

    Mike

    • CommentAuthorJarredja
    • CommentTimeMar 22nd 2010 edited
     permalink

    The please install flash error, I believe?? is a swfobject.js path error. BUT you said it was working before changing the flash vars??? If so, try this instead,

    var flashvars = {dataFile:"slideshow/monoslideshow.xml", showLogo:"false"};

    • CommentAuthorgraham
    • CommentTimeMar 22nd 2010
     permalink

    Excellent!

    Jarredja Thanks, that was the one that did it.

    Cheers,

    Mike

    • CommentAuthorJarredja
    • CommentTimeMar 22nd 2010 edited
     permalink

    Just for reference, I believe the & sign is used in Wordpress.
    Edit: this was the topic that the & sign came up in and it was indeed Wordpress.
    http://www.monoslideshow.com/forum/discussion/1984/couple-of-basic-questions/

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