[SOLVED] Javascript call in page not working?

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
slicencode
Forum Members
Forum Members
Posts: 17
Joined: Sat Jul 25, 2009 7:27 am

[SOLVED] Javascript call in page not working?

Post 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
Last edited by slicencode on Sun Aug 30, 2009 6:48 pm, edited 1 time in total.
baresi
Forum Members
Forum Members
Posts: 129
Joined: Fri Jul 27, 2007 4:15 pm

Re: Javascript call in page not working?

Post by baresi »

Not wrapped in literal?
slicencode
Forum Members
Forum Members
Posts: 17
Joined: Sat Jul 25, 2009 7:27 am

Re: Javascript call in page not working?

Post by slicencode »

baresi wrote: Not wrapped in literal?
Valid question, it's wrapped in literal.
baresi
Forum Members
Forum Members
Posts: 129
Joined: Fri Jul 27, 2007 4:15 pm

Re: Javascript call in page not working?

Post 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"
slicencode
Forum Members
Forum Members
Posts: 17
Joined: Sat Jul 25, 2009 7:27 am

Re: Javascript call in page not working?

Post 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?
baresi
Forum Members
Forum Members
Posts: 129
Joined: Fri Jul 27, 2007 4:15 pm

Re: Javascript call in page not working?

Post by baresi »

Try this instead of those two lines in the slideshow css

#slideshow span {display:none}
#wrappper {width:506px; margin:50px auto;}
slicencode
Forum Members
Forum Members
Posts: 17
Joined: Sat Jul 25, 2009 7:27 am

Re: Javascript call in page not working?

Post 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? :)
baresi
Forum Members
Forum Members
Posts: 129
Joined: Fri Jul 27, 2007 4:15 pm

Re: Javascript call in page not working?

Post by baresi »

It's cool, free service ;D

Glad it's working, make sure it is and then put solved in the thread title :)
slicencode
Forum Members
Forum Members
Posts: 17
Joined: Sat Jul 25, 2009 7:27 am

Re: Javascript call in page not working?

Post by slicencode »

In that case, thank you sir :)
Locked

Return to “[locked] Installation, Setup and Upgrade”