Tuesday, May 25, 2010

jquery

So, if you looked at my last post, you may notice I'm starting to wander through the forests of jquery. And I love it. I'm working with a good friend on making websites, and the tricky coding falls to me because I've been doing this forever. I love when things are beautiful and simple. jquery is one of those things. For those who don't know, it's a javascript library... so you don't have to write the code yourself, just link and go. I'm a jquery neophyte, but I've already resolved a conflict between jquery and scriptaculous on the same page. (Both javascript libraries.) Check them out for joy! The fade-in is jquery and the effect when you click on one of the pictures is pure scriptaculous.

Thursday, May 6, 2010

I don't like blogging, but I really kinda like technology.

In case I forget:
Here's the most awesome way to make an HTML page fade in
In the head put:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>

In the body, just before the tag, put:

<script type="text/javascript">
$('body').hide();
$('body').fadeIn(1000);
</script>

Woo hoo!!! No more stinky Meta tag problems!