|
Script Introduction
A script that will bring up multiple alerts when someone moves the
mouse over a link. It is set up for three alerts.
Cut and Paste Code: HEAD Section
This code should be placed between the <head> and </head> tags.
Cut and Paste Code: BODY Section
This code should be placed between the <body> and </body> tags.
Installation Instructions
-
Paste the HEAD Section code from above between the <head> and </head> tags on your page.
-
Paste the BODY Section code from above between the <body> and </body> tags on your page,
exactly where you want the link to appear.
-
Find the matching lines below in the script and change the text in red to
the text you wish to use:
alert('I told you not to click the link!');
alert('And you did it anyway!');
alert('Oh Well, no more alerts after this.');
<a href="#" onMouseover="m_alerts()">Don't click this link!</a>
-
Check the Format Window
to be sure you do not have one single line of code, or too many line breaks in the code.
Example
A working sample of the script is shown below.
Move the mouse over the link to test the script.
Don't click this link!
|