If you go to this page and scroll down to the bottom, then click on the blue Support subhead, it doesn’t seem to react. You need to manually scroll down to see the accordion opened: http://www.reedyrace.com/2015/offroad/index.html
So I added this script to the bottom of the page with the hope that the page will scroll down slightly on click:
<script> function pageScroll() { window.scrollBy(0, 100); /* http://www.mediacollege.com/internet/javascript/page/scroll.html*/
}
Then added the onclick to call the function:
<h3><button class="openbutton" onclick="pageScroll()">+</button>Support</h3>
However, it does not scroll the page.
I am using this script for the accordion, and wonder if there is a conflict that prevents it from working:
http://www.scriptiny.com/2009/03/accordion/
I added pageScroll(); to the .js page above, at the bottom, to no avail. How do I get the page to scroll up a bit when they click to open the accordion?