Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<!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

chrisyip commented Aug 19, 2011

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