When the user moves their cursor over different regions of an image on my page I am updating the content of a table which gives more detail to them. This table content is generated server side.
At the moment, I am storing the 50 or so different tables within their own divs which are hidden until the respective mouseover event.
Is this the best way of achieving this? Is it better to use javascript to just replace the table content of a single div?
Thanks, A.
Well, if it’s 50 identical tables (structure-wise) with unique content, I’d probably settle for a custom object or something like that, instead of hiding 50 tables (50 tables = overhead in comparison versus 1 table).
Try the following (somewhat pseudo) using jQuery:
Did this make sense? AS I don’t know what your table looks like or anything, I can’t quite tell you exactly how to do it. I can however provide you with a pseudo-like code (like the one above), so I hope it helps you out!