starting up multiple jquery plugins.
Hello, this is my first post. i am a newbie at the world of jquery and i have this problem on a web page.
i want to start up two jquery plugins just on header wrapped with a script tag.
the plugins i am using is countdown and anythingslider.
the header script i use is, but for some reason it doesnt work on countdown
another question is the order of the inclusion of scripts affects the script itself???
example:
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script><script type="scripts/javascript" src="scripts/jquery.countdown.js"></script>
<script type="scripts/javascript" src="scripts/jquery.countdown-es.js"></script>
<script src="scripts/jquery.anythingslider.min.js" type="text/javascript"></script>
or i should set different??
and the code on header is:
- $(function () {
$('#defaultCountdown').countdown({
until: new Date(2013,03-1,12,12,12,0),
layout:'{desc}{dn} {dl} : {hn} {hl} : {mn} {ml} : {sn} {sl}',
description:'<span>FALTAN </span>'});
$('#slider').anythingSlider({
startText: "Ver",
stopText: "Pausa",
theme:'metallic',
mode:'f',
resizeContents:true});
});
as i a just starting i suppose that its not needed to put two different $function
- $(function () {
});
for each plugin... well i dont know if its right or what is happening but the countdown timer doesnt show up.
AnythingSlider v1.8+
By Chris Coyier: http://css-tricks.com
http://keith-wood.name/countdown.html
Countdown for jQuery v1.6.1.
Thanks in advance for your help.
Salutations.