Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

pelsar

macrumors regular
Original poster
Apr 29, 2008
180
0
israel
i actually found some javascript code, modifed it and got it working....only to discover that on the pc under explorer it doesnt work properly:

http://www.spinnerdesign.co.il/flash_examples.html (the list on the left)

on the mac in safari and firefox the flash movies stay within the proper div...on the pc, under IE, the window is replaced with the swf playing full screen...no good.

anybody know how to modify the javascript code to make it work properly under IE?
 
I'll make some guesses.

On this line from the JavaScript inside the HTML file,
PHP:
var attributes = { data: url, width:"450", height:"350",   };
There's an extra comma at the end there. It may be giving IE some trouble.

This line also in the HTML,
PHP:
div.setAttribute("id", targetID);
IE has been known to have trouble using the set/getAttribute functions. Generally it's more compatible to use,
PHP:
div.id = targetID;
Is IE giving any error messages that may help?
 
wow......it was the comma....

I'll make some guesses.

On this line from the JavaScript inside the HTML file,
PHP:
var attributes = { data: url, width:"450", height:"350",   };
There's an extra comma at the end there. It may be giving IE some trouble.

I'm always amazed at how such a little thing can screw things up so well.....and there was no way i was going to find that

thanks a bunch
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.