Page 1 of 1

[SOLVED] Javascript call in page not working?

Posted: Sun Aug 30, 2009 5:42 pm
by slicencode
Hi all,

I've had a lot of success with cms made simple in the past and really enjoy the tool.

I am having issues with a javascript call that I'm making on a single page (gallery):

http://pointgrace.server292.com/gallery/

I have other javascript events going on, but this one seems to be kicking the bucket. Script is the following:

http://www.leigeber.com/2008/12/javascript-slideshow/

The code renders correctly:

Image One

pgimages/gallery/large/1.jpg
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam ut urna. Mauris nulla. Donec nec mauris. Proin nulla dolor, bibendum et, dapibus in, euismod ut, felis.



Image Two
pgimages/gallery/large/2.jpg
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam ut urna. Mauris nulla. Donec nec mauris. Proin nulla dolor, bibendum et, dapibus in, euismod ut, felis.





























$('slideshow').style.display='none';
$('wrapper').style.display='block';
var slideshow=new TINY.slideshow("slideshow");
window.onload=function(){
slideshow.auto=true;
slideshow.speed=5;
slideshow.link="linkhover";
slideshow.info="information";
slideshow.thumbs="slider";
slideshow.left="slideleft";
slideshow.right="slideright";
slideshow.scrollSpeed=4;
slideshow.spacing=5;
slideshow.active="#fff";
slideshow.init("slideshow","image","imgprev","imgnext","imglink");
}
I already had a wrapper CSS, so I just changed this one to have an extra p, not a typo. Does anyone know what's going on? The answer is bugging me, so $10 via paypal to anyone who can solve it...

Cheers

Re: Javascript call in page not working?

Posted: Sun Aug 30, 2009 5:46 pm
by baresi
Not wrapped in literal?

Re: Javascript call in page not working?

Posted: Sun Aug 30, 2009 5:47 pm
by slicencode
baresi wrote: Not wrapped in literal?
Valid question, it's wrapped in literal.

Re: Javascript call in page not working?

Posted: Sun Aug 30, 2009 6:19 pm
by baresi
Might have to play around with css styles

#slideshow span {display:none}
#wrappper {width:506px; margin:50px auto; display:none}

looking out for "display: none"

Re: Javascript call in page not working?

Posted: Sun Aug 30, 2009 6:22 pm
by slicencode
baresi wrote: Might have to play around with css styles

#slideshow span {display:none}
#wrappper {width:506px; margin:50px auto; display:none}

looking out for "display: none"
Thanks for the help, what do you think I should change it too?

Re: Javascript call in page not working?

Posted: Sun Aug 30, 2009 6:30 pm
by baresi
Try this instead of those two lines in the slideshow css

#slideshow span {display:none}
#wrappper {width:506px; margin:50px auto;}

Re: Javascript call in page not working?

Posted: Sun Aug 30, 2009 6:34 pm
by slicencode
baresi wrote: Try this instead of those two lines in the slideshow css

#slideshow span {display:none}
#wrappper {width:506px; margin:50px auto;}
Fixed, you want your cash? :)

Re: Javascript call in page not working?

Posted: Sun Aug 30, 2009 6:39 pm
by baresi
It's cool, free service ;D

Glad it's working, make sure it is and then put solved in the thread title :)

Re: Javascript call in page not working?

Posted: Sun Aug 30, 2009 6:48 pm
by slicencode
In that case, thank you sir :)