[HELP]I'm Trying to embed a SWF with a Variable Name...
Hey guys,
I have a small games website, I don't know if I can post it here so I won't, and it uses a bit of jquery.
I found out how to embed swf files and I thought that rather than editing every single one of my unique pages that house each game, I could just have one, which is passed a variable via the URL, which is then read by the script and embeds the correct file!! So here's what I tried...
-
<script src="jquery.js" type="text/javascript"></script>
<script src="http://jquery.lukelutman.com/plugins/flash/jquery.flash.js" type="text/javascript"></script>
<script type="text/javascript">
var game = jQuery.url.param("id")
jQuery.(game).flash({
src: '../swf/' + game + '.swf',
width: 800,
height: 480
});
</script>
But it doesnt work. No sign of anything being embedded on the page. Any ideas?