Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Animated background?

  1. #1
    Join Date
    Jan 2008
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Animated background?

    Is it possible to set an animated gif as the background of an INPUT field? I'm a web app designer and want to indicate that a field is being validated by putting a subtle progress bar in the background of the input field. I tried this using the "background" property of the INPUT's css. The animation shows up fine locally, but when I try accessing the file via http, the animated image disappears.

    Searching the web for this turns up a lot of "MySpace animated backgrounds!!!" results -- not quite useful. If anyone can confirm that this is a browser restriction/bug, or describe a workaround (IE & FF are the supported browsers), I'd appreciate it!

    -Sarah

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    If you want to test it out, view http://thetestingsite.net/test/animatedInput.html

    It appears to be working fine in IE7 and FF.

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. The Following User Says Thank You to thetestingsite For This Useful Post:

    sarahfsk (05-30-2008)

  4. #3
    Join Date
    Jan 2008
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thank you!! I think there may have been something wrong with the first image I tried this with, because it's working like a champ now. I appreciate the super-quick response!

    -Sarah

  5. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Haha. That looks really cool. (yes, I know, random reply)
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  6. #5
    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

    Safari may not allow this. However, I have had luck with Safari allowing background color in a text input IF borders for the text input were specified.
    - John
    ________________________

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

  7. #6
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Safari (2.0/mac) doesn't work with that. But since it's just a bonus addon, that's probably not a huge problem. (Bonus if it works, only.)
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  8. #7
    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

    I was referring to Safari 3 Win, which should be like Safari 3 Mac. I don't know if specifying the border will work with background image though or not. I just stumbled upon it recently as a way to get Safari 3 Win to use background color for text inputs, which it will not do for an otherwise plain text input.
    - John
    ________________________

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

  9. #8
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Out of 64 browsers selected from browsershots.org, only 5 of them did not work.

    Safari 3.0 (Win 2003 server)
    Dillo 0.8.6 (PLD Titanium)
    Safari 1.3.2 (Mac OS X 10.3)
    Safari 2.0.4 (Mac OS X 10.4)
    Konqueror 3.5 (Ubuntu 7.10)
    Last edited by thetestingsite; 06-01-2008 at 08:35 PM.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  10. #9
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Safari is odd. It's a good browser, but it's like apple doesn't try that hard-- there are a few things that just don't match up.
    Anyway, John, I was just confirming what you said, not saying that version 3 worked or anything.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  11. #10
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Quote Originally Posted by djr33 View Post
    Safari is odd. It's a good browser, but it's like apple doesn't try that hard-- there are a few things that just don't match up.
    Every browser has it's quirks...IE (of course), Fx, Safari, Opera, the whole lot. But overall Webkit (the browser engine behind Safari) is the only group doing any creative innovation as far as browsers are concerned. For the few things that don't match up, I think it makes up for it with things like the editing toolbar (only works in Fx & Safari).

    Sorry for the off topic

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
  •