2011-05-22, 17:24:22
Well, now this is in the header.php
and this is the code at the sidebar component
However, still, all the text show up like plain text. What is wrong with these scripts? I also made sure the JS files are in the correct place (I mean as long as the get_theme_url points to the current theme)
Code:
$(document).ready(function(){
$('#scroller').vTicker({
speed: 500,
pause: 6000,
animation: 'fade',
mousePause: true,
showItems: 1,
direction: down
});
});
and this is the code at the sidebar component
Code:
<h2>News and Events</h2>
<script type="text/javascript" src="<?php get_theme_url(); ?>/assets/js/jquery.vticker-min.js"></script>
<script type="text/javascript" src="<?php get_theme_url(); ?>/assets/js/jquery-1.6.1.min.js"></script>
<div id="scroller">
<ul>
<li>Some Sample Text</li>
<li>Some Sample Text</li>
<li>Some Sample Text</li>
</ul>
</div>
However, still, all the text show up like plain text. What is wrong with these scripts? I also made sure the JS files are in the correct place (I mean as long as the get_theme_url points to the current theme)