HTML, JavaScript And CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingHTML, JavaScript And CSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old January 2nd, 2004, 10:45 AM
amc amc is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 1 amc User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Javascript Help Please

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">&nbsp;<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

Reply With Quote
  #2  
Old January 7th, 2004, 12:26 AM
shamrog12's Avatar
shamrog12 shamrog12 is offline
Newton's Apple Wizard
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 1,661 shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level)shamrog12 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Weeks 2 Days 2 h 39 m 22 sec
Reputation Power: 34
Send a message via AIM to shamrog12
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?

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingHTML, JavaScript And CSS Help > Javascript Help Please


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT