PDA

View Full Version : CSS images



Alidad
01-28-2007, 04:51 AM
Hi, I really need help with text field with css image.

I have a text field that are relate to email address, when person input email address, for sample if person enter email from hotmail such as (username@hotmail.com) then it will change the email domain name to image using css and insert into the text field after user name so it will be look like(username + image) together in text field and the value of text filed will be (username@hotmail.com) so basically to use z-order statment for image in CSS!

how can i write that code in javascript and CSS!

please help thanks.

AM

jscheuer1
01-28-2007, 05:19 AM
The css style property z-index is what I think you mean and, in javascript you can do:


element.style.zIndex=100;

But, as long as the image comes after the the text input in the source code of the page, it will be over the text. You will need to position it over the text input one way or another though, like using relative positioning.