spacer

home / experts / dhtml / column25 / addendum1
Developer News
News Flash: Adobe Has iPhone Workaround
Adobe's Flash 10.1 Goes Mobile (Minus iPhone)
A Salute to Visionary CEOs

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

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

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

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