WEB AUTHORING
Java
Most of the Java applets and Scipts were not written by me. Credits are written into them. Theyre not all Doctor Who related, but could help a lot on your site.
Applets: (Click to download the relevant files, and copy the html code)
To see a larger collection of free Java Applets, go to www.freewarejava.com
TMap Cube: This applet is a cube that moves when the mouse is over it. Click here to download the class file and pics.
JavaScripts:
For more Javascripts, go to www.wsabstract.com
This script will allow you to make a sound play when the mouse passes over a link, or when it is clicked on. Step 1:Paste this into the HEAD section of your page.
Step 2: Edit the aySound array to preload the sound files.aySound[0]="YourSoundFile.wav";
aySound[1]="AnotherSoundFile.wav";
aySound[2]="EvenAnotherOne.wav";
.
.
as many sound files as one wants.
Important!
Please make sure the sound files exist, or else errors will occur.Step 3: Finally, play the sound files with an event handler.
With a link:
- onMouseOver/onMouseOut sound:
<A HREF="YourPage.html" onMouseOver="playSound(0)"
onMouseOut="stopSound(0)">Move mouse over to
play sound</A>
- onClick sound:
<A HREF="javascript:playSound(1);">Click here to play sound</A>
-With a button:
-
<INPUT TYPE="BUTTON" VALUE="Click me!" onClick="playSound(1)">