123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <title>Lazy Load Enabled on Horizontal Container</title>
- <meta name="generator" content="Mephisto" />
- <link href="http://www.appelsiini.net/stylesheets/main2.css" rel="stylesheet" type="text/css" />
- <link rel="alternate" type="application/atom+xml" href="http://feeds.feedburner.com/tuupola" title="Atom feed" />
- <style type="text/css">
- #sidebar {
- width: 0px;
- }
- #content {
- width: 800px;
- }
- #container {
- width: 800px;
- overflow: scroll;
- }
- #inner_container {
- width: 4750px;
- }
- </style>
- <script>
- var _gaq = _gaq || [];
- _gaq.push(['_setAccount', 'UA-190966-1']);
- _gaq.push(['_trackPageview']);
- _gaq.push(['_trackPageLoadTime']);
-
- (function() {
- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
- })();
- </script>
- </head>
- <body>
- <div id="wrap">
- <div id="header">
- <p>
- <h1>Lazy Load</h1><br />
- <small>Image lazy loader plugin for jQuery.</small>
- <ul id="nav">
- <li id="first"><a href="/" class="active">weblog</a></li>
- <li><a href="/projects" class="last">projects</a></li>
- <!--
- <li><a href="/cv" class="last">cv</a></li>
- -->
- </ul>
- </p>
- </div>
- <div id="content">
-
- <h2>Plugin enabled on horizontal container</h2>
- <div class="entry">
-
- <p>
- Images right of the visible area are not loaded. When scrolling left they are loaded when needed.
- Shift-reload to test again. Compare this to page where plugin is
- <a href="disabled.html">disabled</a> or page with
- <a href="enabled_gazillion.html">gazillion images</a>.
- </p>
- <code>
- <pre>
- $("img").lazyload({
- container: $("#container")
- });</pre>
- </code>
- <div id="container">
- <div id="inner_container">
- <img src="img/grey.gif" data-original="img/bmw_m1_hood.jpg" width="765" height="574" alt="BMW M1 Hood">
- <img src="img/grey.gif" data-original="img/bmw_m1_side.jpg" width="765" height="574" alt="BMW M1 Side">
- <img src="img/grey.gif" data-original="img/viper_1.jpg" width="765" height="574" alt="Viper 1">
- <img src="img/grey.gif" data-original="img/viper_corner.jpg" width="765" height="574" alt="Viper Corner">
- <img src="img/grey.gif" data-original="img/bmw_m3_gt.jpg" width="765" height="574" alt="BMW M3 GT">
- <img src="img/grey.gif" data-original="img/corvette_pitstop.jpg" width="765" height="574" alt="Corvette Pitstop">
- </div>
- </div>
-
- </div>
- <div id="sidebar">
- </div>
-
- <div id="footer">
- </div>
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js" charset="utf-8"></script>
- <script src="jquery.lazyload.js?v=1.8.3" charset="utf-8"></script>
- <script type="text/javascript" charset="utf-8">
- $(function() {
- $("img").lazyload({container: $("#container")});
- });
- </script>
-
- </body>
- </html>
|