github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

stilist / pagering

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 1
    • 0
  • Source
  • Commits
  • Network (0)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

A simple JavaScript carousel for text. — Read more

  cancel

http://ratafia.info

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Update README to reflect code changes 
stilist (author)
Wed Apr 08 14:17:41 -0700 2009
commit  97b5584d5fe31f3b26b93160219de531ae9b8545
tree    01ef6decd24efd0e80197621d8ef3d8ffb9691b0
parent  9fe14cd1cb750df503646bcc14ad21489830495f
pagering /
name age
history
message
file LICENSE Loading commit data...
file README.mdown
file page.js
file pagering.html
file style.css
README.mdown

pagering

A simple JavaScript carousel for text.

How it works

The code requires two elements: one that directly holds text, and a wrapper around it. The element with text is given CSS3 columns, cut to a specified height, and the resultant overflowing text hidden. Because this conveniently goes out the right side, we can make ‘pages’ by simply changing the text element’s left margin, moving the extra columns in and out of sight.

How to use

Edit the stuff in #text, and/or edit the CSS properties for #text and #content.

Currently, this is fairly dependent on the example HTML and CSS.

Notes

  • I have tested this using WebKit and Minefield (the development versions of Safari and Firefox). It probably won’t work anywhere else.

  • It would be helpful to abstract the code so one can simply pass in the id of the element one desires to page.

  • It would also be helpful to make the current-page indicator into a hover-to-edit input box.

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server