|
Post by Wormopolis on Jan 18, 2011 6:07:48 GMT -8
not necessarily... but it does have to occur AFTER the div has been put on the page. typically top of the global footer is a good place for the code.
|
|
|
Post by whatsuppuddingcup on Jan 19, 2011 19:42:07 GMT -8
oh! i got it! but its rather large...is there anyway to downsize it?
|
|
|
Post by Wormopolis on Jan 19, 2011 22:42:29 GMT -8
well the pictures are customizable. if you want to put in your own pictures, or rehost the default ones at a smaller size that would be the way to go. that way you can set the size to whatever you want.
|
|
kris
Not New Member
Posts: 11
kris said 0 great things
|
Post by kris on Feb 9, 2011 22:35:46 GMT -8
Is there and way to fix the month the time you want it and to have a year? I want to use this on my Harry Potter board but it's set in 1999 and in August.
|
|
|
Post by Wormopolis on Feb 10, 2011 8:12:05 GMT -8
so you want it to always say it is August 1999? Do the pictures still need to be sorta random everyday? does it ever get to september?
You could just put a title right below the area where you have the image appear that SAYS its August 1999 and have the date part not show from the code. would that work?
|
|
|
Post by Wormopolis on Feb 10, 2011 8:18:36 GMT -8
version update v1.5: toggle for date shown and weather title on hover of image
|
|
kris
Not New Member
Posts: 11
kris said 0 great things
|
Post by kris on Feb 10, 2011 8:35:09 GMT -8
so you want it to always say it is August 1999? Do the pictures still need to be sorta random everyday? does it ever get to september? You could just put a title right below the area where you have the image appear that SAYS its August 1999 and have the date part not show from the code. would that work? Well I want it to change dates and still be random but I want it August 1999. The month will change along at the right time like in real life but It's just my site isn't starting out in Feb but in August
|
|
|
Post by Wormopolis on Feb 10, 2011 9:30:57 GMT -8
Ok! I see.. so you want it to CURRENTLY think it is sometime in August. that can actually be done easily, but itwouldjust take a subtraction from the date index. do this:
right below this:
var dt=new Date();
add in this:
var numDaysBack=4200; dt.setDate(dt.getDate()-numDaysBack);
|
|
kris
Not New Member
Posts: 11
kris said 0 great things
|
Post by kris on Feb 10, 2011 14:38:40 GMT -8
Erm... it made it the right month but made the date the 12th.
|
|
|
Post by Wormopolis on Feb 10, 2011 16:09:20 GMT -8
play with the number a bit. I didnt know which exact date you wanted.
|
|
kris
Not New Member
Posts: 11
kris said 0 great things
|
Post by kris on Feb 12, 2011 23:30:58 GMT -8
after I changed the images to what I wanted the code stopped working and right now I have it on a test forum and so I don't have any other codes... did I screw up somewhere?
|
|
|
Post by Wormopolis on Feb 13, 2011 16:07:32 GMT -8
well I couldnt say without seeing your source. which means I need something from you in order to do that.
|
|
|
Post by Wormopolis on Feb 25, 2011 22:31:43 GMT -8
version update 1.6: code now forces weather to change at midnight, and gives an option to adjust an hours offset in case you want weather to change earlier or later in the day.
|
|
dorkster
Not New Member
Posts: 10
dorkster said 0 great things
|
Post by dorkster on Mar 28, 2011 14:24:49 GMT -8
Would it be possible to just remove the date entirely, just out of curiosity? Ignore that.
|
|
|
Post by Wormopolis on Mar 28, 2011 14:58:13 GMT -8
I guess you saw the variable that lets you turn that off?
|
|