Forum Moderators: phranque

Message Too Old, No Replies

Can DHTML do this?

complex mouseovers

         

Quarfelburg

10:36 pm on Feb 13, 2003 (gmt 0)

10+ Year Member



Is it possible to make a mouseover in DHTML or any other langauge that does the following:

Adds a blue layer above the image with an opacity of 60% making the image somewhat transparent and then writes text over the image.

If this is possible any sample code / tutorials would be greatly appreciated =)

BlobFisk

11:22 am on Feb 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member




Adds a blue layer above the image with an opacity of 60% making the image somewhat transparent and then writes text over the image.

You can do this using CSS2 and some JavaScript... although, would it just not be better to swap the original image with the new semi-opaque with text image?

Also, it's important to remember that DHTML is not a language. It is merely CSS objects being manipulated by JavaScript using the Document Object Model.

Quarfelburg

3:33 pm on Feb 14, 2003 (gmt 0)

10+ Year Member



It would be much easier, but bad for load time. How will the load time be if this were done in CSS + JS?