Jump to top when thumbnail is clicked

Question:

Is it possible to make the page ‘jump’ back to the top (where the video container is) if a viewer has scrolled down to click thumbnail, so one click is enough anywhere in the thumbnail list, to play the video.

Answer:

You can take the following steps (only for version 3.2 and after):

1. Add the following the JavaScript to the head section, before

<script language="JavaScript">
    function jumpToTop(data) {
    	window.scrollTo(0, 300);
    }
</script>

You can change the 300 to your desired value.

2. Add the following data tag to the div:

data-onthumbclick="jumpToTop" 

You can view the updated demo page http://html5box.com/html5gallery/demo_mediacenter.php