Code to Add Music to Your Webpage
Some people think it's discourteous and annoying to have music playing on your webpage. But, hey, it is your webpage, and it depends upon your websites audience and purpose as to whether music is appropriate. In this article I show you how easy it is to configure music on your webpage. More ...
JavaScript to Add and Remove Rows and Cells from a Table
If you need a client-side application where you have a table that you want to enable the user to add and remove rows and cells, this article provides you with JavaScript code to easily accomplish that. More ...
JavaScript Code for Binary to Hexadecimal - Hexadecimal to Binary Conversion
You don't really need JavaScript to convert a binary number to a hexadecimal number, however if you want to create a web application the JavaScript code to convert a binary number to hexadecimal number and to convert a hexadecimal number to a binary number is shown below. More ...
Play Music on Your HTML5 Web Page
In this article you learn how to play and control music on your webpage including adding a play list and custom controller. More ...
Code to Drag and Drop an Image Anywhere on a Webpage
HTML5's drag-and-drop standard is designed to let you drag text or data from a textbox or table cell, to another textbox or table cell. But what if you want to drag an image, not to a target element, but to anywhere on a webpage. Then HTML5 drag-and-drop falls short. More ...
Easy Fading Text Banner Code
In this article you learn how to create a fading text banner, a fading text banner with several different messages that fade in and out, and a fading image banner with several different image banners that fade in and out. You also learn how to use the document.write method so that you can give a link to others to include your banners in their webpage. More ...
Disable IE8 Accelerators on Your Website
Accelerators is a new feature added to Internet Explorer 8 designed to allow Microsoft to make money off your website and steal search revenue from webmasters. The only way I can find to disable accelerators on Your Website is to take away your website visitors ability to select text on your webpages. More ...
Code for Java Script Cube / Box Volume Calculator
In this article I'll show you how to use to Java Script to create a Cube / Box Volume calculator. With this calculator, the user inputs the side dimension of a cube or the height, width and length of a box, and the calculator will return the volume. I'll explain everything in detail so that you can learn Java Script and modify the code for your own purposes. More ...
Basic State Machines
A State Machine is a program, logic circuit, or mechanical device, that has a finite number of legal states. For example a traffic control signal can be red, yellow, or green. It can't be red and green. It can't be violet. More ...
Easy Moving Popup Code
You have probably come across a webpage where a small window appears at the side of the webpage and drifts to the center of the webpage. They are commonly used to present you with a form where you can enter your email address to subscribe to a newsletter. In this article I give you the code to create this type of moving popup window. More ...
Calculators For Your Web Site
If you have a Web site where your visitor would find an online calculator very handy, with a little Java Script code you can easily provide a custom calculator right on your Web page. More ...
JavaScript to Generate a Random Number Between X and Y
You can use the JavaScript Math object's .random() method to generate a random number between two values, it returns a random floating-point number between 0 and 1 so you'll need to perform additional operations on it to scale it. More ...
