spacer

home / experts / dhtml / column25 / addendum1
Developer News
Eclipse Helios Update Brings New PHP Tools
Internet Explorer 9 Ups Standards Support
JBoss Portal 5 Release Easier to Use

Logo

Dynamic Headline Fader, Version 2.01
accounting for text justification in IE4mac


The Problem

When we specify "center" or "right" for FDRtxtAln, the last line in the fader display is not correctly aligned. For example, if we specify a "center" value for FDRtxtAln:


IE4+win rendering

IE4mac rendering

IE4mac will not properly justify a line unless the line has a soft or hard wrap assigned to it.

The Solution

We will always add a hard line break at the end of all fader item text displays.

Therefore, in FDRfade(), where we define the item text (newsStr), we add an IE4mac-specific statement:

function FDRfade(){
   .
   .
   .
   if (isLink) {
      newsStr = "<A CLASS=newslink "
              + "HREF='" + prefix + linkStr + "'>"
              + arNews[newsCount] + "</A>"
   }
   else {
      newsStr = (NS4) ? ("<P CLASS=nolink>"+dispStr+"</P>") : dispStr;
   }

   if(IE4mac) newsStr += "<BR>"
   .
   .
   .
}

We're done with IE4mac fixes, but we do have one NS4mac fix to include.


Produced by Peter Belesis and

webref The latest from WebReference.com Browse >
Flashmaps' DynamicLocator: Interactive Maps for Small Areas · Flashmaps' AreaSelector: Interactive Maps for Wide Areas · The DB Mapper: Interactive Street-level Maps of U.S. and Canada
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
MS Access and MySQL · Cisco AutoQoS: VoIP QoS for Mere Mortals · While VoIP Adoption Explodes in Enterprise, Carrier Spending Lags

All Rights Reserved. Legal Notices.
Created: Sep 21, 1999
Revised: Sep 21, 1999

URL: http://www.webreference.com/dhtml/column25/addendum1/fdr201iemac3.html