Consider this:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<div class="floatContainer" style="width:500px;border:1px solid black;padding:2px 4px;font-family:verdana;color:red;font-weight:bold;font-size:80%;"><div style="float:left;width:300px;">Country radio still uneasy with Dixie Chicks. Blah, blah, blah.</div><span style="float:right;font-size:75%;font-weight:normal;">Mar 27, 2006 11:24:10 PM</span></div>
<script type="text/javascript">
var floatC=document.getElementsByTagName('div');
for (var i_tem = 0; i_tem < floatC.length; i_tem++)
if (floatC[i_tem].className=='floatContainer')
floatC[i_tem].style.height=floatC[i_tem].firstChild.offsetHeight+'px'
</script>
</body>
</html>
In the above example, the division with the class of 'floatContainer' represents the container in your script. Hopefully it already has a class name and a fixed width that you can set. If so, we can just replace floatContainer in the script code with its class name. With a bit of luck, we can then do this:
Code:
return '<div style="float:left;width:300px;">'+linktitle+'</div><span style="float:right;">'+feedate+'</span>'
Then find the function where the above line is returning to and have its next lines be:
Code:
var floatC=document.getElementsByTagName('div');
for (var i_tem = 0; i_tem < floatC.length; i_tem++)
if (floatC[i_tem].className=='floatContainer')
floatC[i_tem].style.height=floatC[i_tem].firstChild.offsetHeight+'px'
or this code can be run at another point, as long as it is after each update of the feed(s). The actual widths that you choose to use can be different, the container's width can be what ever it is, makes no difference except the linktitle's division must be narrow enough to fit inside it plus enough width left over for the feedate.
Bookmarks