Image Preloader
<script type="text/javascript">
$.preloadImages = function()
{
for (var i = 0; i<arguments.length; i++)
{
$("<img />").attr("src", arguments[i]);
}
}
$(document).ready(function()
{
$.preloadImages("hoverimage1.jpg","hoverimage2.jpg");
});
</script>
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.