This (red in the highlighted section) is invalid javascript code (from the page's source code):
Code:
. . . se_title=1; //use for descriptions as images title attributes
slides.nofade=1; //use for no fade-in, fade-out effect for this show
slides_border_style='ridge';
slides.border=5; //set border width for images
slides.border_color='#E4D6BB'; //set border color for images
slides.onclick="window.open(this.1,this.2,'top=0,left=0,width=+screen.availWidth+,height='+screen.availHeight');return false;"
</script>
<script src="/drpano/js/swissarmy.js" type="text/javascript">
/***********************************************
* Swiss Army Image slide show script -© John Davenport Scheuer: http://home.comcast.net/~jscheuer1/
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynam . . .
Other browsers just go with 'undefined' for those values. But technically speaking there's no this.1 or this.2, and even if there were, they should be expressed as this[1] and this[2]. Chrome gets excited about it and stops processing the rest of the script. Why it doesn't do that sooner, I'm not sure. But it does do it and does it as soon as you try to go to the next or previous slide from second slide.
OK, so do you want it to open a new window? Right now other browsers are looking at that, and when you click on it they're ignoring it because it's an error, and they're just taking you to the page. If that's what you want, just get rid of the whole line, so you would have:
Code:
. . . se_title=1; //use for descriptions as images title attributes
slides.nofade=1; //use for no fade-in, fade-out effect for this show
slides_border_style='ridge';
slides.border=5; //set border width for images
slides.border_color='#E4D6BB'; //set border color for images
</script>
<script src="/drpano/js/swissarmy.js" type="text/javascript">
/***********************************************
* Swiss Army Image slide show script - © John Davenport Scheuer: http://home.comcast.net/~jscheuer1/
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynam . . .
If you want a new window, with those coordinates (top of the screen and left of the screen) and those dimensions (all of the available screen width, and all the available screen height), then use:
Code:
slides.onclick="window.open(this.href,'_new','top=0, left=0, width='+screen.availWidth+', height='+screen.availHeight);return false;";
If it were me, I'd just get rid of the line, or possibly use a new window, but a smaller one, like:
Code:
slides.onclick="window.open(this.href,'_new','top=50, left=50, scrollbars, resizable, width='+(screen.availWidth/1.5)+', height='+(screen.availHeight/1.5));return false;";
Bookmarks