« first day (66 days earlier)      last day (4892 days later) » 

11:09 PM
there you go, lots of answers :)
 
For anyone interested in node.js I recommend watching it :)
 
Is there a neat way to get the current time in jQuery/js in this format: hh:mm
 
Tek
var currentTime = new Date()
var hours = currentTime.getHours()
var minutes = currentTime.getMinutes()

if (minutes < 10)
minutes = "0" + minutes

document.write("<b>" + hours + ":" + minutes + " " + "</b>")
 
Ah neat, thanks!
 
Tek
no prob
 
Thanks.
 
@raRaRa warning (new Date()).getDay() get's the day of the week, not month :)
@tek psh using document.write
 
Okay.
 
Tek
@Raynos it's just a quick example, I'm pretty sure he's not going to use document.write
anyway, I could sure use some help with something. I'm trying to get an image border to do a "highlight" effect
 
@Tek css border-colour ? :P
<div style='border-colour: red;'><img src /></div>
 
Tek
11:32 PM
Yes, but I need it to be dynamic
fade in and out
 
can't you animate any css property with .animate() or something?
 
Tek
I tried $('#imgid' ).animate({ borderLeftColor: "#eee", borderTopColor: "#eee", borderRightColor: "#eee", borderBottomColor:"#eee" }, 800);

and

I tried $('#imgid' ).animate({ borderColor: "#eee" }, 800);
but nothing D:
 
@Tek just do it manually. for loop over the colours
 
Tek
That's the thing, I need it to fade, that would be a lot of colors
the other thing I thought was if maybe there was an opacity for border colors
 
you could calculate rgb values
 
Tek
11:36 PM
can't find anything on that though
 
>_< do it manually in the clever way :p
dont hard code the list of colors to loop over.
just iterate over the rgb values, theres no more efficient way to do it
 
Tek
That you know of anyway, right? :p
 
@Tek that would be how a library or a fancy-rendering browser would do it, wouldn't it?
 
cmon, for a fading effect you need to see the different colours. how else do you set these colours?
go read the $.fn.animate source to confirm for yourself
@IvoWetzel JSLint hurts your feelings. because you write shit code <3
 

« first day (66 days earlier)      last day (4892 days later) »