Skip to content
Get TopUp
  • Home
  • Documentation
  • Examples
  • How to fix
  • Education

What is TopUp?

TopUp is an easy to use Javascript library for unobtrusively displaying images and webpages in a Web 2.0 approach of popups. The library is jQuery and jQuery UI driven in order to maintain cross-browser compatibility and compactness. TopUp offers the following advantages:

  • TopUp is absolutely free, also for commercial use (view the license)
  • A very easy setup process: only one(!) include and nothing more
  • Using TopUp presets keeps your HTML code 100% clean, no extra code needed whatsoever
  • The ability of displaying images, flash (from sites like Youtube, SWF and FLV files), movies (QuickTime, Windows Media and Realplayer), iframes, DOM elements and raw HTML
  • TopUp can be used along with Prototype (just include TopUp before Prototype)
  • TopUp is compressed with Yahoo! YUI Compressor to 47.6 KB (includes JS, HTML and CSS)
  • Usage of CSS sprites to reduce the amount of image requests to two per layout for faster loading
  • Cross-browser compatibility
  • Fancy layouts, animations and transitions
  • Auto-correction of size and position when required
  • The possibility to create groups
  • Support for AJAX requests
  • It’s open source: check out http://github.com/archan937/topup and enhance TopUp yourself!
  • And many more…

Why another Lightbox-like library

Just like many among us, I had the need for a lightbox-like library to use for a website I was working on. After examining libraries such as Lightbox, Lightbox2, LightWindow, Highslide, Thickbox, ModalBox and many more, I haven’t found one that really suited my needs. Either the installation was to complicated, they aren’t unobtrusive because you have to mess with the HTML code, the appearance isn’t that slick, the transitions were glitchy, conflicts with other libraries occured or the possibilities were lacking.

Enter TopUp! The installation of TopUp consists of including only one file (no images or stylesheets!), the look-and-feel is Apple-like, the animations and transitions look fancy, you can still use Prototype, it is so easy to specify options and last but not least: you can stay updated with the latest version without changing any code. Great for expansions and bugfixes!

How to use

When including from gettopup.com (the easiest setup)

Put the following in the head element:

<script type=”text/javascript” src=”http://gettopup.com/releases/latest/top_up-min.js”></script>

Note: You can configure TopUp (libs, fast mode, paths) in the querystring of the URL (read documentation) ( you can also include a specific release by replacing latest with the version e.g. 1.3.2 )

Add either the class top_up, the attribute toptions to your links or TopUp preset(s)

Enjoy!

When hosting the javascript and images yourself

Download and unpack the latest TopUp version

Put the following in the head element:

<script type=”text/javascript” src=”path/to/your/top_up-min.js”></script>

Note: You can configure TopUp (libs, fast mode, paths) in the querystring of the URL (read documentation)

Add either the class top_up, the attribute toptions to your links or TopUp preset(s)

Enjoy!

  • Full version of the rhyme “First the worst second the best …?
    Education

    Full version of the rhyme “First the worst second the best …?

    Paul Engle

    September 15, 2023

    We’ve all heard the popular childhood rhyme that starts with “First the worst, second the best…” This whimsical saying is…

  • What Does P.S. Stand For?
    Education

    What Does P.S. Stand For?

    Paul Engle

    September 15, 2023

    Have you ever received a handwritten letter or read an email and noticed the abbreviation “P.S.” tacked onto the end…

  • How do you say “Squid” in Japanese or Chinese?
    How to fix

    How do you say “Squid” in Japanese or Chinese?

    Paul Engle

    September 15, 2023

    Squid is a fascinating creature that has found its way into cuisines around the world. Whether you’re a seafood enthusiast…

  • What Does “The Number You Are Trying to Call Is Not Reachable” Mean?
    Education

    What Does “The Number You Are Trying to Call Is Not Reachable” Mean?

    Paul Engle

    August 18, 2023

    Have you ever dialed a friend or a business contact, only to hear a recorded message saying, “The number you…

  • How to Fix Typeerror: string indices must be integers
    How to fix

    How to Fix Typeerror: string indices must be integers

    Paul Engle

    August 17, 2023

    In Python, strings are iterable objects, and their characters can be accessed using index numbers. However, there are cases where…

  • How to fix TypeError: A bytes-like object is required, not ‘str’
    How to fix

    How to fix TypeError: A bytes-like object is required, not ‘str’

    Paul Engle

    August 16, 2023

    Dealing with errors in Python can be frustrating, especially when you encounter the “TypeError: a bytes-like object is required, not…

  • How to fix Exception in thread “main” java.lang.nullpointerexception
    How to fix

    How to fix Exception in thread “main” java.lang.nullpointerexception

    Paul Engle

    August 14, 2023

    java.lang.NullPointerException is a runtime exception that arises when a variable points to nothing or null and is accessed. As it is a runtime…

Previous
1 2

Follow Us

  • Twitter
  • Facebook
  • LinkedIn
  • Pinterest

Latest news

  • Whats the easiest way to give yourself a bruise?

  • Blocked Someone on Snapchat from Viewing My Story, But They Still Saw It?

  • Can You Make/Eat Pillsbury Cinnamon Rolls Past the Expiration Date?

  • My Twitter Says I Have Notifications, But I Don’t: A Troubleshooting Guide

  • What Does “UP” Mean in a Facebook Group Post?

About | Contact | Privacy Policy | Terms and Conditions

© 2023 GetTopUp