If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2

Thread: Help!!!

  1. #1
    Junior Member
    Join Date
    Mar 2011
    Member #
    Hi everyone, I was wondering if I can get helped here: I want to change a picture each 12 hours, I want a picture for the day light and another for the night so I was looking some javascript, html, css code but I'm not an expert, please I appreciate any help!


  3. #2
    Senior Member Ferro's Avatar
    Join Date
    Oct 2006
    Member #
    5 times
    Look at something like this

    Keep your javascript pictures in an array. Do some division maths with the current time/date to decide which image out of the array to show.Or whatever maths you choose to apply to it.
    A bit rough and ready but hopefully will point you in the right direction.
    Ah hang on if you only want two pictures one for night one for day, then just do an "If it's a time returned within daylight hours show this picture, if not then show the other picture". That kind of thing.

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT -6. The time now is 07:47 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: