[jQuery] IE6: Can't insert IMG tag, using html()
I'm trying to replace the content of a span with some text and an
image tag, using JQuery's html(). However, IE6 only inserts the text,
not the image tag (or a SWF for that matter). All other browsers I
tested seem to work.
See a demo at:
http://people.ischool.berkeley.edu/~hannes/swftest/swfie.html
Can anyone figure out what's going on?
Thanks!
Hannes
SOURCE
------
<script src="js/jquery-1.2.6.js" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
function activate(element_id) {
$("#" + element_id).html("There should be an image after this text:
<img src='images/miniplayer_play_ov.png' class='miniplayer_swf'>");
}
</script>
<span id="player_26_407" class="miniplayer">
<a href="javascript:void(0)"
onclick="javascript:activate('player_26_407')"><img src="images/
miniplayer_play.png"/></a>
</span>