/* * File: scroll_config.js * Name: Scroller configuration * Date: 2001-04-23 * Author: Ben Boyle * Email: bboyle@inspire.server101.com * Platform: all javascript browsers Configuration file for scroller. Remove the // from comments and adjust properties to suit. Copy and paste this HTML where the menu should appear: * multiple config scrollers can be used on a single page Ensure this HTML code appears (once only) in the
of your page Functions to control scroller from HTML: scroll_play(id) start playing scroll_stop(id) stop playing scroll_play_stop(id) start/stop toggle (pauses if playing, plays if stopped) scroll_freeze(id, pause) pauses (if pause is "true") or restores playback (if pause is "false") eg. scroll_freeze('scroller', true); scroll_speed(id, speed) set the scrolling speed (1 normal, 2 double speed, -1 reverse, ..) scroll_speed_shuttle(id, shuttle) adjust the speed by "shuttle" amount (1, speed up, -1 slow down, 2 big speed up) */ /* CSS display configuration classes (class names can be customised): examples: .scrollerplay { background-color: #CCCCCC; layer-background-color: #CCCCCC; color: #000000; } .scrollerstop { background-color: #BCBCBC; layer-background-color: #BCBCBC; color: #ECECEC; } .scrollitemplay { } .scrollitemstop { background-color: #ECECEC; } .scrollitemtitle { font-size: 90%; font-weight: bold; } .scrollitemdescription { font-size: 80%; } a.scrollitemlink:link, a.item:visited { text-decoration: none; } a.scrollitemlink:active, a.scrollitemlink:hover { text-decoration: underline; } */ // scroller box, during playback scroll_css_control_play = 'scrollerplay'; // scroller box, when stopped scroll_css_control_stop = 'scrollerstop'; // a scrolling item, during normal playback scroll_css_item_play = 'scrollitemplay'; // a scrolling item, when paused at the top scroll_css_item_stop = 'scrollitemstop'; // titles in scrolling items scroll_css_item_title = 'scrollitemtitle'; // descriptions in scrolling items scroll_css_item_description = 'scrollitemdescription'; // links in scrolling items (replace scroller-id with the ID you use below) */ scroll_create('openDaysScroller'); scroll_add("Saturday 10th May 2008", " » Hydesville Tower School", "school.php?id=6"); scroll_add("Saturday 10th May 2008", " » Akeley Wood School", "school.php?id=1"); scroll_add("Tuesday 13th May 2008", " » Southbank International School", "school.php?id=30"); scroll_add("Tuesday 13th May 2008", " » Meoncross School", "school.php?id=8"); scroll_add("Tuesday 20th May 2008", " » Hendon Prep School", "school.php?id=5"); scroll_add("Thursday 22nd May 2008", " » Kingscourt School", "school.php?id=26"); scroll_add("Monday 2nd June 2008", " » King's School and Nursery", "school.php?id=42"); scroll_add("Tuesday 3rd June 2008", " » King's School and Nursery", "school.php?id=42"); scroll_add("Wednesday 4th June 2008", " » King's School and Nursery", "school.php?id=42"); scroll_add("Tuesday 10th June 2008", " » Clifton Lodge School", "school.php?id=44"); scroll_add("Saturday 21st June 2008", " » Akeley Wood School", "school.php?id=1"); scroll_add("Saturday 11th October 2008", " » Colchester High School", "school.php?id=18"); scroll_add("Thursday 19th March 2009", " » Oxford House School", "school.php?id=24"); scroll_done(); init_page = function() {startList(); scroll_play('openDaysScroller');}; window.onload = init_page;