Click to See Complete Forum and Search --> : Is it OK to use <div> to change text and images?


jammer20002
09-17-2003, 08:05 PM
I've found out that I can use <div id = "variable"><div> to change text and pcitures on mouseovers.

All I have to do is change "variable" to be the HTML text I want.

I can even change the text to have images.

Is this method recommended?

Should I be doing it another way?

Any help would be appreciated.

THANKS.


Jam

Khalid Ali
09-17-2003, 09:23 PM
Not sure if I understood completely.However a div element with an ID attribute is the perfect to change html elements / contents at run time.

jammer20002
09-18-2003, 04:08 AM
Thanks for the reply.

Why would anyone do an image swap using the conventional methods if they can just use the <div> method?

Assuming the images are preloaded... I can't see why any other method should be used?

Let me know if you know. :)
Thanks.

Khalid Ali
09-18-2003, 07:50 AM
What can I say....I guess people only copy paste...thats why may be????