HTML and CSS Reference
In-Depth Information
Function
Invoked By / Called By
Calls
moveball
Invoked by call of the moveit method for the one
Ball object
Invoked directly by code in var statements
Picture
drawAnImage
Invoked by call of the draw method for a Picture
object
Table 4-4 shows the complete code for the second application, but only the changed lines have
comments.
Table 4-4. The Second Cannonball Application
Code
Explanation
<html>
<head>
<title>Cannonball</title>
<style>
form {
width:330px;
margin:20px;
background-color:brown;
padding:20px;
}
</style>
<script type="text/javascript">
var cwidth = 600;
 
Search WWH ::




Custom Search