|
To access the contents, click the chapter and section titles.
Platinum Edition Using HTML 4, XML, and Java 1.2
Table 26.1 shows a listing of the different filters included with Dynamic HTML and supported by Internet Explorer 4, along with a description of their effects.
Placing graphic ObjectsBefore you see how the filters are applied, it is first helpful to see how the graphic object is created. Listing 26.8 shows an excerpt from the example shown, showing how the graphic object is included and configured in the HTML document. Listing 26.8 Embedding graphic Objects <OBJECT ID=SG1> STYLE=HEIGHT:150; WIDTH:150 CLASSID=CLSID:369303C2-D7AC-11D0-89D5-00A0C90833E6> <PARAM NAME=Line0001 VALUE=SetFillStyle(1)> <PARAM NAME=Line0002 VALUE=SetFillColor(255,255,255)> <PARAM NAME=Line0003 VALUE=Pie(-75,-75,150,150,0,10,0)> <PARAM NAME=Line0004 VALUE=SetFillColor(0,90,200)> <PARAM NAME=Line0005 VALUE=Pie(-75,-75,150,150,0,10,18)> … <PARAM NAME=Line0042 VALUE=SetFillColor(255,255,255)> <PARAM NAME=Line0043 VALUE=Pie(-75,-75,150,150,0,10,360)> </OBJECT> This HTML <OBJECT> tag and parameters use the following information:
Applying Dynamic HTML FiltersDynamic HTML filters are implemented by Microsoft as style sheet attributes. To apply them to all or part of an HTML document, therefore, a region needs to be defined and (optionally) named. You can then write scripts that reference the style property of the region to apply different filters. Listing 26.9 shows the outline of the region defined in the example shown in Figure 26.13. Notice that HTML text, an image, and a graphic object are all included within the bounds of a <DIV> container tag. The NAME attribute of the <DIV> tag enables the entire region to be treated as one and to be referred to by name within the object hierarchy. Listing 26.9 Use the <DIV> Tag to Group HTML Elements <DIV ID=theImg style parameters…> HTML text… <IMG image parameters…> <OBJECT graphic object parameters…> <PARAM graphic object parameters…> … </DIV>
|
Products | Contact Us | About Us | Privacy | Ad Info | Home
Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc. All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited. Read EarthWeb's privacy statement. |