SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Threaded View

  1. #1
    SitePoint Member
    Join Date
    Jul 2001
    Location
    Middle United States
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Tech Times #26 - Friendly Password Field Code Bug

    Is anybody else having problems getting that code snippet to work?

    <input type="text" value="Username" name="username"
    onFocus="this.value='';" />
    <input type="password" name="password"
    style="background-image:url('password.gif');"
    onFocus="this.style.background=#ffffff;" />

    When the user clicks on the password form field, the background image is suppossed to be replaced with a white background color. All I get is a javascript error, and I copied straight out of the newsletter.
    Last edited by Scholar Warrior; Nov 7, 2001 at 20:41.
    My Goal: To Perceive Reality As It Is, Not As I Want It To Be
    1 Moment Designs - Web Development and Design
    Internet solutions for the present moment


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
  •