The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

on my forums I want to cut off users signatures at a certain height, using overflow:hidden, but I need a way so that it sets all sig heights to 100px only if they are over 100px. I have a function that will do it, for example if I set onMouseOver="myfunction(this)" when I move the mouse over the sig it cuts it down to 100px if needed, else it leaves it alone, I need a way to do that automaticly, instead of having it be on mouseover. does that help?

Why don't you use normal CSS to do this? Just set everyone's sig to 100px. I don't see why you would need to introduce JS into this in order for it to be done.

In the mean time, I'm going to think of how to write this script... I just wanted to let you know though that there is an easier alternative which is more compatible with browsers too (although the white space for each sig may get a bit annoying).

thanks a bunch! The reason I'm using js and not just CSS is because I want the div to shrink to the height of the sig, so if I just set it to 100px even if it was just one line of text it would still take up 100px of vertical space.