Hi
I have a list where I get posts from a db. When I click a post the text opens in another frame and the list is still visible.
I would like to put another fontcolor on the link that is chosen. Could be don with a class.
I know how to do it in asp:
EX.
Code:
<%
if Clng(reqID)=rs("ID") then
Response.Write("<span class='active'>")
else
Response.Write("</span>")
end if
%>
but this list is delivered to med in JavaScript.
Here is some of the code
Code:
<script language="javascript" src="http://....asp"></script>
<script language="javascript">
if (0 == jobData.length)
{
document.write ('<tr><td>Some text</td></tr>')
}
else
{
for (i = 0; i < jobData.length; i++)
{
document.write ('<tr>')
document.write ('<td><a href=show.asp?jobid=' + jobData[i][0] + ' target=content>')
document.write ( jobData[i][2] )
document.write ('</a></td>');
document.write ('</tr>')
}
}
</script>
Hope anyone can help me
/Lucas