kila
Not New Member
Posts: 16
kila said 0 great things
|
Post by kila on May 16, 2012 10:52:14 GMT -8
is it possible to pick the starting month to cycle randomly instead of going by real time?
|
|
|
Post by Wormopolis on May 16, 2012 22:14:11 GMT -8
you are talking about it showing February weather in May I gather?
|
|
kila
Not New Member
Posts: 16
kila said 0 great things
|
Post by kila on May 18, 2012 7:59:31 GMT -8
Yep, that`s exactly what I mean.
|
|
|
Post by Wormopolis on May 18, 2012 18:25:03 GMT -8
find this line:
sel=et.getMonth();
change to
sel=(et.getMonth()+6)%12;
the number in red is how many months you want to offset. use positive numbers, it will wrap around the year.
|
|
kila
Not New Member
Posts: 16
kila said 0 great things
|
Post by kila on May 20, 2012 20:20:44 GMT -8
I put it in on the test page and it disappeared. Test page. Where I had it, it did work but it went poof and it took out the moon cycles I had under it.
|
|
|
Post by Wormopolis on May 20, 2012 22:32:01 GMT -8
you cant put the script inside the same div you want the results to appear.
before the opening script tag, put a closing </div> tag
|
|
kila
Not New Member
Posts: 16
kila said 0 great things
|
Post by kila on May 21, 2012 7:50:12 GMT -8
Could the size of the images effect the code?
|
|
|
Post by Wormopolis on May 21, 2012 18:07:07 GMT -8
wont affect the code, but if the images are large they will appear as is on the box.
|
|
|
Post by Wormopolis on May 21, 2012 18:10:56 GMT -8
you are missing the closing </script> tag to this code:
/* Add Award Images To Member's Posts And Profile
|
|
kila
Not New Member
Posts: 16
kila said 0 great things
|
Post by kila on May 21, 2012 20:25:27 GMT -8
I didn't actually think it did since it doesn't with other codes but I know the images were smaller and they were there when I used the larger but gone when I put in the smaller, lol, and wow on my blonde moment where I took out that closing tag. and yay, it's working now. Thanks so much for the help. your codes are awesome.
|
|
|
Post by Wormopolis on May 21, 2012 22:19:11 GMT -8
you are welcome! be well soon
|
|
kagallie
Not New Member
Posts: 3
kagallie said 0 great things
|
Post by kagallie on Dec 28, 2012 18:06:35 GMT -8
Is there a way to make it change on a weekly basis, opposed to daily? Here I kinda poked at it but my knowledge of script wasn't strong enough. :x
|
|
|
Post by Wormopolis on Dec 28, 2012 18:11:32 GMT -8
havent tested it, but try this
var dayseed=Math.floor(dt.getTime()/(1000*60*60*24*7));
add the red
|
|
kagallie
Not New Member
Posts: 3
kagallie said 0 great things
|
Post by kagallie on Dec 28, 2012 18:17:48 GMT -8
havent tested it, but try this var dayseed=Math.floor(dt.getTime()/(1000*60*60*24 *7)); add the red We will give it a try! I'll get back to you about it. THank you~
|
|
|
Post by Wormopolis on Dec 29, 2012 16:57:39 GMT -8
this code is on my list to become a plugin
|
|