spacer

home / experts / dhtml / column25 / addendum1
Developer News
Cisco Lawsuit: A Test for the GPL?
Shifts for Enterprise Linux, Green Networks in '09
Gifts for All in Linux 2.6.28
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.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

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

webref The latest from WebReference.com Browse >
Overview of Popular JavaScript Frameworks - ASP.NET AJAX · An Introduction to 3D · Email Marketing Terms to Know
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Configuring Anonymous Dialog Security in SQL Server 2005 Express Service Broker Conversation · OpenVPN: Revoking Access and Expanding Management Options · Connecticut Town Lays Groundwork for Merged School, Municipal VoIP Network

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

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