Title: Scrollonclose Attribute with Image
Last modified: January 30, 2017

---

# Scrollonclose Attribute with Image

 *  [blanip](https://wordpress.org/support/users/blanip/)
 * (@blanip)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/scrollonclose-attribute-with-image/)
 * Hi!
 * Trying to use the Scrollonclose Attribute upon collapse to no avail. Is this 
   unavailable if you use an image instead of an arrow?
 * [http://famm.org/quick-facts-demo/](http://famm.org/quick-facts-demo/)
 * Much thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [twinpictures](https://wordpress.org/support/users/twinpictures/)
 * (@twinpictures)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/scrollonclose-attribute-with-image/#post-8723339)
 * it seems to be working. Did you get this issue resolved?
 *  Thread Starter [blanip](https://wordpress.org/support/users/blanip/)
 * (@blanip)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/scrollonclose-attribute-with-image/#post-8725366)
 * 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)](http://www.bop.gov/about/statistics/population_statistics.jsp)
    - One in 31 adults in America are either behind bars, on parole, or on probation.(
      [Pew Center on the States](http://www.pewtrusts.org/en/about/news-room/press-releases/0001/01/01/one-in-31-us-adults-are-behind-bars-on-parole-or-probation))
    - 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](http://www.pewtrusts.org/en/about/news-room/press-releases/0001/01/01/one-in-31-us-adults-are-behind-bars-on-parole-or-probation))_
    - 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](http://www.ussc.gov/sites/default/files/pdf/research-and-publications/annual-reports-and-sourcebooks/2015/FigureD.pdf))
    - In 2015, 95% of all federal drug offenders received prison sentences. (_[US Sentencing Commission, 2015 Sourcebook of Federal Sentencing Statistics](http://www.ussc.gov/sites/default/files/pdf/research-and-publications/annual-reports-and-sourcebooks/2015/FigureD.pdf))_
    - In 2015, 46% of all federal drug offenders were subject to a mandatory minimum
      sentence. ([US Sentencing Commission, 2015 Sourcebook of Federal Sentencing Statistics](http://www.ussc.gov/sites/default/files/pdf/research-and-publications/annual-reports-and-sourcebooks/2015/FigureD.pdf))
    - 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](http://www.ussc.gov/sites/default/files/pdf/research-and-publications/quick-facts/Quick_Facts_Mand_Mins_FY14.pdf))_
    - Nearly half of all federal prisoners are serving prison sentences for drugs.(
      [US Sentencing Commission, 2015 Sourcebook of Federal Sentencing Statistics, Figure A](http://www.ussc.gov/sites/default/files/pdf/research-and-publications/annual-reports-and-sourcebooks/2015/FigureA.pdf))
 * <p><span id=”bot-some_id” class=”collapseomatic colomat-close”>click here to 
   close</span></p>
    </div> <p> </p>
 *  Plugin Author [twinpictures](https://wordpress.org/support/users/twinpictures/)
 * (@twinpictures)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/scrollonclose-attribute-with-image/#post-8742697)
 * Ok, take a look at [the documentation](https://plugins.twinpictures.de/plugins/collapse-o-matic/documentation/#ict-scroll-on-close),
   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](https://wordpress.org/support/users/twinpictures/).
 *  Thread Starter [blanip](https://wordpress.org/support/users/blanip/)
 * (@blanip)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/scrollonclose-attribute-with-image/#post-8862268)
 * Sorry for the confusion. I’m finished the page so I can more clearly ask for 
   direction ([http://famm.org/quick-facts-demo/](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?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Scrollonclose Attribute with Image’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/jquery-collapse-o-matic_fffeff.svg)
 * [Collapse-O-Matic](https://wordpress.org/plugins/jquery-collapse-o-matic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jquery-collapse-o-matic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jquery-collapse-o-matic/)
 * [Active Topics](https://wordpress.org/support/plugin/jquery-collapse-o-matic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jquery-collapse-o-matic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jquery-collapse-o-matic/reviews/)

## Tags

 * [collapse](https://wordpress.org/support/topic-tag/collapse/)
 * [image](https://wordpress.org/support/topic-tag/image/)
 * [scroll](https://wordpress.org/support/topic-tag/scroll/)

 * 4 replies
 * 2 participants
 * Last reply from: [blanip](https://wordpress.org/support/users/blanip/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/scrollonclose-attribute-with-image/#post-8862268)
 * Status: not resolved