Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem w/ Font of Links Getting Bigger

Status
Not open for further replies.

noles

Technical User
Apr 25, 2005
4
FR
Maybe someone can help me here. I have scrolling text that has links in them. Everytime I click on the link...the font of the link gets bigger until you click on another link. Is there anyway of getting the font of these links the same size when they are clicked on? Here is the code:


<style type="text/css">
a:link {color: blue; text-decoration: none;}
a:active {color: red; background-color: #ffffcc;}
a:visited {color: purple; text-decoration: none;}
a:hover {color: red; text-decoration: underline;}
</style>

<SCRIPT language=javascript>


//ENTER CONTENT TO SCROLL BELOW.



var content='<p>Buy and wear the <a href=" wristband.</p> <p><a href=" With Us!! Blow the Whistle on Asthma Walk</a></p> <p>Join us for the <a href=" Shore Golf Classic</a> - Monday, June 20, 2005</p><p><a href=" Run Walk</a> - Support the Clean Air Challenge</p><p><a href=" Smoking By Hypnosis</a></p><p>Do you have Asthma? <a href=" Needed!</a></p><p><a href=" Heating and Cooling Company Helps Child Breathe Easier</a>';

var boxheight=150; // BACKGROUND BOX HEIGHT IN PIXELS.
var boxwidth=150; // BACKGROUND BOX WIDTH IN PIXELS.
var boxcolor="#FFF6e9"; // BACKGROUND BOX COLOR.
var speed=80; // SPEED OF SCROLL IN MILLISECONDS (1 SECOND=1000 MILLISECONDS)..
var pixelstep=2; // PIXELS "STEPS" PER REPITITION.
var godown=false; // TOP TO BOTTOM=TRUE , BOTTOM TO TOP=FALSE

// DO NOT EDIT BEYOND THIS POINT

var outer,inner,elementheight,ref,refX,refY;
var w3c=(document.getElementById)?true:false;
var ns4=(document.layers)?true:false;
var ie4=(document.all && !w3c)?true:false;
var ie5=(document.all && w3c)?true:false;
var ns6=(w3c && navigator.appName.indexOf("Netscape")>=0)?true:false;
var txt='';
if(ns4){
txt+='<table cellpadding=0 cellspacing=0 border=0 height='+boxheight+' width='+boxwidth+'><tr><td>';
txt+='<ilayer name="ref" bgcolor="'+boxcolor+'" width='+boxwidth+' height='+boxheight+'></ilayer>';
txt+='</td></tr></table>'
txt+='<layer name="outer" bgcolor="'+boxcolor+'" visibility="hidden" width='+boxwidth+' height='+boxheight+'>';
txt+='<layer name="inner" width='+(boxwidth-4)+' height='+(boxheight-4)+' visibility="hidden" left="2" top="2" >'+content+'</layer>';
txt+='</layer>';
}else{
txt+='<div id="ref" style="position:relative; width:'+boxwidth+'; height:'+boxheight+'; background-color:'+boxcolor+';" ></div>';
txt+='<div id="outer" style="position:absolute; width:'+boxwidth+'; height:'+boxheight+'; visibility:hidden; background-color:'+boxcolor+'; overflow:hidden" >';
txt+='<div id="inner" style="position:absolute; visibility:visible; left:2px; top:2px; width:'+(boxwidth-4)+'; overflow:hidden; cursor:default;">'+content+'</div>';
txt+='</div>';
}
document.write(txt);

function getElHeight(el){
if(ns4)return (el.document.height)? el.document.height : el.clip.bottom-el.clip.top;
else if(ie4||ie5)return (el.style.height)? el.style.height : el.clientHeight;
else return (el.style.height)? parseInt(el.style.height):parseInt(el.offsetHeight);
}

function getPageLeft(el){
var x;
if(ns4)return el.pageX;
if(ie4||w3c){
x = 0;
while(el.offsetParent!=null){
x+=el.offsetLeft;
el=el.offsetParent;
}
x+=el.offsetLeft;
return x;
}}

function getPageTop(el){
var y;
if(ns4)return el.pageY;
if(ie4||w3c){
y=0;
while(el.offsetParent!=null){
y+=el.offsetTop;
el=el.offsetParent;
}
y+=el.offsetTop;
return y;
}}

function scrollbox(){
if(ns4){
inner.top+=(godown)? pixelstep: -pixelstep;
if(godown){
if(inner.top>boxheight)inner.top=-elementheight;
}else{
if(inner.top<2-elementheight)inner.top=boxheight+2;
}}else{
inner.style.top=parseInt(inner.style.top)+((godown)? pixelstep: -pixelstep)+'px';
if(godown){
if(parseInt(inner.style.top)>boxheight)inner.style.top=-elementheight+'px';
}else{
if(parseInt(inner.style.top)<2-elementheight)inner.style.top=boxheight+2+'px';
}}}

window.onresize=function(){
if(ns4)setTimeout('history.go(0)', 400);
else{
outer.style.left=getPageLeft(ref)+'px';
outer.style.top=getPageTop(ref)+'px';
}}

window.onload=function(){
outer=(ns4)?document.layers['outer']:(ie4)?document.all['outer']:document.getElementById('outer');
inner=(ns4)?outer.document.layers['inner']:(ie4)?document.all['inner']:document.getElementById('inner');
ref=(ns4)?document.layers['ref']:(ie4)?document.all['ref']:document.getElementById('ref');
elementheight=getElHeight(inner);
if(ns4){
outer.moveTo(getPageLeft(ref),getPageTop(ref));
outer.clip.width=boxwidth;
outer.clip.height=boxheight;
inner.top=(godown)? -elementheight : boxheight-2;
inner.clip.width=boxwidth-4;
inner.clip.height=elementheight;
outer.visibility="show";
inner.visibility="show";
}else{
outer.style.left=getPageLeft(ref)+'px';
outer.style.top=getPageTop(ref)+'px';
inner.style.top=((godown)? -elementheight : boxheight)+'px';
inner.style.clip='rect(0px, '+(boxwidth-4)+'px, '+(elementheight)+'px, 0px)';
outer.style.visibility="visible";
}
setInterval('scrollbox()',speed);
}

</SCRIPT>
 
Is this all the code that is on the page? My initial thoughts made me think you are using an external stylesheet where links have behaviour which states that their text size increases when active.

Incidentally, your css for links is incorrect because it lists the states in the wrong order. Pseudo classes (states) need to be specified in exact order to work properly.

:link
:visited
:focus
:hover
:active

Of course, you can skip any which one you do not wish to use.
 
I don't know if this site allows so much code, but I did omit the majority of the code because it is so long. But here is all of it on this one page that I'm having problems with:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns=" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:eek: =
"urn:schemas-microsoft-com:eek:ffice:eek:ffice"><HEAD><TITLE>American Lung Association of Ohio</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<META content=FrontPage.Editor.Document name=ProgId>
<STYLE>A:active {
FONT-SIZE: 12pt; COLOR: #ffffff; FONT-FAMILY: Arial
}
TD {
FONT-SIZE: 8pt; FONT-FAMILY: verdana, arial, helvetica, sans-serif; TEXT-DECORATION: none
}
.boxtd {
BORDER-RIGHT: #004000 1px solid; BORDER-TOP: #004000 0px solid; BORDER-LEFT: #004000 1px solid; BORDER-BOTTOM: #004000 1px solid; BACKGROUND-COLOR: #bfc7bf
}
.sponsor {
BORDER-RIGHT: #004500 1px solid; BORDER-TOP: #004500 1px solid; BORDER-LEFT: #004500 1px solid; BORDER-BOTTOM: #004500 1px solid
}
</STYLE>

<META content="web-41 010, default" name="Microsoft Theme">
<META content=tl name="Microsoft Border"></HEAD>
<BODY text=#000000 vLink=#000080 aLink=#ffffff link=#0000ff bgColor=#ffffff><!--msnavigation-->
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD bgColor=#3300a9><!--mstheme--><FONT face="Arial, Arial, Helvetica">
<P align=center><SPAN
style="Z-INDEX: 1; LEFT: 17px; POSITION: absolute; TOP: 17px"><A
href="file:///C:/WINDOWS/Desktop/index.htm"><IMG height=152 src=""
width=137 border=0></A></SPAN></P>
<P align=center><SPAN
style="Z-INDEX: 1; LEFT: 16px; POSITION: absolute; TOP: 36px"><A
href="file:///C:/WINDOWS/Desktop/index.htm"><IMG height=118 src=""
width=88 border=0></A></SPAN></P>
<P align=center>&nbsp;</P>
<P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px" align=right><SPAN
style="Z-INDEX: 1; LEFT: 106px; POSITION: absolute; TOP: 36px"><A
href="file:///C:/WINDOWS/Desktop/index.htm"><IMG height=100 src=""
width=639 border=0></A></SPAN></P>
<P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px" align=right>&nbsp;</P>
<P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px" align=right>&nbsp;</P>
<P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px" align=right>&nbsp;</P>
<P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px" align=right><SPAN
style="LEFT: 198px; POSITION: absolute; TOP: 109px"><FONT
color=#c0c0c0><B>
<MARQUEE style="FONT-SIZE: 10pt" scrollDelay=100 behavior=slide width=454
height=16>Celebrating 100 Years of Helping Ohioans Breathe
Easier</MARQUEE></B></FONT></SPAN></P>
<P>&nbsp;</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<SCRIPT language=JavaScript><!--
MSFPhover =
(((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )) ||
((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 )));
function MSFPpreload(img)
{
var a=new Image(); a.src=img; return a;
}
// --></SCRIPT>

<SCRIPT language=JavaScript><!--
if(MSFPhover) { MSFPnav1n=MSFPpreload("_derived/volunteer.htm_cmp_web-41010_hbtn.gif"); MSFPnav1h=MSFPpreload("_derived/volunteer.htm_cmp_web-41010_hbtn_a.gif"); }
// --></SCRIPT>
<A language=JavaScript
onmouseover="if(MSFPhover) document['MSFPnav1'].src=MSFPnav1h.src"
onmouseout="if(MSFPhover) document['MSFPnav1'].src=MSFPnav1n.src"
href="file:///C:/WINDOWS/Desktop/volunteer.htm"><IMG height=32
alt=Volunteer src="" width=130 align=middle border=0 name=MSFPnav1></A>
<SCRIPT language=JavaScript><!--
if(MSFPhover) { MSFPnav2n=MSFPpreload("_derived/advocacy.htm_cmp_web-41010_hbtn.gif"); MSFPnav2h=MSFPpreload("_derived/advocacy.htm_cmp_web-41010_hbtn_a.gif"); }
// --></SCRIPT>
<A language=JavaScript
onmouseover="if(MSFPhover) document['MSFPnav2'].src=MSFPnav2h.src"
onmouseout="if(MSFPhover) document['MSFPnav2'].src=MSFPnav2n.src"
href="file:///C:/WINDOWS/Desktop/advocacy.htm"><IMG height=32 alt=Advocacy
src="" width=130 align=middle border=0 name=MSFPnav2></A>
<SCRIPT language=JavaScript><!--
if(MSFPhover) { MSFPnav3n=MSFPpreload("_derived/press.htm_cmp_web-41010_hbtn.gif"); MSFPnav3h=MSFPpreload("_derived/press.htm_cmp_web-41010_hbtn_a.gif"); }
// --></SCRIPT>
<A language=JavaScript
onmouseover="if(MSFPhover) document['MSFPnav3'].src=MSFPnav3h.src"
onmouseout="if(MSFPhover) document['MSFPnav3'].src=MSFPnav3n.src"
href="file:///C:/WINDOWS/Desktop/press.htm"><IMG height=32
alt="Press Center" src="" width=130 align=middle border=0
name=MSFPnav3></A>
<SCRIPT language=JavaScript><!--
if(MSFPhover) { MSFPnav4n=MSFPpreload("_derived/search.htm_cmp_web-41010_hbtn.gif"); MSFPnav4h=MSFPpreload("_derived/search.htm_cmp_web-41010_hbtn_a.gif"); }
// --></SCRIPT>
<A language=JavaScript
onmouseover="if(MSFPhover) document['MSFPnav4'].src=MSFPnav4h.src"
onmouseout="if(MSFPhover) document['MSFPnav4'].src=MSFPnav4n.src"
href="file:///C:/WINDOWS/Desktop/search.htm"><IMG height=32 alt=Search
src="" width=130 align=middle border=0 name=MSFPnav4></A></P><!--mstheme--></FONT></TD></TR><!--msnavigation--></TBODY></TABLE><!--msnavigation-->
<TABLE dir=ltr cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD vAlign=top width="1%" bgColor=#000080><!--mstheme--><FONT
face="Arial, Arial, Helvetica">
<P align=center>
<SCRIPT language=JavaScript><!--
if(MSFPhover) { MSFPnav5n=MSFPpreload("_derived/home_cmp_web-41010_vbtn_p.gif"); MSFPnav5h=MSFPpreload("_derived/home_cmp_web-41010_vbtn_a.gif"); }
// --></SCRIPT>
<A language=JavaScript
onmouseover="if(MSFPhover) document['MSFPnav5'].src=MSFPnav5h.src"
onmouseout="if(MSFPhover) document['MSFPnav5'].src=MSFPnav5n.src"
href="file:///C:/WINDOWS/Desktop/"><IMG height=32 alt=Home src=""
width=130 border=0 name=MSFPnav5></A><BR>
<SCRIPT language=JavaScript><!--
if(MSFPhover) { MSFPnav6n=MSFPpreload("_derived/who.htm_cmp_web-41010_vbtn.gif"); MSFPnav6h=MSFPpreload("_derived/who.htm_cmp_web-41010_vbtn_a.gif"); }
// --></SCRIPT>
<A language=JavaScript
onmouseover="if(MSFPhover) document['MSFPnav6'].src=MSFPnav6h.src"
onmouseout="if(MSFPhover) document['MSFPnav6'].src=MSFPnav6n.src"
href="file:///C:/WINDOWS/Desktop/who.htm"><IMG height=32 alt="Who We Are"
src="" width=130 border=0 name=MSFPnav6></A><BR>
<SCRIPT language=JavaScript><!--
if(MSFPhover) { MSFPnav7n=MSFPpreload("_derived/what.htm_cmp_web-41010_vbtn.gif"); MSFPnav7h=MSFPpreload("_derived/what.htm_cmp_web-41010_vbtn_a.gif"); }
// --></SCRIPT>
<A language=JavaScript
onmouseover="if(MSFPhover) document['MSFPnav7'].src=MSFPnav7h.src"
onmouseout="if(MSFPhover) document['MSFPnav7'].src=MSFPnav7n.src"
href="file:///C:/WINDOWS/Desktop/what.htm"><IMG height=32 alt="What We Do"
src="" width=130 border=0 name=MSFPnav7></A><BR>
<SCRIPT language=JavaScript><!--
if(MSFPhover) { MSFPnav8n=MSFPpreload("_derived/quit.htm_cmp_web-41010_vbtn.gif"); MSFPnav8h=MSFPpreload("_derived/quit.htm_cmp_web-41010_vbtn_a.gif"); }
// --></SCRIPT>
<A language=JavaScript
onmouseover="if(MSFPhover) document['MSFPnav8'].src=MSFPnav8h.src"
onmouseout="if(MSFPhover) document['MSFPnav8'].src=MSFPnav8n.src"
href="file:///C:/WINDOWS/Desktop/quit.htm"><IMG height=32
alt="Quit Smoking" src="" width=130 border=0 name=MSFPnav8></A><BR>
<SCRIPT language=JavaScript><!--
if(MSFPhover) { MSFPnav9n=MSFPpreload("_derived/events.htm_cmp_web-41010_vbtn.gif"); MSFPnav9h=MSFPpreload("_derived/events.htm_cmp_web-41010_vbtn_a.gif"); }
// --></SCRIPT>
<A language=JavaScript
onmouseover="if(MSFPhover) document['MSFPnav9'].src=MSFPnav9h.src"
onmouseout="if(MSFPhover) document['MSFPnav9'].src=MSFPnav9n.src"
href="file:///C:/WINDOWS/Desktop/events.htm"><IMG height=32 alt=Events
src="" width=130 border=0 name=MSFPnav9></A><BR>
<SCRIPT language=JavaScript><!--
if(MSFPhover) { MSFPnav10n=MSFPpreload("_derived/education.htm_cmp_web-41010_vbtn.gif"); MSFPnav10h=MSFPpreload("_derived/education.htm_cmp_web-41010_vbtn_a.gif"); }
// --></SCRIPT>
<A language=JavaScript
onmouseover="if(MSFPhover) document['MSFPnav10'].src=MSFPnav10h.src"
onmouseout="if(MSFPhover) document['MSFPnav10'].src=MSFPnav10n.src"
href="file:///C:/WINDOWS/Desktop/education.htm"><IMG height=32
alt=Workshops src="" width=130 border=0 name=MSFPnav10></A><BR>
<SCRIPT language=JavaScript><!--
if(MSFPhover) { MSFPnav11n=MSFPpreload("_derived/donate.htm_cmp_web-41010_vbtn.gif"); MSFPnav11h=MSFPpreload("_derived/donate.htm_cmp_web-41010_vbtn_a.gif"); }
// --></SCRIPT>
<A language=JavaScript
onmouseover="if(MSFPhover) document['MSFPnav11'].src=MSFPnav11h.src"
onmouseout="if(MSFPhover) document['MSFPnav11'].src=MSFPnav11n.src"
href="file:///C:/WINDOWS/Desktop/donate.htm"><IMG height=32 alt=Donate
src="" width=130 border=0 name=MSFPnav11></A><BR>
<SCRIPT language=JavaScript><!--
if(MSFPhover) { MSFPnav12n=MSFPpreload("_derived/ohio_thoracic.htm_cmp_web-41010_vbtn.gif"); MSFPnav12h=MSFPpreload("_derived/ohio_thoracic.htm_cmp_web-41010_vbtn_a.gif"); }
// --></SCRIPT>
<A language=JavaScript
onmouseover="if(MSFPhover) document['MSFPnav12'].src=MSFPnav12h.src"
onmouseout="if(MSFPhover) document['MSFPnav12'].src=MSFPnav12n.src"
href="file:///C:/WINDOWS/Desktop/ohio_thoracic.htm"><IMG height=32
alt="Thoracic Society" src="" width=130 border=0 name=MSFPnav12></A><BR>
<SCRIPT language=JavaScript><!--
if(MSFPhover) { MSFPnav13n=MSFPpreload("_derived/links.htm_cmp_web-41010_vbtn.gif"); MSFPnav13h=MSFPpreload("_derived/links.htm_cmp_web-41010_vbtn_a.gif"); }
// --></SCRIPT>
<A language=JavaScript
onmouseover="if(MSFPhover) document['MSFPnav13'].src=MSFPnav13h.src"
onmouseout="if(MSFPhover) document['MSFPnav13'].src=MSFPnav13n.src"
href="file:///C:/WINDOWS/Desktop/links.htm"><IMG height=32 alt=Links
src="" width=130 border=0 name=MSFPnav13></A><BR><BR><A
href=" target=_blank><IMG
height=76 src="" width=105 border=0 bordercolor="black"></A><BR><FONT
color=#ffffff size=1>Check Out Our Auction</FONT></P>
<P align=center>&nbsp;</P><!--mstheme--></FONT></TD>
<TD vAlign=top width=24></TD><!--msnavigation-->
<TD vAlign=top><!--mstheme--><FONT face="Arial, Arial, Helvetica">
<P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px" align=center><FONT
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</FONT></P><!--mstheme--></FONT>
<TABLE height=1 cellSpacing=0 cellPadding=4 width=550 border=0>
<TBODY>
<TR>
<TD vAlign=top align=middle height=1><!--mstheme--><FONT
face="Arial, Arial, Helvetica"><!--Start Kids Local Air Checker --><!-- ImageReady Slices (kids_468_functional.gif) --><!--mstheme--></FONT>
<TABLE height=60 cellSpacing=0 cellPadding=0 width=468
bgColor=#336699 border=0>
<TBODY>
<TR>
<TD><!--mstheme--><FONT face="Arial, Arial, Helvetica">
<P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"
align=center><FONT face=arial size=1><B><FONT face=arial><A
href=" height=60 src="" width=468
border=0></A></FONT></B></FONT><!--mstheme--></FONT></P></TD></TR>
<TR>
<TD><!--mstheme--><FONT
face="Arial, Arial, Helvetica"></FORM></FONT></TD></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT><!--mstheme--></FONT></TD></TR></TBODY></TABLE><!--mstheme--><FONT
face="Arial, Arial, Helvetica"><!-- End ImageReady Slices --><!--End Kids Local Air Checker--><!--mstheme--></FONT></TD></TR>
<TR>
<TD vAlign=top align=left height=1><!--mstheme--><FONT
face="Arial, Arial, Helvetica">
<P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px" align=center><B><FONT
face=Arial color=#d03430 size=3>American Lung
Association<SUP>®</SUP> of Ohio</FONT></B></P>
<P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px" align=center><FONT
size=2>Since 1901, the American Lung Association of Ohio has been
helping Ohioans breathe easier. With the generous support of the
public and the help of volunteers, we have seen many advances
against lung disease. We lead the fight to prevent lung disease and
promote lung health through research, education, community service,
and advocacy.</FONT></P>
<P><!--mstheme--></FONT></P></TD></TR>
<TR>
<TD height=11><!--mstheme--><FONT face="Arial, Arial, Helvetica">
<DIV align=center>
<CENTER><!--mstheme--></FONT>
<TABLE height=1 cellSpacing=0 cellPadding=6 width=556
border=0></CENTER>
<TBODY>
<TR>
<TD vAlign=top width=290 height=426><!--mstheme--><FONT
face="Arial, Arial, Helvetica">
<P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><B><FONT
face=Arial size=2><A
href=" of Remembrance</A></FONT></B></P>
<P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><FONT
face=Arial color=#000000 size=2><IMG height=12 src="" width=10
border=0> </FONT><FONT size=2>The Wall of Remembrance is
dedicated to people who have died of lung disease.
Honor&nbsp;the special person in your life who faced the
challenge of&nbsp;lung disease. Your message will be posted
for people around the world to read.</FONT></P>
<P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">&nbsp;</P>
<P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><FONT
face=Arial color=#0080c0 size=2><B><A
href=" From
Smoking<SUP>®</SUP> Online</A></B></FONT><FONT face=Arial
color=#000000 size=2><BR><IMG height=12
src="American Lung Association of Ohio_files/bullet_red_onwhite.gif"
width=10 border=0> Quitting smoking is a difficult process.
The American Lung Association has a program to make that
process just a little easier. Freedom From Smoking<SUP>®</SUP>
Online is a step-by-step program to support you in your
decision to quit smoking. Take that first step to quit smoking
today!</FONT></P>
<P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><FONT
face=Arial color=#000000 size=2>&nbsp;&nbsp;&nbsp;&nbsp;
Interested in other ways to quit smoking? <A
href="file:///C:/WINDOWS/Desktop/quit.htm">Click here</A> for
a list of services.</FONT></P>
<P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">&nbsp;</P>
<P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><B><FONT
face=Arial size=2>Questions About Lung Health?</FONT></B><FONT
face=Arial color=#000000 size=2><BR><IMG height=12
src="American Lung Association of Ohio_files/bullet_red_onwhite.gif"
width=10 border=0> When you're looking for answers to your
lung health questions, the American Lung Association Call
Center will provide you with immediate, clear and accurate
information. By calling </FONT><FONT face=Arial color=#b74500
size=2><B>1-800-548-8252</B></FONT><FONT face=Arial
color=#000000 size=2>, you will be connected directly to a
Registered Nurse/Respiratory Therapist who will take the time
to talk with you and help you find the answers you are looking
for.</FONT></P>
<P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">&nbsp;</P>
<P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><B><A
href="file:///C:/WINDOWS/Desktop/donate.htm"><FONT face=Arial
color=#0080c0 size=2>Donate Online</FONT></A></B><FONT
face=Arial size=2><BR><IMG height=12
src="American Lung Association of Ohio_files/bullet_red_onwhite.gif"
width=10 border=0> Your donations help Ohioans breathe easier.
The American Lung Association has worked to fight lung disease
by helping people quit smoking, funding research, improving
indoor and outdoor air quality, and educating millions about
asthma. Our work is possible only through your donations.
Thank you for your support.</FONT></P><!--mstheme--></FONT></TD>
<TD vAlign=top align=middle width=238 height=426><!--mstheme--><FONT face="Arial, Arial, Helvetica"><!--[if gte mso 9]>
<![endif]-->


<TABLE borderColor=blue border=1>
<TBODY>
<TR>
<TD>
<style type="text/css">
a:link {color: blue; text-decoration: none;}
a:visited {color: purple; text-decoration: none;}
a:hover {color: red; text-decoration: underline;}
a:active {color: red; background-color: #ffffcc;}
</style>

<SCRIPT language=javascript>


//ENTER CONTENT TO SCROLL BELOW.



var content='<font size="2"><p>Buy and wear the <a href=" wristband.</p> <p><a href=" With Us!! Blow the Whistle on Asthma Walk</a></p> <p>Join us for the <a href=" Shore Golf Classic</a> - Monday, June 20, 2005</p><p><a href=" Run Walk</a> - Support the Clean Air Challenge</p><p><a href=" Smoking By Hypnosis</a></p><p>Do you have Asthma? <a href=" Needed!</a></p><p><a href=" Heating and Cooling Company Helps Child Breathe Easier</a></font>';

var boxheight=150; // BACKGROUND BOX HEIGHT IN PIXELS.
var boxwidth=150; // BACKGROUND BOX WIDTH IN PIXELS.
var boxcolor="#FFF6e9"; // BACKGROUND BOX COLOR.
var speed=80; // SPEED OF SCROLL IN MILLISECONDS (1 SECOND=1000 MILLISECONDS)..
var pixelstep=2; // PIXELS "STEPS" PER REPITITION.
var godown=false; // TOP TO BOTTOM=TRUE , BOTTOM TO TOP=FALSE

// DO NOT EDIT BEYOND THIS POINT

var outer,inner,elementheight,ref,refX,refY;
var w3c=(document.getElementById)?true:false;
var ns4=(document.layers)?true:false;
var ie4=(document.all && !w3c)?true:false;
var ie5=(document.all && w3c)?true:false;
var ns6=(w3c && navigator.appName.indexOf("Netscape")>=0)?true:false;
var txt='';
if(ns4){
txt+='<table cellpadding=0 cellspacing=0 border=0 height='+boxheight+' width='+boxwidth+'><tr><td>';
txt+='<ilayer name="ref" bgcolor="'+boxcolor+'" width='+boxwidth+' height='+boxheight+'></ilayer>';
txt+='</td></tr></table>'
txt+='<layer name="outer" bgcolor="'+boxcolor+'" visibility="hidden" width='+boxwidth+' height='+boxheight+'>';
txt+='<layer name="inner" width='+(boxwidth-4)+' height='+(boxheight-4)+' visibility="hidden" left="2" top="2" >'+content+'</layer>';
txt+='</layer>';
}else{
txt+='<div id="ref" style="position:relative; width:'+boxwidth+'; height:'+boxheight+'; background-color:'+boxcolor+';" ></div>';
txt+='<div id="outer" style="position:absolute; width:'+boxwidth+'; height:'+boxheight+'; visibility:hidden; background-color:'+boxcolor+'; overflow:hidden" >';
txt+='<div id="inner" style="position:absolute; visibility:visible; left:2px; top:2px; width:'+(boxwidth-4)+'; overflow:hidden; cursor:default;">'+content+'</div>';
txt+='</div>';
}
document.write(txt);

function getElHeight(el){
if(ns4)return (el.document.height)? el.document.height : el.clip.bottom-el.clip.top;
else if(ie4||ie5)return (el.style.height)? el.style.height : el.clientHeight;
else return (el.style.height)? parseInt(el.style.height):parseInt(el.offsetHeight);
}

function getPageLeft(el){
var x;
if(ns4)return el.pageX;
if(ie4||w3c){
x = 0;
while(el.offsetParent!=null){
x+=el.offsetLeft;
el=el.offsetParent;
}
x+=el.offsetLeft;
return x;
}}

function getPageTop(el){
var y;
if(ns4)return el.pageY;
if(ie4||w3c){
y=0;
while(el.offsetParent!=null){
y+=el.offsetTop;
el=el.offsetParent;
}
y+=el.offsetTop;
return y;
}}

function scrollbox(){
if(ns4){
inner.top+=(godown)? pixelstep: -pixelstep;
if(godown){
if(inner.top>boxheight)inner.top=-elementheight;
}else{
if(inner.top<2-elementheight)inner.top=boxheight+2;
}}else{
inner.style.top=parseInt(inner.style.top)+((godown)? pixelstep: -pixelstep)+'px';
if(godown){
if(parseInt(inner.style.top)>boxheight)inner.style.top=-elementheight+'px';
}else{
if(parseInt(inner.style.top)<2-elementheight)inner.style.top=boxheight+2+'px';
}}}

window.onresize=function(){
if(ns4)setTimeout('history.go(0)', 400);
else{
outer.style.left=getPageLeft(ref)+'px';
outer.style.top=getPageTop(ref)+'px';
}}

window.onload=function(){
outer=(ns4)?document.layers['outer']:(ie4)?document.all['outer']:document.getElementById('outer');
inner=(ns4)?outer.document.layers['inner']:(ie4)?document.all['inner']:document.getElementById('inner');
ref=(ns4)?document.layers['ref']:(ie4)?document.all['ref']:document.getElementById('ref');
elementheight=getElHeight(inner);
if(ns4){
outer.moveTo(getPageLeft(ref),getPageTop(ref));
outer.clip.width=boxwidth;
outer.clip.height=boxheight;
inner.top=(godown)? -elementheight : boxheight-2;
inner.clip.width=boxwidth-4;
inner.clip.height=elementheight;
outer.visibility="show";
inner.visibility="show";
}else{
outer.style.left=getPageLeft(ref)+'px';
outer.style.top=getPageTop(ref)+'px';
inner.style.top=((godown)? -elementheight : boxheight)+'px';
inner.style.clip='rect(0px, '+(boxwidth-4)+'px, '+(elementheight)+'px, 0px)';
outer.style.visibility="visible";
}
setInterval('scrollbox()',speed);
}

</SCRIPT>


</TD></TR></TBODY></TABLE><BR><A
href=" height=91 src="" width=208 border=0></A><BR><B><FONT
face="verdana, arial, helvetica, sans serif" color=#cc0000
size=2>Walk with Us!<BR></FONT></B><FONT
face="verdana, arial, helvetica, sans serif" color=#000000
size=2>&nbsp;<A
href=" the Whistle on Asthma Walks</A></FONT><BR>&nbsp;
<P></P>
<P><FONT size=3><A
href="file:///C:/WINDOWS/Desktop/ohio_asthma_coalition.htm"><IMG
height=75 src="" width=177 border=0></A></FONT></P>
<P align=center><FONT size=2><A
href="file:///C:/WINDOWS/Desktop/ohio_asthma_coalition.htm">Join
the Ohio Asthma Coalition</A></FONT>
<P><BR><BR><A
href=" height=56 alt="Chronic Obstructive Pulmonary Disease Support"
src="American Lung Association of Ohio_files/COPD_Center_button.gif"
width=175 border=0></A></P></FONT></TR></TBODY></TABLE><!--mstheme--><FONT
face="Arial, Arial, Helvetica"></FONT></DIV></TR></TBODY></TABLE><!--mstheme--><FONT
face="Arial, Arial, Helvetica"><!--msthemeseparator-->
<P align=center><IMG height=10 src="" width=600></P>
<P align=center><I><FONT size=2>We believe...&nbsp; Success begins with
people.&nbsp; People are different. Differences create innovation.&nbsp;
<BR>Here in Ohio, we embrace the spirit of Diversity.</FONT></I></P><!--msthemeseparator-->
<P align=center><IMG height=10
src="American Lung Association of Ohio_files/ablrule.gif" width=600></P>
<P align=center><FONT size=3>Home&nbsp;&nbsp;&nbsp; /&nbsp;&nbsp;&nbsp; <A
href="file:///C:/WINDOWS/Desktop/who.htm">Contact</A>&nbsp;&nbsp;&nbsp;
/&nbsp;&nbsp;&nbsp; </FONT><A
href="file:///C:/WINDOWS/Desktop/privacy.htm"><FONT
size=3>Privacy</FONT></A></P></FONT></TR></TBODY></TABLE></BODY></HTML>
 
Like I said, the stylesheet is messing you up. The offending line is right at the top:
Code:
A:active {
    FONT-SIZE: 12pt; COLOR: #ffffff; FONT-FAMILY: Arial
}
This basically says, when link is clicked, make the font into Arial, color into white and size into 12pt. You open another stylesheet later on (even though it should only be opened in the head of the document) and overwrite most of the things but not the font size. Think if you need any of these rules set and if you do not, delete the offending lines. If you do need them, only get rid of the font-size part.
 
Thanks for your help. I'm taking over the web site and I'm having a few hurdles here and there. I'll get it eventually. Thx again!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top