Small images are on the website pages. A click on the small images gives a larger picture which pops up in a frame. Small images are around 320 x 200. Pop up images are around 880 x 660. This procedure is controlled by javascript coding within the page for each pop up. If the images are larger than your screen size, scrollbars are provided.
Javascript routine -
<script language="JavaScript" type="text/javascript">
</script>
Routine called with -
<a title=" Auld Brig in the Summer Foliage" href="javascript: popitup('images/auldbrigsum2-2.jpg','Auld Brig and Summer Foliage',865,650,'white')">
Small images are on the website pages. A click on the small images gives a larger picture which pops up in a frame. Small images are around 320 x 200. Pop up images are around 880 x 660. This procedure is controlled by javascript coding within the page for each pop up. If the images are larger than your screen size, scrollbars are provided.
Javascript routine -
<script language="JavaScript" type="text/javascript">
<!-- ;
var newwindow;
var wheight = 0, wwidth = 0;
function popitup(url, title, iwidth, iheight, colour) {
var pwidth, pheight;
if ( !newwindow || newwindow.closed ) {
pwidth=iwidth+30;
pheight=iheight+30;
newwindow=window.open('','htmlname','width=' + pwidth +',height=' + pheight + ',scrollbars=yes,resizable=1,top=50,left=120');
wheight=iheight;
wwidth=iwidth;
}
if (wheight!=iheight || wwidth!=iwidth ) {
pwidth=iwidth+30;
pheight=iheight+60;
newwindow.resizeTo(pwidth, pheight);
wheight=iheight;
wwidth=iwidth;
}
newwindow.document.clear();
newwindow.focus();
newwindow.document.writeln('<html> <head> <title>'+ title +'<\/title> <meta http-equiv="imagetoolbar" content="no"> <\/head> <body bgcolor= \"'+ colour +'\"> <center>');
newwindow.document.writeln('<img src=' + url + ' onContextmenu="return false;">');
newwindow.document.writeln('<\/center> <\/body> <\/html>');
newwindow.document.close();
newwindow.focus();
}
// Routines to tidy up popup windows when page is left
// Call with an onUnload="tidy()" in body tag
// -->
</script>
Routine called with -
<a title=" Auld Brig in the Summer Foliage" href="javascript: popitup('images/auldbrigsum2-2.jpg','Auld Brig and Summer Foliage',865,650,'white')">