Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi
I'm trying to run this code in a template :
<div id="myContent"> <p>Alternative content</p></div><script type="text/javascript">var flashvars = {};var params = {};var attributes = {};if(swfobject.hasFlashPlayerVersion("8.0.0")){ swfobject.embedSWF("untitled.swf", "myContent", "800", "600", "9.0.0","expressInstall.swf", flashvars, params, attributes);} else { window.location = "http://umbraco.org";}</script>
but it don't work when I use the site, where I put the script.
Can anyone help me??
Anita
Hi Anita,
is this still an issue?
If so can you just try to add a
alert('JS working');
directly at the beginning of the script to see if it's just an error with the swfobject or if the JS is not working properly.
From the looks of it I don't see why this shouldn't work apart from the swfobject bit (maybe it's not finding the right files?).
Cheers,
Sascha
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Scripts into templates
Hi
I'm trying to run this code in a template :
but it don't work when I use the site, where I put the script.
Can anyone help me??
Anita
Hi Anita,
is this still an issue?
If so can you just try to add a
alert('JS working');
directly at the beginning of the script to see if it's just an error with the swfobject or if the JS is not working properly.
From the looks of it I don't see why this shouldn't work apart from the swfobject bit (maybe it's not finding the right files?).
Cheers,
Sascha
is working on a reply...