4images Forum & Community
4images Modifications / Modifikationen => Templates & Styles (Requests & Discussions) => Topic started by: drhtm on June 13, 2005, 04:45:24 PM
-
I created a new way to add a loader gif in the background while your huge jpg image is loading.
Just one file to edit.
templates/{your template}/media/jpg.html
Just replace the orginal with the following:
<table border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td background="{template_url}/images/newloader1.gif">
<table border="0" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
<tr>
<td align="center" valign="middle" background="{media_src}">
<img src="{template_url}/images/spacer.gif" border="0" alt="{image_name}"{width_height}>
</td>
</tr>
</table>
</td>
</tr>
</table>
copy the following images to your templates/{your template}/images folder
newloader.gif is the animated version
newloader1.gif is the non-animated version
loading.png is the editable version.
enjoy!
-
How to make preloader for swf files ???? Please help
-
Please do not make Crossposting, this is a Image Preloader and this not works with *.swf...
When you need a *.swf Preloader you must make it with Flash...
Search google for a Flash Preloader Tutoria or try to search a Flash Usegroup and aks there for help... (o:
-
That's where I saw this code!
Just a little correction to the original post:
You can simply specify coordinates where the background image should be showed, that way you dont need have it be so huge as it is now.
-
@ v@no
:oops:sorry i am not good in coding.
How do you mean "simply specify coordinates" :?:
Could you please give me an example of a HTML CODE part for position my own small loader in the middle of my gallery window.
-
http://www.w3schools.com/css/pr_background-position.asp
-
Sorry,sorry. I think i am too stupid. :oops:
Do I have to define a css class?
I can't get it.
I have two differnet sizes of my images. One sort is 600x400 and the second sort is 400x600.
So i want to have the image loader always in the middle of my image table.
Will this work with CSS?
-
OK.
replace <td background="{template_url}/images/newloader1.gif">
with:<td style="background: url({template_url}/images/newloader1.gif) no-repeat; background-position: center center">
-
Veno,
I just tried that, and it did not work
-
Test this
<td style="background-image:url({template_url}/images/newloader1.gif); background-position: center center; background-repeat: no-repeat;">
-
@ v@no
Thank you very much for your great explanation. Now everything is working superb :mrgreen:
-
@JensF:
I think your method is the correct one, cause when used background: type as in what I posted, there must be 3/4 parameters, not two.
http://www.w3schools.com/css/css_background.asp
<td style="background: url({template_url}/images/newloader1.gif) no-repeat center center;">
-
can u think of any reason either jensFs or venos version wil work for me?
only one the works so far for me is drhtm's
8O
-
In my Galery it don't works too. Don't know why, tested all Versions of code mentioned above but newloader.gif isn't shown :?
-
You do something wrong.
-
This is my jpg.html
<table border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td style="background: url({template_url}/images/newloader.gif) no-repeat center center;">
<table border="0" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
<tr>
<td align="center" valign="middle" background="{media_src}">
<img src="{template_url}/images/spacer.gif" border="0" alt="{image_name}"{width_height}>
</td>
</tr>
</table>
</td>
</tr>
</table>
The loader is only displayed if I use the line of code mentioned in the first post...
<td background="{template_url}/images/newloader.gif">
instead of
<td style="background: url({template_url}/images/newloader.gif) no-repeat center center;">
...but then the image isn't centered in the middle. I hoped that its centered with your code Vano. Can you please help here?
-
its because you added both versions...[qcode]<table border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td style="background: url({template_url}/images/newloader.gif) no-repeat center center;">
<table border="0" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
<tr>
<td align="center" valign="middle" background="{media_src}">
<img src="{template_url}/images/spacer.gif" border="0" alt="{image_name}"{width_height}>
</td>
</tr>
</table>
</td>
</tr>
</table>[/qcode]remove one of them.
-
Yes, but when I remove this line
<td align="center" valign="middle" background="{media_src}">
there are no pictures displayed anymore :roll:
-
and have you tryed use style="background: url({template_url}/images/newloader.gif) no-repeat center center;" instead of background="{media_src}" ?
-
How do you mean this, can you please copy my code from above with the changes you think will work. I'm a little bit confuse at the moment.
-
Vano are you able to answer ? :wink:
-
Sorry, I think it was too early for me...
try this code:<div style="background: url({template_url}/images/loading3.gif) no-repeat center center;">
<table border="0" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
<td align="center" valign="middle" background="{media_src}">
<img src="{template_url}/images/spacer.gif" border="0" alt="{image_name}"{width_height}>
</td>
</table>
</div>
-
hmmmm i have an idea :!:
what with stretch {thumbnail} as background :twisted:
-
actually this would be a very nice idea
the Thumb is still loaded and very small
if it would be stretched in the details, before original image is loading, it has a nice blur effect (stretched=bad quality of low resolution)
and the bigger image will cover the stretched Thumb
for the visitor it has the effect, that the image seems to become better from low res. to high res.
-
i did this but it is comin on top of the jpg image u know why how can i fix this :( i really want this :(
-
Hello,
greate think...
Greez Darkness :mrgreen:
-
i did this but it is comin on top of the jpg image u know why how can i fix this :( i really want this :(
can anyone tell me why its doing that pleasE ?
-
Hi,
or you test this code. I use this in my page
a little bit different to v@nos
<table border="0" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" style="background: url({template_url}/images/loading3.gif) no-repeat center center;">
<td align="center" valign="middle" background="{media_src}">
<img src="{template_url}/images/spacer.gif" border="0" alt="{image_name}"{width_height}>
</td>
</table>
:wink:
cu
Kurt
-
one image is still showin on top well i just use a transparent image of 1px x 1px so the one which is visible on top its kind of invisible now :P so its all good thanks a lot for all your help
-
Great Mod, thanks!
Tip: Here you can generate your own loaders: http://www.ajaxload.info/ (http://www.ajaxload.info/)
-
hellloo
i tried to use that mod.. it didnt worked for me:(,.. i tried to used it with mp3 files.. so i edited the mp3.html file .. mustn it works too with mp3 files?
when i try to uload a new mp3 file. no newloader3.gif appears?
greetings manuel
-
Hi!
On my homepage it works, but only for uploaded images (to server)
When I upload images from URL, then it doesn't work, because <td background="URL"> isn't working!
Can you help me?
PS: Sorry for my bad English :roll: