Jump to content

fade in


The Little Guy

Recommended Posts

Why doesn't my image load() fire?

 

The image loads, but the function doesn't fire. This part works: $("#main").fadeIn(3000);

 

<script type="text/javascript">
$(window).load(function(){
	$("#main").fadeIn(3000);
	$("img#ximage").load(function(){
		$(this).fadeIn("fast");
	});
});
</script>

 

<body>
<div id="main" style="display: none;">
	<div id="X"><img src="/images/x.png" alt="X" id="ximage" style="display: none;" /></div>
	<p>Some text goes here</p>
</div>
</body>

Link to comment
https://forums.phpfreaks.com/topic/251919-fade-in/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.