how can i control external js feed with css

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • msimonds
    Senior Member
    • Jan 2004
    • 395
    • 3.6.x

    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"> 
    							[b]<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=\"[/b][url="http://www.sportsrant.com/forums/showthread.php?t"][b]http://www.sportsrant.com/forums/showthread.php?t[/b][/url][b]=" + threads[i].threadid + "\">" + threads[i].title + "</a>&nbsp;&nbsp;by:&nbsp;<a href=\"[/b][url="http://www.sportsrant.com/forums/member.php?u="][b]http://www.sportsrant.com/forums/member.php?u="+threads[i].poster+"\[/b][/url][b]">" + threads[i].poster + "</a></li>");
    	   }
    	   //-->
    	  </script>
    [/b]							<br>
    							<strong><a href="[url="http://www.sportsrant.com/forums/index.php"]http://www.sportsrant.com/forums/index.php[/url]" 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!



    thanks,
    Mike
    Founder

    http://www.sportsrant.com
  • msimonds
    Senior Member
    • Jan 2004
    • 395
    • 3.6.x

    #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

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...