If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Drop In Slide Show

//Define Image Array. Syntax: ["image_path" (is this where my images are located????), "url_destination" (what does this mean? would I put my url of the page that i want the script to appear on, i.e. www.stacygrant.com/index?), "url_target" I have no idea what this means, could you give me an example?]
var myimages=new Array()
myimages[0]=["photo1.jpg", "", ""] what goes inside of these blank quotes?
myimages[1]=["photo2.jpg", "http://www.dynamicdrive.com", ""] what goes inside of this blank quote
myimages[2]=["photo3.jpg", "http://www.javascriptkit.com", "_new"] does anything go before the underscore and new?

"url_destination" (what does this mean? would I put my url of the page that i want the script to appear on, i.e. www.stacygrant.com/index?),

YES the page you want it to appear on

"url_target" I have no idea what this means,

this is asking if you are using an iframe... the target="__FRAME_(url_target)_ID__" is where that would be placed

myimages[0]=["photo1.jpg", "", ""] what goes inside of these blank quotes?
myimages[1]=["photo2.jpg", "http://www.dynamicdrive.com", ""] what goes inside of this blank quote
myimages[2]=["photo3.jpg", "http://www.javascriptkit.com", "_new"] does anything go before the underscore and new?

those are the 3 ways of calling the function... the last one is complete, and no _new refers to a brand new page

those are 4 that are given by the method, however if you create a frame / inline frame you can give it a name (<iframe name="__">) then by which you can use anything you wish as the target... By default if you specify a name of a target and it is not one of the global 4 or one specified inside the page, the default is _top.

That is the URL of a page that you would like to load as a link for that image - like, if you click on the image.

If all you want is the basic slide show, just leave the second two array items blank:

Code:

myimages[0]=["photo1.jpg", "", ""]

If you want the image linked, provide the url_destination:

Code:

myimages[1]=["photo2.jpg", "http://www.dynamicdrive.com", ""]

If you want to target a frame, a new window or anything other than the page itself, use a target for that link:

Code:

myimages[2]=["photo3.jpg", "http://www.javascriptkit.com", "_new"]

You had this right (except for the brain cramp and that garbage about __FRAME_(url_target)_ID__ ):

Possible values for the third item (target) on each line:name = name of a frame, window or iframe
_top = this page(global) eg... breaks out of any frame
_blank = new page
_self = this page(local) eg... will parse inside an iframe
_parent = the page immediately containing this page, if any, or if not, same as _self

Targets are meaningless unless a link is supplied in the second item on the line.

still getting an error

I downloaded the js script to my hard drive and clicked on it, but I didn't see anything happen.

I cleaned up the syntax..this is what i have now for a simple slide show:
You'll see the image location is very long, but that is what I was told to put in. I'm also using the server space on register.com if that makes a difference. It's a 5 page website with templates, but it has open space for coding.

Well, you might be able to configure FP so as to allow you to insert code like this without it mangling it so much. Read the manual or Google for help on that. Another alternative, and what I recommend in all cases like this, is to get your page looking like you want using FP but without any scripts. Save a copy of that somewhere to work on later if the need arises. Next open the page in notepad or simple text (make sure word wrap is turned off in either of these) and add the scripts in according to the installation instructions, including any customization you've added. Never load this version of the page into FP ever again. To preview it locally, use the browser. To upload it, use FTP (preferred) or your host's online uploading tool.

Here is trick I ran across* that should stop FP from changing scripts but, since I do not use FP, I haven't tested it:

In a text editor open the page whose code you wish to preserve.

At the beginning of the section of code you wish to prevent FrontPage from modifying, add the following line of code:

Code:

<!--webbot bot="HTMLMarkup" startspan -->

At the end of the code section, add the following line of code:

Code:

<!--webbot bot="HTMLMarkup" endspan -->

Save the changes to the file. The next time the file is opened in FrontPage, FrontPage will not attempt to alter the code between the two HTMLMarkup tags. You still need to put the script into the page with a text editor.