via PayPal / credit card
Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
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
You write them one after the other, separated by &
in your case:
var flashvars = {dataFile:"slideshow/monoslideshow.xml"&showLogo:"false"};
Christoph
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
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"};
Excellent!
Jarredja Thanks, that was the one that did it.
Cheers,
Mike
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/
1 to 6 of 6