Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    Nov 2010
    Posts
    432
    Thanks
    56
    Thanked 1 Time in 1 Post

    Not to load from start but from the correct point via GMT timezone.

    Note: Please ignore the replies so far, I had an underlying problem as well as my question. My question hasn't been answered so far.

    For my website, I would like to have a day theme, meaning things show differently throughout the whole day. Currently I only have the sky working, of which you can see all the code required for this to work here or live on a version I've uploaded here.

    First of all, if your looking at all of the code at once with the example on JSFIDDLE, that is on real time, whereas on the website it's been made faster for testing purposes. I do not know how to word this, but I would like to show the correct sky colour for the time of day it is instead of it loading from the darkest colour and looping through to then progress to doing the same for the images, darkening them and then bringing them back in to their normal view.

    I would like this to work not on the users time, but to the GMT time please.

    Thank you for any help and/or advice in advanced.

    Best Regards,
    Tim

    Update:
    I'm currently having difficulties implementing this to my website, you can view this here

    - Resolved by SB65, thank you!
    Last edited by MrTIMarshall; 11-12-2012 at 09:56 PM.

  • #2
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,957
    Thanks
    9
    Thanked 727 Times in 721 Posts
    Firebug's console throws an illegal character error here:

    Code:
    $(document).ready(function() {
    var midday = false;
        function ani_col() {
            if ( !midday ) {
                $( "#Sky" ).animate({
                    backgroundColor: "#00FFFF",
                }, 4320, function () { 
                    midday = !midday;
                    ani_col();
                });
            } else {
                $( "#Sky" ).animate({
                    backgroundColor: "#191970",
                }, 4320, function () { 
                    midday = !midday;
                    ani_col();
                });
            }
        }
        ani_col();
    });​

  • Users who have thanked SB65 for this post:

    MrTIMarshall (11-12-2012)

  • #3
    Regular Coder
    Join Date
    Nov 2010
    Posts
    432
    Thanks
    56
    Thanked 1 Time in 1 Post
    Okay, now I am even more confused to as how to fix this and what is the cause.

    On my local version, the version I updated to the server does now have ​ on it, however upon viewing the source it does so I'll see if a reupload will work...

    Update:

    I tried deleting the server version to replace wit my local version, however it has resulted in the same whereas ​ is in the code but only on the server...

    Edit:
    Okay, so I clicked backspace where that was showing and it deleted something which wasn't showing, I uploaded and now it works
    Last edited by MrTIMarshall; 11-12-2012 at 05:36 PM.

  • #4
    Senior Coder DanInMa's Avatar
    Join Date
    Nov 2010
    Location
    Salem,Ma
    Posts
    1,577
    Thanks
    13
    Thanked 248 Times in 248 Posts
    keep the cat away from the keyboard from now on

  • #5
    Regular Coder
    Join Date
    Nov 2010
    Posts
    432
    Thanks
    56
    Thanked 1 Time in 1 Post
    Quote Originally Posted by DanInMa View Post
    keep the cat away from the keyboard from now on
    This was just an overlying problem which I noticed, I am clueless to how this happened but it did...

  • #6
    Senior Coder DanInMa's Avatar
    Join Date
    Nov 2010
    Location
    Salem,Ma
    Posts
    1,577
    Thanks
    13
    Thanked 248 Times in 248 Posts
    corrupted file, file saved in mutiple formats when using different editors, copy and pasting code from websites, and once in a grey moon a pet taps the right keys to insert a special character that can make your day hell , hence the cat joke


  •  

    Posting Permissions

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