Question with XML, Javascript and HTML - making a pointer when mousing over a link...?

  • Thread starter Thread starter Buji Ryu
  • Start date Start date
B

Buji Ryu

Guest
I'm designing a webpage from scratch using HTML, XML and Javascript. I use XML to store blog data. I then use javascript within an HTML page to access and display the data in the XML. I have it set up to display a list of dates and titles of the blog entries on the right hand side and in the center the content of the entry. The problem is when I mouse over the dates the mouse is an "I" not a pointer. Some people might not know it's a link to access that blog entry. Here's some code that displays dates and titles of the blogs:
<div style="top: 360px; left: 600px; position: absolute; z-index: 1; visibility: show; width: 200px;">
<script type="text/javascript">
show("0");
document.write("<table border='0' width='200px'>");
for (var i=0;i<x.length;i++)
{
document.write("<tr onclick='show(" + i + ")'>");
document.write("<td>");
document.write(x.getElementsByTagName("date")[0].childNodes[0].nodeValue+" - "+x.getElementsByTagName("title")[0].childNodes[0].nodeValue);
document.write("</td>");
}
document.write("</table>");
</script>
</div>

show is a function that i defined earlier. It basicly defines how to display the blog data.
function show(i)
{
title=(x.getElementsByTagName("title")[0].childNodes[0].nodeValue);
date=(x.getElementsByTagName("date")[0].childNodes[0].nodeValue);
time=(x.getElementsByTagName("time")[0].childNodes[0].nodeValue);
author=(x.getElementsByTagName("author")[0].childNodes[0].nodeValue);
content=(x.getElementsByTagName("content")[0].childNodes[0].nodeValue);
txt="<b>"+title+"</b><br /><i>Posted by "+author+" on "+date+" at "+time+"</i><p>"+content+"</P>" ;
document.getElementById("show").innerHTML=txt;

}

My question is, instead of the I when I hover over the link, how can I change it to a pointer to make look more like a link that you can click?
 
Back
Top