</style>
</head>
<body>
<h1 id=”head1” onmouseover=
“changestyle(‘pfirst’,’fontSize’,’24px’);
changestyle(‘head1’,’color’,’green’);”
>Hover mouse here to expand.
</h1>
<br>
<br>
<p id=”pfirst”>
For small programming jobs, scripting works just fine.
Scripting is programming, albeit with a somewhat
abbreviated language. Scripting is designed to get
past firewalls, browser security settings, and
other security measures. A script language is
quite similar to its parent language (Visual Basic
or Java), but some potentially dangerous commands
— mainly hard drive access, such as file deleting
— are removed from the script language.</p>
</body>
</html>
To test this example, follow these steps:
- Save this code to a file named scripting.htm on your hard drive, or
use another filename if you prefer. - Double-click that file in Internet Explorer.
The page is loaded into Internet Explorer. You see the result shown in
Figure 16-1. - Move your mouse pointer over the headline.
The headline immediately turns green and the paragraph of text expands
from a size of 12 pixels to 24 pixels, as you see in Figure 16-2: