God, I'm not even sure if I asked the question correctly... I'm super new to this.
Anyway, this is my script...
- $(document).ready
- (
- function()
- {
- $("#stepBox li").hover
- (
- function()
- {
- var elid = $(this).attr('id');
- loadSWF("/ovi/lib/swfs/"+elid+".swf", "flashBox");
- }
- );
- }
- );
-
A little bit of background:
This is probably a really cheap way of doing what I want, but whatever. Essentially, each <li> has an ID which corresponds to a SWF filename. So <li id="content1"> corresponds to "content1.swf", etc.
The values I'm sending to the loadSWF function are (somewhat obviously) the file URL and (much less obviously) the container div.
Anyway, all I want is to fill in the gaps on the above code.
Also, for what it's worth, I have verified that everything works correctly if I just put the full URL with no variable into line 10.
Thanks in advance for the help!