Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

making a cell a link in NS(or 100% imagescaling in NS table)

Status
Not open for further replies.

joshon

Programmer
Oct 17, 2001
2
US
Problem:

I want to make a whole table cell a link. It has a background image in it. It will be sized dynamically according to text content in an adjacent cell (so I don't know the height of the cell)

Solution (IE only);

scale a transparent gif at 100% inside the cell. Make that gif have the link proerties. (the link triggers an onmouseover command)

In NS the image doesn't scale to 100% of the height of the cell. It scales to about 5% of the height! arrggg

any help or suggestions more than welcome.

thanks!
 
just put an onClick inside of the <img> tag -Greg :-Q

flaga.gif
 
Thanks mackey, unfortunately that wasn't the problem, at least I don't think so!

you can see my latest efforts at:

In what hopefully will be the right hand nav. There are four tablecells, onrollover I want these to trigger a js function. In IE it is easy. In NS I can't work it out. My latest attempt was suggested by a friend: use ilayer for NS it fills the space, but I didn't get the onmouseover to work:

<td background=&quot;images/pattern_3.gif&quot; width = &quot;13&quot;><ILAYER ID=&quot;testlayer&quot; OnMouseOver=&quot;alert('cat');&quot; WIDTH=&quot;100%&quot; HEIGHT=&quot;100%&quot; BGCOLOR=&quot;#4444CC&quot; background=&quot;images/ltgrn4x4.gif&quot;></ILAYER><img src=&quot;images/spacer.gif&quot; width=&quot;13&quot; height=&quot;100%&quot; alt=&quot;&quot; border=&quot;0&quot; ><br></td>


any ideas?

thanks a lot,

josh@futurefarmers.com
 
I believe (not sure) that i have heard onMouseIn somewhere, and i think it was about ns, give that a try -Greg :-Q

flaga.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top