Problems adding Javascript!
-
Hi!
I have problem!
I made a spry tabbed panels with dreamweaver cs4 and tried to embed it into wordpress theme, but no luck!
Here is what I tried! I put the SpryTabbedPanels.css and SpryTabbedPanels.js in my themes root folder and I inserted in my header.php above </head> :
<script type=”text/javascript” src=”<?php bloginfo(‘template_directory’); ?>/SpryTabbedPanels.js”></script> <link rel=”stylesheet” type=”text/css” href=”<?php bloginfo(‘template_directory’); ?>/SpryTabbedPanels.css” media=”screen” />
in this case the css works fine, but the js doesn’t!
I also tried:
<script type=”text/javascript” src=”/SpryTabbedPanels.js”></script>
and
<script type=”text/javascript” src=”<?php bloginfo(‘template_url’); ?>/SpryTabbedPanels.js”></script>
but none of them works!
If someone can help – please tell me what am I doing wrong!
Thank you!
- The topic ‘Problems adding Javascript!’ is closed to new replies.