Archive page for tag → javascript

Simple Javascript OOP

I like to use maths to exercise my javascript coding.Below is the code I used to make a simple user interface which uses the input values to calculate the answers to three problems. html for the user input and results Firstly we add the text input boxes, one for the number(n) and one for the […]

Read More...

Event listener/Attach Event check function

Earlier versions of Internet Explorer use attachEvent instead of the customary addEventListener function.Here is a way of checking and using the correct function depending on the browser your code is being used in. Function Use it like this

Read More...

Rudimentary calculator

calculator

Calculator made using html and javascript. Feel free to use the code and modify it however you wish.

Read More...

Comparison of PI values using two different infinite series

pi

For an explanation for both the Gregory-Leibniz series and the Nilakantha series used here to calculate the value of PI please click here . Enter the number of fraction iterations in the text box and press the RETURN or TAB key. Number of iterations

Read More...

Canvas transformations

A simple demonstration of the canvas transformation matrix. This browser does not support the canvas tag.Please update to the latest version. Scale Horizontally: Skew Horizontally: Skew Vertically: Scale Vertically: Move Horizontally: Move vertically:

Read More...

Simple ping-pong game using HTML5 canvas

ping_pong

This game will not work on touch screen devices. Click here to see the demo. The index.php file Important things to note are the link to the .js file in the head and the canvas element and .js script in the body. The code within the script tags checks if the DOM is ready using […]

Read More...

Random word generator

A random word generator for pictionary made for both English and French languages. The game will reset on window resize.

Read More...

Hangman javascript game

hangman

A hangman game made with javascript. Select from three genres: movies, music or general (bottom left) or to play with a friend write your own (see icon bottom right). Guess the letter or the complete word or phrase. Type in textbox and click submit. The game will reset on window resize.

Read More...

Six average length words

6aw

I made this game to see whether I could make a word game similar to the popular word game7 little words. Apart from the layout, my version differs in the way in which the groups of letters which form the answers are randomly generated and therefore the puzzle is different every time.

Read More...

Unscramble – Picture Puzzle

scram

Picture puzzle game created from a script by Brad Manderscheid.The game will not work on touch screen at the moment. All pictures featured are either taken by myself or are in the public domain. The game will reset on window resize.

Read More...

Memory game

memory_game

A memory game based on ‘The Rainbow Fish’ memory game made with Javascript and HTML.The game can be played in one or two player mode.One player mode has an option to play against the clock. All pictures featured are either taken by myself or are in the public domain.

Read More...

Responsive image map

image_map_cover

Following on from the last post, Image mapping and playing audio files onmouseover, I realised that I needed to make my image map responsive to take into account viewing the image on different divices. To this end I went about creating a script which would proportionately change the coordinates of the image map when the […]

Read More...

Ted Della

screenshot_ted

Visit website

Read More...