Jquery scripts not working
Posted: Sat Mar 06, 2010 3:50 am
Hi
I having been having trouble implementing 2 Jquery scripts in cmsms.
The scripts work fine out cmsms and after reading several cmsms forumn boards about {literal} tags and testing these, I am still unable to get the code to work. Just wanna know if I have implemented the code correctly?
01 - Jquery Slider
My header code looks like the jquery slider looks like this;
{sitename} - {title}
{metadata}
{stylesheet}
{literal}
$(document).ready(function(){
$("#slider").easySlider({
auto: true,
continuous: true
});
});
{/literal}
{literal}
$(document).ready(function() {
$('#image_rotate').innerfade({
speed: 'slow',
timeout: 4000,
type: 'sequence',
containerheight: '317px'
});
});
{/literal}
and the body code looks like this;
I also have this hover script which also doesn't seem to work, even though it works fine out side cmsms.
02 - Jquery Hover Script
My header code looks like the jquery slider looks like this;
{sitename} - {title}
{metadata}
{stylesheet}
{literal}
$(document).ready(function() {
$("#workwithus a").hover(function() {
$("#workwithus a strong").animate({backgroundColor:'#1e979c'},800);
}, function () {
$("#workwithus a strong").animate({backgroundColor:'#252525'},800);
});
$("#projects figure a").hover(function() {
$(this).stop().animate({backgroundColor:'#efefef'},400);
}, function () {
$(this).stop().animate({backgroundColor:'#f8f7f7'},400);
});
$("#posts article:last").addClass("last");
$('#projets #portfolio-list').filterable({
animationSpeed: 100,
/*
show: { width: 'show', opacity: 'show' },
hide: { width: 'hide', opacity: 'hide' }
*/
async: true,
show: { opacity: 'show' },
hide: { opacity: 'hide' }
});
$("#slider").easySlider({
auto: false,
continuous: false
});
$(".chapeau a").click(function(){
$("#panel-container").slideToggle("slow");
return false;
});
$(".close").click(function(){
$("#panel-container").slideToggle("slow");
return false;
});
});
{/literal}
I having been having trouble implementing 2 Jquery scripts in cmsms.
The scripts work fine out cmsms and after reading several cmsms forumn boards about {literal} tags and testing these, I am still unable to get the code to work. Just wanna know if I have implemented the code correctly?
01 - Jquery Slider
My header code looks like the jquery slider looks like this;
{sitename} - {title}
{metadata}
{stylesheet}
{literal}
$(document).ready(function(){
$("#slider").easySlider({
auto: true,
continuous: true
});
});
{/literal}
{literal}
$(document).ready(function() {
$('#image_rotate').innerfade({
speed: 'slow',
timeout: 4000,
type: 'sequence',
containerheight: '317px'
});
});
{/literal}
and the body code looks like this;
I also have this hover script which also doesn't seem to work, even though it works fine out side cmsms.
02 - Jquery Hover Script
My header code looks like the jquery slider looks like this;
{sitename} - {title}
{metadata}
{stylesheet}
{literal}
$(document).ready(function() {
$("#workwithus a").hover(function() {
$("#workwithus a strong").animate({backgroundColor:'#1e979c'},800);
}, function () {
$("#workwithus a strong").animate({backgroundColor:'#252525'},800);
});
$("#projects figure a").hover(function() {
$(this).stop().animate({backgroundColor:'#efefef'},400);
}, function () {
$(this).stop().animate({backgroundColor:'#f8f7f7'},400);
});
$("#posts article:last").addClass("last");
$('#projets #portfolio-list').filterable({
animationSpeed: 100,
/*
show: { width: 'show', opacity: 'show' },
hide: { width: 'hide', opacity: 'hide' }
*/
async: true,
show: { opacity: 'show' },
hide: { opacity: 'hide' }
});
$("#slider").easySlider({
auto: false,
continuous: false
});
$(".chapeau a").click(function(){
$("#panel-container").slideToggle("slow");
return false;
});
$(".close").click(function(){
$("#panel-container").slideToggle("slow");
return false;
});
});
{/literal}