Internet Explorer 5.0 Preview, Part I: The HTML Caller Page - Doc JavaScript
The HTML Caller Page
Here is the HTML caller page. Notice how we define soccer
as a style sheet, pointing to the scriptlet soccer.sct
, and then reference the style sheet (Behavior
) in the DIV
DHTML tag:
<HTML>
<HEAD>
<STYLE>
.soccer{behavior:url(soccer.sct)}
</STYLE>
</HEAD>
<BODY>
<DIV CLASS="soccer" x="200" y="250" onFifthBlink="alert('Fifth Blink Point')">
<IMG SRC="soccer.gif"></DIV> // join with previous line
</BODY>
</HTML>
Notice how simple is the caller page. All format manipulations and dynamic positioning are now encapsulated and hidden away in the Behavior
definition file, soccer.sct
. If more blinking soccer balls are desired in the same window, please refer to a previous page to find how.
Created: July 19, 1998
Revised: July 19, 1998
URL: https://www.webreference.com/js/column22/code2.html