spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / javascript / column22


The HTML Caller Page

Developer News
Microsoft Shows Off Silverlight 4, IE9 Plans
Metasploit Expands Vulnerability Test Framework
HyperCard Reborn?

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.

http://www.internet.com

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Rolling Out Your Own HTML Application Version Control · HTML 5: Client-side Storage · Working with Ajax Server Extensions
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Wi-Fi Product Watch, November 2009 · Chip Market Recovering From '08 Collapse · Low-Cost Tools to Kickstart Your New Business


Created: July 19, 1998
Revised: July 19, 1998

URL: http://www.webreference.com/js/column22/code2.html