Announcement

Collapse
No announcement yet.

how can i control external js feed with css

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • how can i control external js feed with css

    I am trying to control the javascript external feed that works with my home pages css.

    My site calls sportsrant.css and there is a class in the css file called

    Code:
    .RantBlackSmall {  font-family: "Verdana", "Arial", "Helvetica", sans-serif; font-size: 10px; text-decoration: none; color: #000000}
    .RantBlackSmall:visited { color: #000000 }
    .RantBlackSmall:active { color: #000000}
    .RantBlackSmall:hover { text-decoration: none }
    and
    the external js feed is within a cell

    Code:
     
    <table width="155" height="100" border="0" cellpadding="0" cellspacing="0">
    					  <tr> 
    						<td valign="top" background="images/borders/menu_bg_right.jpg"><div align="center"><img src="images/borders/menu_top.jpg" width="155" height="2"><br>
    							<table width="150" height="25" border="0" cellpadding="0" cellspacing="0" background="images/cell/orange_header.jpg" bgcolor="#EBCC6E">
    							  <tr> 
    								<td width="23">&nbsp;</td>
    								<td><strong><font color="#555555" size="1" face="Verdana, Arial, Helvetica, sans-serif">Latest Posts</font></strong></td>
    							  </tr>
    							</table>
    							<br>
    							<font size="2" face="Verdana, Arial, Helvetica, sans-serif"> 
    							<script type="text/javascript" src="/forums/external.php?type=js"></script>
    	   <script type="text/javascript">
    	   <!--
    	   for (i = 0; i < 10; i++)
    	   {
    		if (threads[i].title.length > 20)
    		{ threads[i].title = threads[i].title.substring(0,20) + '...'; }
    		document.writeln("<li><a href=\"http://www.sportsrant.com/forums/showthread.php?t=" + threads[i].threadid + "\">" + threads[i].title + "</a>&nbsp;&nbsp;by:&nbsp;<a href=\"http://www.sportsrant.com/forums/member.php?u="+threads[i].poster+"\">" + threads[i].poster + "</a></li>");
    	   }
    	   //-->
    	  </script>
    							<br>
    							<strong><a href="http://www.sportsrant.com/forums/index.php" class="RantMenuTop">Go 
    							live</a><br>
    							<br>
    							</strong></font></div></td>
    					  </tr>
    					</table>
    i want to use this so these links show up as the rest on my site do. Is there a way to call the css class within the java script!!!

    any help would be appreciated!

    You can see that just adding this script to the cell breaks up the right side of this test page!

    http://www.sportsrant.com/latest.php

    thanks,
    Mike
    Founder

    http://www.sportsrant.com

  • #2
    oops i posted this in the vb 2 section, sorry i meant to post this in the vb3 section
    Founder

    http://www.sportsrant.com

    Comment

    Loading...
    Working...
    X