it seems to be working. Did you get this issue resolved?
Thread Starter
blanip
(@blanip)
No, what I was trying to do is use the code [expand title=”Close-n-Scroll” scrollonclose=”7000″] and cannot get it to function. Sorry I wasn’t clear before.
Here’s what I have. But no matter where I place the above code, it isn’t working.
<p>
</p>
<div id=”target-some_id” class=”collapseomatic_content “>
- Since Congress created mandatory minimum sentences for drug crimes in the 1980s, the federal prison population has grown from 24,000 prisoners to over 214,000 prisoners – the largest prison system in the country. (Federal Bureau of Prisons)
- One in 31 adults in America are either behind bars, on parole, or on probation. (Pew Center on the States)
- There is no parole in the federal criminal justice system – all federal prisoners are required to serve at least 85% of their sentences. (Pew Center on the States)
- In 2015, 87% of all federal offenders received a sentence of imprisonment; only 10% received probation or home confinement. (US Sentencing Commission, 2015 Sourcebook of Federal Sentencing Statistics)
- In 2015, 95% of all federal drug offenders received prison sentences. (US Sentencing Commission, 2015 Sourcebook of Federal Sentencing Statistics)
- In 2015, 46% of all federal drug offenders were subject to a mandatory minimum sentence. (US Sentencing Commission, 2015 Sourcebook of Federal Sentencing Statistics)
- 52% of (the 21,475) drug offenders in FY 2014 were convicted of an offense that carries a mandatory minimum penalty. (US Sentencing Commission Report to Congress: Mandatory Minimum Penalties in the Federal Criminal Justice System)
- Nearly half of all federal prisoners are serving prison sentences for drugs. (US Sentencing Commission, 2015 Sourcebook of Federal Sentencing Statistics, Figure A)
<p><span id=”bot-some_id” class=”collapseomatic colomat-close”>click here to close</span></p>
</div>
<p> </p>
Ok, take a look at the documentation, there is no scrollonclose attribute. You simply need to assign the scroll-to-trigger class to your trigger. This was built for an extra internal collapse trigger, as with long text, the reader would be at the bottom of the text and would be able to collapse the text from the bottom
To ‘scroll on close’ from the main trigger, the image in your case, makes little sense as the user has already scrolled back up to the trigger to click it.
Can you be a bit more clear with what exactly you want to do?
-
This reply was modified 9 years, 4 months ago by
twinpictures.
Thread Starter
blanip
(@blanip)
Sorry for the confusion. I’m finished the page so I can more clearly ask for direction (http://famm.org/quick-facts-demo/). I would like the scrollonclose that scrolls the screen back upwards a certain number of pixels: [expand title=”Close-n-Scroll” scrollonclose=”7000″]Closing this will auto scroll the element to 7000 pixels from the top.[/expand]
It is not working currently. Where should this be placed in the code to work effectively?