Skip to content

Instantly share code, notes, and snippets.

@disinfeqt
Created August 19, 2011 04:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save disinfeqt/1156060 to your computer and use it in GitHub Desktop.
Save disinfeqt/1156060 to your computer and use it in GitHub Desktop.
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<style type="text/css">
#off-screen-preload {
position: absolute;
top: -5000px;
left: -5000px;
height: 1px;
width: 1px;
overflow: hidden;
}
#off-screen-preload .content-fe-sprites {
position: absolute;
height: 1px;
width: 1px;
background: url(http://a1.twimg.com/a/1313081238/phoenix/img/sprite_icons-contentfe.png);
}
</style>
</head>
<body>
<div id="off-screen-preload">
<div class="content-fe-sprites"></div>
</div>
</body>
</html>
@chrisyip
Copy link

how about pure js way: https://gist.github.com/1156086 ?
can control image list by js not html and css.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment