Posts: 876
Name: Matt Pealing
Location: England, north west
|
I have an <object> element on a website like so:
Code:
<div id="wrapper-splash">
<object id="splash" type="application/x-shockwave-flash" data="swf/splash.swf" width="750" height="575">
<param name="movie" value="swf/splash.swf" />
<param name="wmode" value="transparent" />
</object>
</div>
I've tried targeting it with this script:
Code:
<script type="text/javascript">
$(document).ready(function() {
$('#splash').click(function() {
$(this).delay(800).remove();
});
});
</script>
But it doesn't work in either FF or Safari (I assume in doesn't work in any browsers).
The script simply doesn't do anything when the element is clicked.
Does anybody know why this might be?
Thanks
|