PDA

View Full Version : Table Cell Link - Change cursor and send to iframe?


bacterozoid
11-09-2002, 04:52 PM
Well, here is the code:


<td style="border: 1 solid #000080" width="94"
onMouseOver="this.bgColor='#6972BA'"
onMouseOut="this.bgColor='#5059AF'"
onClick="window.location='origins.htm'" bgcolor="#5059AF">
<p align="center">Origins</p>
</td>


When I hover over the cell, it changes to the new color, good. I click on it, and it opens up origins.htm in the browser. Ok, all fine and dandy. Now my questions:

How would I go about changing the cursor to the hand on MouseOver (Giving onMouseOver multiple commands) AND how do I direct this to an inline frame? I know as much as it will deal with window.location, but I'm not exactly sure.

Thanks for any help!

bacterozoid
11-09-2002, 04:57 PM
Eh, window.main.location=origins.htm Go figure, eh? It just now made sense to me. Well, now all I need is the hand, which is really CSS stuff, not really for this board.

Carl
11-09-2002, 05:02 PM
<td style="border: 1 solid #000080" width="94"
onMouseOver="this.bgColor='#6972BA'"
onMouseOut="this.bgColor='#5059AF'"
onClick="window.location='origins.htm'" bgcolor="#5059AF" class="cursor:hand;">
<p align="center">Origins</p>
</td>

should do it

bacterozoid
11-09-2002, 05:08 PM
Yeah, thanks. Ahem, I do feel rather stupid...the cursor wouldnt show up in the CSS part of it because idiot me didn't include the semicolon....I gotta start remembering that. Thanks for the help! If it doesnt work when I stick all this in my external stylesheet I'll try your idea, though I'm sure it will...I hope.

degsy
11-09-2002, 07:29 PM
class="cursor:hand;">


Should be

style="cursor: pointer;">


hand is IE specific

bacterozoid
11-09-2002, 07:32 PM
Thanks for that bit of info..I did have it as pointer...hand at first. I shall keep that in mind next time I need to change my cursor.