外观
Code presented firstly, haha.
A Simple RolloverThe above small code snippet is very simple, but with some problems and drawbacks:
To avoid the above problems and drawbacks, you can use the code snippets below (please be informed that now the javascript is separated from the HTML file):
Here is the HTML code:
A More Effective RolloverAnd here is the corresponding JavaScript code related to the above HTML code:
window.onload = rolloverInit;
function rolloverInit() {
for (var i=1; iReference: *JavaScript Visual QuickStart Guide (8th Edition)*