Results 1 to 2 of 2

Thread: CSS images

  1. #1
    Join Date
    Jan 2007
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default CSS images

    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

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    The css style property z-index is what I think you mean and, in javascript you can do:

    Code:
    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •