loading effect on spoiler images
5 posters
Page 1 of 1
loading effect on spoiler images
how to create a loading effect on the spoiler that contains images?
loading images that I use:

loading images that I use:

Re: loading effect on spoiler images
Hello,
Here is a script that can help you...
http://jqueryfordesigners.com/image-loading/
It will require template editing.
Here is a script that can help you...
http://jqueryfordesigners.com/image-loading/
It will require template editing.
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Re: loading effect on spoiler images
ankillien wrote:Hello,
Here is a script that can help you...
http://jqueryfordesigners.com/image-loading/
It will require template editing.
I will try..
Re: loading effect on spoiler images
- Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Image Loading</title>
<style type="text/css" media="screen">
<!--
BODY { margin: 10px; padding: 0; font: 1em "Trebuchet MS", verdana, arial, sans-serif; font-size: 100%; }
H1 { margin-bottom: 2px; }
DIV#loader {
border: 1px solid #ccc;
width: 500px;
height: 500px;
overflow: hidden;
}
DIV#loader.loading {
background: url(/images/spinner.gif) no-repeat center center;
}
-->
</style>
<script src="/js/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
<!--
$(function () {
var img = new Image();
$(img).load(function () {
//$(this).css('display', 'none'); // .hide() doesn't work in Safari when the element isn't on the DOM already
$(this).hide();
$('#loader').removeClass('loading').append(this);
$(this).fadeIn();
}).error(function () {
// notify the user that the image could not be loaded
}).attr('src', 'http://farm3.static.flickr.com/2405/2238919394_4c9b5aa921_o.jpg');
});
//-->
</script>
</head>
<body id="page">
<h1>Image Loading</h1>
<p>This demonstration shows how to pre-load an image in the background while showing a loading screen. It also supports loading the image, then running additional code, such as Ajax requests before finally showing the image.</p>
<p><a href="http://jqueryfordesigners.com/image-loading/">Read the article this demonstration relates to</a></p>
<div id="loader" class="loading">
</div>
<p><a href="http://www.flickr.com/photos/remysharp/">More photos...</a></p>
<!-- this is just a way to simulate a delay (the script will sleep for 2 seconds then response) -->
<script src="image-load-demo.php?action=delay" type="text/javascript" charset="utf-8"></script>
</body>
</html>
Here is the source code for it.. what part do I use?
Edit while I am at it.. how about images in general and not just spoiler images.
blindbat1457- Forumember
-
Posts : 667
Reputation : 6
Language : English
Location : Santa Clarita, CA
Re: loading effect on spoiler images
Not sure wait for a reply.
blindbat1457- Forumember
-
Posts : 667
Reputation : 6
Language : English
Location : Santa Clarita, CA
Re: loading effect on spoiler images
I also noticed this code has the personal information and URL to the picture and such. Hmm

blindbat1457- Forumember
-
Posts : 667
Reputation : 6
Language : English
Location : Santa Clarita, CA
Re: loading effect on spoiler images
Not sure.. it will come around eventually just takes a while.
blindbat1457- Forumember
-
Posts : 667
Reputation : 6
Language : English
Location : Santa Clarita, CA
blindbat1457- Forumember
-
Posts : 667
Reputation : 6
Language : English
Location : Santa Clarita, CA
Re: loading effect on spoiler images
Bump for you 

zachoftheglen2- Forumember
- Posts : 119
Reputation : 0
Language : English
blindbat1457- Forumember
-
Posts : 667
Reputation : 6
Language : English
Location : Santa Clarita, CA
blindbat1457- Forumember
-
Posts : 667
Reputation : 6
Language : English
Location : Santa Clarita, CA

» How do I set a loading icon for loading images?
» Lightbox Effect to Images
» Lightbox effect to the images
» blurry effect for images?
» Fade-IN Effect of images
» Lightbox Effect to Images
» Lightbox effect to the images
» blurry effect for images?
» Fade-IN Effect of images
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum