Hi,
Still learning : ) Got a web site going and I’m using a iframe in the center of the home page. I have code to make the nav table cells on left to change color and cursor when you mouse over them (code below).
<tr>
<td height=”30″ bgcolor=”#0099CC” id=”tabhole” onmouseover=”this.style.background=’#74E1FE’; this.style.color=’red’; this.style.cursor=’hand'” onmouseout=”this.style.background=’#0099CC’; this.style.color=’black'”><div align=”center”>
<p><font size=”2″ face=”Arial, Helvetica, sans-serif”><strong>Hole
in One Club</strong></font></p>
</div></td>
</tr>
Now I want to do a onclick in that so I can load a html page into my iframe named “main”. Im having problems getting it to work so that it works if you click anywhere in the cell, not just the text in the cell, and having it target “main”. Any help or advice to point me in the right direction with be great. Only think i can think of is doing a function (below)
function gotourl(url) {
document.location = url;
}
Then doing a onclick=gotourl but have no idea how to give a target or make it so can just give the html page name and not the whole path for the page. Hope this makes since what Im trying to do. Email me if you need more info : ) And thanks a ton.
Joe Carlson
[email][email protected]