Links and Scripts

Most of IGC you can figure out with a bit of playing around but this section can be a bit more complex.

Links File:
If you want links to other pages you put them in this file. You will probably want links to other pages of your galleries. For instance if you have three kids and you have galleries of each child then you will want links to each other page on every page.

The file format is very specific but very flexible at the same time.
The format is as follows: 

The first line is the description and the second line is the link.
You can add mouseovers and many other things to this file.

Here is an example:
Home
"../default.htm" target = "_top"; onmouseover = "DispPopUpDesc('Back Home.',2,4000,'yellow','black')"; onmouseout = "HidePopUpDesc()"; 

The actual link is the "../default.htm" and it MUST be in quotes. The rest of it is where the page opens and the mouseover java script that was added to the page.

ONE VERY IMPORTANT THING, Do NOT line feed the links no matter how long it is. If the above  example is line fed it is only because of the layout of this file.
Basically every odd line should be a description and every even line should be a link.

Here is another simple entry that you could have.
Google
"http://www.google.com" target ="_top";

If you do not use frame view the you don't really need the target. If you are not using frame view but you want the page displayed in a new window then use target = "_new".

Goes in Head Section:
This is the file that contains the text that you want to go in the head section of the page.

Here is an example of how to use text/css, this is the contents of an example file:
<STYLE TYPE="text/css">
A:link {ztext-decoration: none}
A:visited {color:"#800080";}
A:hover
{
color:"#000000";
text-decoration:overline;
background: #aaddee;
}
</STYLE>

Any thing you want to go into the head section goes in this file. Just format it as it would be in the html file.

Goes in Body Section:
This is the file that contains what you want to go into the body of the html file.

Here is the contents of an example file:
<SCRIPT SRC="../PopUpDesc.js" language="JavaScript1.2"></SCRIPT>

Here I have a reference to my popupdesc java script file. You could add java script to this file instead of a reference but this is a much cleaner way to do it. Again the format must be just as it would be in the html file.

Image Href Section:
This is the file that contains the href information.

Here is the contents of an example file:
onmouseover = "DispPopUpDesc('Click to view<br>larger image.',2,4000,'pink','#ff33ff')"; onmouseout = "HidePopUpDesc()";

This text will be added to the actual href section. This also references my popupdesc java script. Notice the <br> in the 'Click to view<br>larger image.' , that is a line feed. Remember it must be formatted just as it would be in the html file. The "Click to view larger image" will show up on every thumb nail if you use it this way. If you want individual descriptions the you should create a thumb nails file and not use the href file section.

If you use a thumb nails file and you put descriptions on the images in the thumb nails file you really don't want to use the href file. The href file will add the description to all the images.