Javascript image reload question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dreamcatcher
    New Member
    • Nov 2006
    • 16

    Javascript image reload question

    Hi there,

    I'm looking for a javascript function to change a random image, something similar to webtrade.ie's home page or http://old.pwrs.ca/ . I understand the javascript image reloader works with an image as opposed to an image placed as a background in a css file. The project I'm working on has the home page image placed in a css file as a background image. Does anyone know if it's possible to use a similar script as used in the examples above to replace a css based image? The image (house & 2 men) that I'm hoping to replace is on this page: https://www.zofocreative.com/grounds...index2test.htm If anyone could point me in the right direction to learn how to do this, I'd appreciate it greatly. Regards, S
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Use the backgroundImage property.

    Comment

    • dreamcatcher
      New Member
      • Nov 2006
      • 16

      #3
      Originally posted by acoder
      Use the backgroundImage property.
      Cheers for your reply, I'll investigate.

      Comment

      Working...