Web page www.dorsetdog.com/lightbox-2-6-trial-in-google-sites
I use Google sites - because the web hosting is free and I do this to help charity fund raising dog shows.
In Google sites, one can only enter html code into the Body of the page. One can't upload html files, so one creates an XML file, uploads that file to the drive and creates a "gadget" to load and display the xml file on the relevant page - it shows as an iframe when one views the entire page in html.
I use Lightbox - in a gadget, and generally it works very well. Problem is that if someone clicks on an image, Lightbox will display that image at the top of the gadget - but if the visitor clicked on an image at the bottom of the gallery, all they see is a black screen.
But I want it so that when someone clicks on any image in the gallery, that the screen jumps to the start of the gadget. It is possible to put a: links into the html within the body, such as <a name=”swmgsik”></a> to jump to.
My problem is, do I need the js file to jump the visitor to the top of the gadget, or do I use the href within the xml file to get the screen to jump up to the start?
Please bear in mind that moving the lightbox html outside of the ifram gadget is not an option
So I also wondered if there is a "Screen" possibility 
The three JS files are
jquery-1.10.2.js lightbox-2.6.js modernizr.custom.js
And the html for a normal html file is
HTML Code:
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<title>Lightbox 2</title>
<meta name="description" lang="en" content="Lightbox 2 is a script used to overlay images on the current page. It's a snap to setup and works on all modern browsers."/>
<meta name="author" content="Lokesh Dhakar">
<meta name="viewport" content="width=device-width,initial-scale=1">
<script src="js/modernizr.custom.js"></script>
<link rel="stylesheet" href="css/lightbox-2-6.css" media="screen"/>
<script src="js/jquery-1.10.2.js"></script>
<script src="js/lightbox-2.6.js"></script>
</head>
<body>
<p> some text</p>
br
<p> some text</p>
br
<p> some text</p>
br
<p> some text</p>
br
<a name=”display”></a>
<div class="wrapper" onClick="window('file:///D:/ME/a-googledog/Lightbox-js/2.6/index.html#display');">
<div class="image-row">
<div class="image-set">
<p>Trial page for Lightbox 2.6 in Google Sites </p>
<p>Cick on an image to see a larger version </p>
<a name=”display”></a>
<a class="big-picture" href="https://lh3.googleusercontent.com/--cxNVkaFfGo/UlP0PeByODI/AAAAAAAABu0/w0fn8KC7imY/s512/l-1-A-V-Puppy-Daisy-owned-by-Zoe-Haime.jpg" rel="lightbox[Corscombe-2013]" title="Cl 1 A.V. Puppy and Best Puppy In Show Corscombe 2013 - Daisy, owned by Zoe Haime"><img class="thumbnail" src="https://lh6.googleusercontent.com/-3GqvRMNQZaA/UlPzoKVW44I/AAAAAAAABoI/1WnupRfYAUE/s300/1-A-V-Puppy-Daisy-owned-by-Zoe-Haime.jpg" ></a>
<a class="big-picture" href="https://lh6.googleusercontent.com/-S9iXy-U7yqQ/UlP0SsDgx6I/AAAAAAAABu0/bXtGf8WcDrc/s512/l-2-A-V-Sporting-and-Best-In-Show-Ruby-owned-by-Zoe-Haime.jpg" rel="lightbox[Corscombe-2013]" title="Cl 2 A.V. Sporting and Best In Show Corscombe 2013 – Ruby, owned by Zoe Haime"><img class="thumbnail" src="https://lh4.googleusercontent.com/-qOHY4-v8U4k/UlPzqw_pBLI/AAAAAAAABpU/IbYoQVOpIxI/s300/2-A-V-Sporting-and-Best-In-Show-Ruby-owned-by-Zoe-Haime.jpg" ></a>
<a class="big-picture" href="https://lh6.googleusercontent.com/-AKsZpw1kNLA/UlP0TLR6NcI/AAAAAAAABu0/2lp72bOqD4s/s512/l-3-A-V-Non-sporting-Josh-owned-by-Loretta-Clifford.jpg" rel="lightbox[Corscombe-2013]" title="Cl 3 A.V. Non sporting - Josh, owned by Loretta Clifford"><img class="thumbnail" src="https://lh3.googleusercontent.com/-HUukaqzZaj0/UlPzriJ5iBI/AAAAAAAABpc/HzST4uykmDQ/s300/3-A-V-Non-sporting-Josh-owned-by-Loretta-Clifford.jpg" ></a>
<a class="big-picture" href="https://lh4.googleusercontent.com/-2v2WGYIBzjc/UlP0TfqzD0I/AAAAAAAABu0/qNA5GxphcwQ/s512/l-4-A-V-Open-and-RBIS-Lottie-owned-by-Karen-and-Gary-Plummer.jpg" rel="lightbox[Corscombe-2013]" title="Cl 4 A.V. Open and Reserve Best In Show – Lottie, owned by Karen and Gary Plummer"><img class="thumbnail" src="https://lh4.googleusercontent.com/-Vz4iSh_8rPs/UlPzrho-YYI/AAAAAAAABpk/CkIZKeRJYmg/s300/4-A-V-Open-and-RBIS-Lottie-owned-by-Karen-and-Gary-Plummer.jpg" ></a>
<a class="big-picture" href="https://lh5.googleusercontent.com/-30d6jUU88ZA/UlP0TsrjJCI/AAAAAAAABu0/RWf7jz0-Qe4/s512/l-5-A-V-Veteran--Olivia-owned-by-Karen-and-Gary-Plummer.jpg" rel="lightbox[Corscombe-2013]" title="Cl 5 A.V. Veteran, Olivia, owned by Karen and Gary Plummer "><img class="thumbnail" src="https://lh6.googleusercontent.com/-Ta5i86jRDbA/UlPzsSLVtHI/AAAAAAAABpo/XrZxuVPD2Z0/s300/5-A-V-Veteran--Olivia-owned-by-Karen-and-Gary-Plummer.jpg" ></a>
<a class="big-picture" href="https://lh3.googleusercontent.com/-v_fK3CsNYy8/UlPPLxiEcSI/AAAAAAAABls/njqeX2YCAzw/s640/l-Best-Pedigree-In-Show-trophy-winners.jpg" rel="lightbox[Corscombe-2013]" title="Best In Show 2013 - Ruby, owned by Zoe Haime. Reserve Best In Show – Lottie, owned by Karen and Gary Plummer. Best Veteran - Olivia, owned by Karen and Gary Plummer. Best Puppy in Show – Daisy, owned by Zoe Haime."><img class="thumbnail" src="https://lh3.googleusercontent.com/-8GCeVw90Syk/UlPOq2Hg6QI/AAAAAAAABi8/8EnGDkFti1A/s447/Best-Pedigree-In-Show-trophy-winners.jpg" ></a>
<a class="big-picture" href="https://lh4.googleusercontent.com/-6z2ycj0RxG0/UmMg2ufqbTI/AAAAAAAAGVA/TO_Si0HNOyc/s640/1.jpg" data-lightbox="example-set" title="Halstock Hall."><img class="thumbnail" src="https://lh4.googleusercontent.com/-6z2ycj0RxG0/UmMg2ufqbTI/AAAAAAAAGVA/TO_Si0HNOyc/s640/1.jpg" alt="Plants: image 1 0f 4 thumb" width="150" height="150"/></a>
<a class="big-picture" href="https://lh3.googleusercontent.com/-Hw3XoYw_OmQ/UmMg6pwhteI/AAAAAAAAGWI/f2INklK-VIs/s800/2.jpg" data-lightbox="example-set" title="Halstock Hall."><img class="thumbnail" src="https://lh3.googleusercontent.com/-Hw3XoYw_OmQ/UmMg6pwhteI/AAAAAAAAGWI/f2INklK-VIs/s800/2.jpg" alt="Plants: image 2 0f 4 thumb" width="150" height="55"/></a>
<a class="big-picture" href="https://lh3.googleusercontent.com/-WCrmOhalshg/UmMg_e8y7ZI/AAAAAAAAGXY/iv3tgZCejqE/s640/3.jpg" data-lightbox="example-set" title="Halstock Hall."><img class="thumbnail" src="https://lh3.googleusercontent.com/-WCrmOhalshg/UmMg_e8y7ZI/AAAAAAAAGXY/iv3tgZCejqE/s640/3.jpg" alt="Plants: image 3 0f 4 thumb" width="150" height="150"/></a>
<a class="big-picture" href="https://lh5.googleusercontent.com/-SjG2_MoqlW8/UmMhAEEZ7jI/AAAAAAAAGXk/d5LNsE1WCbo/s640/4.jpg" data-lightbox="example-set" title="Halstock Hall."><img class="thumbnail" src="https://lh5.googleusercontent.com/-SjG2_MoqlW8/UmMhAEEZ7jI/AAAAAAAAGXk/d5LNsE1WCbo/s640/4.jpg" alt="Plants: image 4 0f 4 thumb" width="150" height="150"/></a>
<a class="big-picture" href="https://lh4.googleusercontent.com/-6z2ycj0RxG0/UmMg2ufqbTI/AAAAAAAAGVA/TO_Si0HNOyc/s640/1.jpg" data-lightbox="example-set" title="Halstock Hall."><img class="thumbnail" src="https://lh4.googleusercontent.com/-6z2ycj0RxG0/UmMg2ufqbTI/AAAAAAAAGVA/TO_Si0HNOyc/s640/1.jpg" alt="Plants: image 1 0f 4 thumb" width="150" height="150"/></a>
<a class="big-picture" href="https://lh3.googleusercontent.com/-Hw3XoYw_OmQ/UmMg6pwhteI/AAAAAAAAGWI/f2INklK-VIs/s800/2.jpg" data-lightbox="example-set" title="Halstock Hall."><img class="thumbnail" src="https://lh3.googleusercontent.com/-Hw3XoYw_OmQ/UmMg6pwhteI/AAAAAAAAGWI/f2INklK-VIs/s800/2.jpg" alt="Plants: image 2 0f 4 thumb" width="150" height="55"/></a>
<a class="big-picture" href="https://lh3.googleusercontent.com/-WCrmOhalshg/UmMg_e8y7ZI/AAAAAAAAGXY/iv3tgZCejqE/s640/3.jpg" data-lightbox="example-set" title="Halstock Hall."><img class="thumbnail" src="https://lh3.googleusercontent.com/-WCrmOhalshg/UmMg_e8y7ZI/AAAAAAAAGXY/iv3tgZCejqE/s640/3.jpg" alt="Plants: image 3 0f 4 thumb" width="150" height="150"/></a>
<a class="big-picture" href="https://lh5.googleusercontent.com/-SjG2_MoqlW8/UmMhAEEZ7jI/AAAAAAAAGXk/d5LNsE1WCbo/s640/4.jpg" data-lightbox="example-set" title="Halstock Hall."><img class="thumbnail" src="https://lh5.googleusercontent.com/-SjG2_MoqlW8/UmMhAEEZ7jI/AAAAAAAAGXk/d5LNsE1WCbo/s640/4.jpg" alt="Plants: image 4 0f 4 thumb" width="150" height="150"/></a>
</div>
</div>
</section>
</div>
</body>
</html>
Many thanks for any suggestions offered
Mark
Bookmarks