Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-12-2012, 11:39 AM   PM User | #1
MrTIMarshall
Regular Coder

 
Join Date: Nov 2010
Posts: 347
Thanks: 44
Thanked 1 Time in 1 Post
MrTIMarshall is an unknown quantity at this point
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

Quote:
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 08:56 PM..
MrTIMarshall is offline   Reply With Quote
Old 11-12-2012, 01:56 PM   PM User | #2
SB65
Senior Coder

 
Join Date: Feb 2009
Location: West Yorkshire
Posts: 2,812
Thanks: 9
Thanked 681 Times in 675 Posts
SB65 will become famous soon enoughSB65 will become famous soon enough
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();
});​
SB65 is offline   Reply With Quote
Users who have thanked SB65 for this post:
MrTIMarshall (11-12-2012)
Old 11-12-2012, 04:32 PM   PM User | #3
MrTIMarshall
Regular Coder

 
Join Date: Nov 2010
Posts: 347
Thanks: 44
Thanked 1 Time in 1 Post
MrTIMarshall is an unknown quantity at this point
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 04:36 PM..
MrTIMarshall is offline   Reply With Quote
Old 11-12-2012, 05:14 PM   PM User | #4
DanInMa
Senior Coder

 
DanInMa's Avatar
 
Join Date: Nov 2010
Location: Salem,Ma
Posts: 1,306
Thanks: 12
Thanked 204 Times in 204 Posts
DanInMa is on a distinguished road
keep the cat away from the keyboard from now on
__________________
- Firebug is a web developers best friend! - Learn it, Love it, use it!
- Validate your code! - JQ/JS troubleshooting
- Using jQuery with Other Libraries - Jslint for Jquery/other JS library users
DanInMa is offline   Reply With Quote
Old 11-12-2012, 05:55 PM   PM User | #5
MrTIMarshall
Regular Coder

 
Join Date: Nov 2010
Posts: 347
Thanks: 44
Thanked 1 Time in 1 Post
MrTIMarshall is an unknown quantity at this point
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...
MrTIMarshall is offline   Reply With Quote
Old 11-12-2012, 06:12 PM   PM User | #6
DanInMa
Senior Coder

 
DanInMa's Avatar
 
Join Date: Nov 2010
Location: Salem,Ma
Posts: 1,306
Thanks: 12
Thanked 204 Times in 204 Posts
DanInMa is on a distinguished road
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
__________________
- Firebug is a web developers best friend! - Learn it, Love it, use it!
- Validate your code! - JQ/JS troubleshooting
- Using jQuery with Other Libraries - Jslint for Jquery/other JS library users
DanInMa is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:49 PM.


Advertisement
Log in to turn off these ads.