GithubHelp home page GithubHelp logo

zwebox's Introduction

ZweBox

ZweBox is yet another clone of the incredible Lightbox, but this time using the MooTools framework.

If you don't know anything about Lightbox, this is beautiful and easy way to show images, galleries, videos and html content in a way similar to the old-fashioned PopUp, but with some better visual effects!

In this particular version of Lightbox I've taken a BIG inspiration from the JQuery script JQuery Lightbox Evolution by Eduardo Sada. I've rewritten everything from Eduardo with MooTools in mind and making some improvements such as resizing after having resized the window, gallery not only of images and mutch more. I also give complete credit to Eduardo for what concerns the stylesheets (I've only made one or two modifications to match the new gallery way).

This script uses the version 1.4 of MooTools, and I've worked with the full library included. (In a future momento I'll try to write an "include only" list.

Hot to use

First of all you have to include the MooTools library, both the core and the more ones.

    #HTML
    <script type="text/javascript" src="mootools-core.js"></script>
    <script type="text/javascript" src="mootools-more.js"></script>

Then you can include the script dependencies: Overlay.js by David Walsh

    #HTML
    <script type="text/javascript" src="Overlay.js"></script>

Ok, everything is ready to include the script...

    #HTML
    <script type="text/javascript" src="../Source/zwebox.js"></script>

...and the style (the second one is the ie6 fix).

    #HTML
    <link type="text/css" rel="stylesheet" href="../Source/themes/default/zwebox.css" />
    <!--[if IE 6]>
    <link rel="stylesheet" type="text/css" href="../Source/themes/default/zwebox.ie6.css" />
    <![endif]-->

Obviously you can change the style by selecting another css!

CSS

ZweBox doesn't style anything with Javascript (setStyle[s] method is only used to show/hide elements). You can change anything in the css files!

(Note: ZweBox is designed to allow more instances on the same page. Because of this, you can style theme in different ways. The default css has been written using the default name of the instance. If you want to change the name, remember to change also the name of the classes in the css files!)

zwebox's People

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.