jQuery plugin to show a block element such as image at the center of screen

Download

Demo

Usage

<html>
    <head>
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script>
        <script src='jquery.centershow.js' ></script>

        <script>
            $(window).load(function(){
                $('#target').centershow();
            });
        </script>
    </head>

    <body>
        <img id='target' src='https://upload.wikimedia.org/wikipedia/commons/thumb/f/f7/130608_Matsumoto_Castle_Matsumoto_Nagano_pref_Japan02bs4.jpg/300px-130608_Matsumoto_Castle_Matsumoto_Nagano_pref_Japan02bs4.jpg'></img>
    </body>
</html>

Popular Articles from This Page

Top Page

Economizing Technology > jQuery plugin to show a block element such as image at the center of screen