First off, if you don't want the 'endofgallerymsg', it should be set to:
Code:
var endofgallerymsg="";
not:
Code:
var endofgallerymsg='<span style="font-size: 11px;"';
You don't need this stuff unless it is working for you (try taking it out, it will change things, but still look good):
Code:
<style type="text/css">
/* Styles Here are for the Demo Page's Layout Only */
table {
border-collapse:collapse;
float:left;
margin-left:2em;
margin-bottom:3em;
}
td {
padding:0;
margin:0;
}
/* End Demo Page's Layout Styles*/
</style>
And, you should style the two cap divisions so that they don't change size on you. Something like (in your existing style section):
Code:
#cap1, #cap2 {
height:1.5em;
}
Now, to display the last image and caption first, change (shown in red):
Code:
function displayarea(theimages, fadewidth, fadeheight, borderwidth){
if(!displayarea.fadearray){
displayarea.fadearray=new Array() //array to cache displayarea instances
displayarea.fadeclear=new Array() //array to cache corresponding clearinterval pointers
}
this.flag=1
this.capid=theimages.capid;
this.dom=(document.getElementById) //modern dom browsers
this.iebrowser=document.all
this.pausecheck=0
this.degree=10 //initial opacity degree (10%)
this.curimageindex=theimages.length-1;
this.nextimageindex=0
displayarea.fadearray[disp . . .
And, a little farther down:
Code:
if(this.capid){
document.write('<div id="'+this.capid+'">'+(theimages[this.curimageindex][5]? theimages[this.curimageindex][5] : ' ')+'</div>');
this.caparea=document.getElementById(this.capid);
}
Bookmarks