Hi everyone,
i tried adding the follwing Javascript to a Code Block:
<script type=”text/javascript”><!–
jQuery(function($) {
$(‘.timer’).countTo({
from: 0,
to: 2487,
speed: 3500,
refreshInterval: 50,
onComplete: function(value) {
console.debug(this);
}
});
});
//–></script>
Über <span style=”color: #8bba34;”><span class=”timer”></span> kreative Geister in unserer Community
But i can’t get it done. The JavaScript doesn’t seem to be executed properly. Does anyone of you know how to fix that?
Thanks in advance.
Hi haddahardy!
Try this out instead.
<script type=”text/javascript”><!–
jQuery(document).ready(function() {
jQuery('.timer').countTo({
from: 0,
to: 2487,
speed: 3500,
refreshInterval: 50,
onComplete: function(value) {
console.debug(this);
}
});
});
//–></script>
If it’s not working then send us a link to the page and we’ll take a quick look.
Regards,
Elliott