I have a JavaScript function that animates clouds moving across the screen. I am trying to restrict the area they cover to only occupy the top 300px of the screen.
I attempted to add "height:300px; top:0px;" to the DIV style, but it didn't produce the desired outcome. Any suggestions on how to achieve this?
Below is the complete script:
<script language="JavaScript1.2">
/*
Flying Butterfly script (By <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="afede8eedacbc6c0ebddefcec0c381ccc0c2">[email protected]</a>)
Modified slightly/ permission granted to Dynamic Drive to feature script in archive
For full source, visit http://www.dynamicdrive.com
*/
// Script for animating flying images
// Code removed for brevity - refer to source link for full script
</script>