Click to See Complete Forum and Search --> : Text Effect


Chantayle
07-23-2003, 02:09 PM
Is there any way at all to house a text marquee inside of a division or a cell?
The one I currently have makes me position the text by pixels, which will obviously change if someone has large print on their screen, or has a different resolution. I have found it is not a very versitile script, and was looking for another. Any ideas?

Jona
07-23-2003, 02:32 PM
What script are you using? All you should have to do is change the style from position:absolute to position:relative.

[J]ona

Chantayle
07-23-2003, 02:44 PM
Here's the relative chunk:

if(document.getElementById) // IE5 and NS6
{
document.write('<DIV STYLE="position:relative;top:'+divtop+';left:'+divleft+';width:'+divwidth+';height:'+divheight+';visibility :visible;background-color:'+divcolor+';overflow:hidden;clip:rect(0,'+divwidth+','+divheight+',0)">')
document.write('<DIV STYLE="position:relative;top:0;left:0;width:'+divwidth+';height:'+divheight+'">')
document.write('<DIV ID='+divname1+' STYLE="position:absolute;top:0;left:0;width:'+divwidth+';height:'+divheight+'"></DIV>')
document.write('<DIV ID='+divname2+' STYLE="position:absolute;top:0;left:0;width:'+divwidth+';height:'+divheight+';visibility:hidden"></DIV>')
document.write('</DIV></DIV>')
}


So, if I understand you correctly, just change all of the positions to relative?

Jona
07-23-2003, 02:45 PM
Yeah, you could try doing that. It uses document.write() instead of you having to put the object in your page manually, which is a little different from how I normally code...

[J]ona