spacer

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

home / experts / javascript / column22


The HTML Caller Page

Developer News
News Flash: Adobe Has iPhone Workaround
Adobe's Flash 10.1 Goes Mobile (Minus iPhone)
A Salute to Visionary CEOs

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, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Building a Banking Application Home Page with OOP · Mixing Scripting Languages · Review: phpFox, a Social Networking CMS with all the Bells and Whistles
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Enterprise 2.0: Social Networking in the Cloud · BroadSoft Marketplace Hastens Pace of Telephony Innovation · Review: HTC Hero for Sprint


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

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