I've created a lightbox-style slideshow javascript I was hoping to add to a Wordpress site. My knowledge of PHP, and by extension Wordpress, is pretty limited, so I guess I naively assumed I could just add the script link to the header and it would just insert itself over the site like it would on a plain html page.
I've attempted to link the script using both
<script type="text/javascript" src="pathto/myscript.js"></script>
and the php
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/pathto/mycript.js"></script>
When using the plain html method, instead of creating a floating div on top of the wordpress content, it adds the new div's contents to the body, and using the template_url method doesn't appear to do anything at all.
Here's the wordpress page:
http://www.apennydreadful.com/2.0 (click "chapter one" to trigger the script)
And here's a plain html example that shows the working script:
http://www.apennydreadful.com/2.0/test.html
Any help you can lend to set me down the right path is greatly appreciated.
~gyz