Hello I've been trying to create a function that creates objects and another function that can delete them when triggered the objects code is generated server side and triggers the function passing the object data.
The object data sort of looks like this
<OBJECT id="RandomNumbers" width="0" height="0"
style="position:absolute; left:0;top:0;"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
type="application/x-oleobject">
<PARAM NAME="URL" VALUE="BlahBlah.mp3">
<PARAM NAME="SendPlayStateChangeEvents" VALUE="True">
<PARAM NAME="AutoStart" VALUE="True">
<PARAM name="uiMode" value="none">
<PARAM name="PlayCount" value="9999">
<PARAM name="volume" value="50">
</OBJECT>
I need them to have two functions one that adds the object code into the html
function addObject(objectdata)
and one that destroys it by id the
function deleteObject(id)
I've tried a few methods I looked up but whenever I try to get them to work the way I need them they throw errors...
It would be very cool if you could also get it under a div tag.
If you can post a link to what I need or better yet the code to do it I would appreciate it.