[thelist] link no wrap
Anthony Ettinger
apwebdesign at yahoo.com
Wed Oct 19 10:10:48 CDT 2005
> if(thelinks[i].childNodes.length>0
> && thelinks[i].childNodes[0].nodeValue
> && thelinks[i].childNodes[0].nodeValue.length >
> 80){
> thelinks[i].childNodes[0].nodeValue =
>
thelinks[i].childNodes[0].nodeValue.substr(0,77)+'...';
Not sure what happens if the link has child tags, like
span or em or strong?
<a href="foo"><em>BIG</em> savings!</a>
Probably a moot point, but I'm just curious how that
would work. WOuldn't be a problem if the first child
node contain "<em>BIG</em> savings!" ?
Anthony Ettinger
ph: (408) 656-2473
web: http://www.apwebdesign.com
More information about the thelist
mailing list