|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I'm trying to use a syndicated content feed on my website - but it is taking up too large a space in the table I've placed it. Can anyone see if the size and font can be changed? Here is the script:
<td width="20%" valign="top"> <div id=div_n4s></div><script src=http://www.news4sites.com/service/newsfeed.php?tech=js&id=10></script><script>function LinesupClassic() { clearTimeout(cfunc); var str="<li><a href="+content[ccap][url]+"><nobr>"+content[ccap][caption].substr(0,40)+"</nobr></a><br>"; var hn=0; var now=new Date(); for(var i=1;i<11;i++) { hn=((ccap+i)<content.length)?ccap+i:ccap+i-content.length; str+="<li><a href="+content[hn][url]+"><nobr>"+content[hn][caption].substr(0,40)+"</nobr></a><br>"; } var id=document.getElementById("div_n4s"); id.innerHTML="<table width=20% bgcolor=#041943 cellspacing=0 cellpadding=4><tr><td bgcolor=black width=28%><font size=-1 color=white>In the News</font></td></tr><tr><td>"+str+"</td></tr><tr><td bgcolor=#041943>"+now.toLocaleString()+"</td></tr></table>"; ccap=(ccap<content.length-1) ? ccap+1 : 0; cfunc=setTimeout("LinesupClassic()",3000); } ccap=0; cword=0; cfunc='LinesupClassic'; LinesupClassic(); </script> </td> <td width="20%" valign="top"> <p align="left"> <iframe name="I1" width="331" height="242" src="bus.html">Your browser does not support inline frames or is currently configured not to display inline frames.</iframe> </td> Thank you and Happy New Year! AnnMarie |
|
#2
|
||||
|
||||
|
Well you've defined the height as 242 so that's 242 you'll be using right there. Your cellpadding is 4px. Your iframe is in an [unclosed] paragraph tag which will add more room around your iframe. Remove your font tag and use CSS or if you must use the font tag which will not be supported in the future, make the font size 2.
What's the URL so we can see what it's doing that you don't like? |
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > Javascript Help Please |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|