Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 01-13-2008 07:28:04

grcauto
Member
From: Bloomsburg, PA
Registered: 09-11-2006
Posts: 128
Website

Java Scripts???

Hello,
I'm using a JS to do a fade in slide show. I have the script in the JS folder and am having a problem calling it to the table cell where I want the slide show to display.
Does anyone know how to do this?
Thanks.

Offline

 

#2 01-13-2008 07:42:17

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: Java Scripts???

Do you  have an example of what you've tried?  It's pretty hard to guess what you need without seeing something in context?

Offline

 

#3 01-13-2008 12:46:02

grcauto
Member
From: Bloomsburg, PA
Registered: 09-11-2006
Posts: 128
Website

Re: Java Scripts???

The script is to be used on the home page (splash).
Here's the content for the splash page. The script is in the center cell of the top row.
http://www.pjclarkdesigns.com/splash.htm
If I upload it as is the program will not write any of the content. It's blank.
I put the script into the JS folder with the other scripts the program uses, but I don;t know how to call it.
Know what I mean??

Offline

 

#4 01-13-2008 13:09:01

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: Java Scripts???

Ah, take a look at the source for my  landing page and you'll see that I used the same JS there.  The JS itself is at the very beginning of the splash page and the only thing that's down in the "meat" of the page is the actual call to get the JS going.  It's a simple call that looks like this:

Code:

<script type="text/javascript">new fadeshow(fadeimages,295,295,3000)</script>

You don't put the entire chunk of JS in the cell just the call to get it started.

Offline

 

#5 01-13-2008 13:29:23

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: Java Scripts???

By the way, the easiest way I've found to try and integrate something like that is to display the page you're going to fit it into then look at the source.  Save a copy of the source and work on that to get the new stuff integrated.  Once you have it working correctly it's usually very simple to add the new goodie into the correct place of the "real" page.

Offline

 

#6 01-13-2008 19:40:21

grcauto
Member
From: Bloomsburg, PA
Registered: 09-11-2006
Posts: 128
Website

Re: Java Scripts???

I got it figured out. My problem was using full url paths rather than relative paths to the images. Also, the writers of the script said to put the script into the head section and call the script with a line like you have. After looking at your page I realize you had a folder named 'Landing' that had your image files. From there I was able to get it running easily.
Thanks for the time.
Greg

Offline

 

#7 01-14-2008 03:30:32

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: Java Scripts???

The location of the images doesn't matter and though most of the JS like that recommends putting it in the head you (usually) don't have to.  In the case of CCP you really don't want it in the head since you only need it on one page.

Offline

 

Board footer