If the css of all .gallerydesctext are the same, get rid of all of the many individual rules like:
Code:
#SChina_evening .gallerydesctext {
. . .
and:
Code:
#Harbours_Main .gallerydesctext{
. . .
And have just one rule:
Code:
.gallerydesctext {
. . .
The:
Code:
var whatever=new simpleGallery({
. . .
isn't really needed, it can be just:
Code:
new simpleGallery({
. . .
You only need a unique wrapperid for each gallery here:
Code:
new simpleGallery({
wrapperid: "Seascapes_Main", //ID of main gallery container,
dimensions: [614 . . .
if you have more than one gallery on the page, or if you have persistence set to true and you don't want persistence carrying over from one page to another.
At present neither of these appears to be the case, so they all could be just:
Code:
new simpleGallery({
wrapperid: "simplegallery1", //ID of main gallery container,
dimensions: [614 . . .
Of course that also means that the id of the target division on each page will have to become simplegallery1. But it also means, as long as they all have the same style, you need only one set of css style rules for all of them as well.
As for adding or subtracting from the imagearray, you cannot have a situation like so (from the Sea Photos | Seascape Galleries page):
Code:
imagearray: [
["images/Seascapes/1seascapes_menu1.jpg", "1Seascapes/1_SChina_evening.html", "", ""],
["images/Seascapes/1seascapes_menu2.jpg", "1Seascapes/2_Ships_Wake.html", "", ""],
["images/Seascapes/1seascapes_menu3.jpg", "1Seascapes/3_Volcano_Io_Take.html", "", ""],
["images/Seascapes/1seascapes_menu4.jpg", "1Seascapes/4_Evening_Rainbow.html", "", ""],
["images/Seascapes/1seascapes_menu5.jpg", "1Seascapes/5_OPL.html", "", ""],
],
No comma (red) allowed after the last entry in the array. This is only a problem for IE. There are other ways to mess things up in that section that will only affect IE. Missing images or extra commas inside at the end of individual entries are two I can think of. Other syntax errors in that section could affect all browsers.
Bookmarks