Chris Pollett > Students >

    ( Print View )


    [Project Blog]

    [CS297 Proposal]

    [Del1- JavaScript file]

    [Del2-Presentation on Web Crawlers-Nutch-PPT]

    [Del2-Implementation of Nutch Crawl]

    [Del3-Code Obfuscation Techniques-PPT]

    [Del4-data:URI scheme]


    [CS298 Proposal]

    [CS298 Report-PDF]

    [CS298 Presentation Slides-PDF]


JavaScript Program

Description: This JavaScript program is part of the first deliverable which was to learn JavaScript.

This program has a black box on an HTML page which is defined using <div> tags and not <img> tags. The four buttons below allow users to move the box around the screen. Each click moves the box by 15pts in the direction specified by the button. e.g Top moves the box inthe top direction, Left moves the box in the left direction and so on.

When you click on Submit you are taken to the next page which displays the x and y coordinates of the last position of the black box.