Author Topic: Loader for Images  (Read 35891 times)

0 Members and 1 Guest are viewing this topic.

drhtm

  • Guest
Loader for Images
« 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:

Code: [Select]
<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!
« Last Edit: July 15, 2006, 04:57:30 PM by kai »

Offline zaisk

  • Jr. Member
  • **
  • Posts: 93
    • View Profile
Re: Loader for Images
« Reply #1 on: November 19, 2005, 11:02:48 AM »
How to make preloader for swf files ???? Please help

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Loader for Images
« Reply #2 on: November 19, 2005, 11:08:35 AM »
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:

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Loader for Images
« Reply #3 on: November 19, 2005, 07:18:59 PM »
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.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline bibabobu

  • Sr. Member
  • ****
  • Posts: 311
  • Technische und künstlerische Gravuren
    • View Profile
    • Technische und künstlerische Gravuren für die gesamte Metall-, Kunststoff- und Papierindustrie
Re: Loader for Images
« Reply #4 on: November 20, 2005, 10:45:50 PM »
@ 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.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Loader for Images
« Reply #5 on: November 20, 2005, 11:00:30 PM »
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline bibabobu

  • Sr. Member
  • ****
  • Posts: 311
  • Technische und künstlerische Gravuren
    • View Profile
    • Technische und künstlerische Gravuren für die gesamte Metall-, Kunststoff- und Papierindustrie
Re: Loader for Images
« Reply #6 on: November 20, 2005, 11:36:07 PM »
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?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Loader for Images
« Reply #7 on: November 21, 2005, 06:37:37 AM »
OK.

replace
Code: [Select]
<td background="{template_url}/images/newloader1.gif"> with:
Code: [Select]
<td style="background: url({template_url}/images/newloader1.gif) no-repeat; background-position: center center">
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline impss

  • Sr. Member
  • ****
  • Posts: 382
    • View Profile
    • Cusstom.net
Re: Loader for Images
« Reply #8 on: November 21, 2005, 03:48:23 PM »
Veno,

I just tried that, and it did not work

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: Loader for Images
« Reply #9 on: November 21, 2005, 10:51:29 PM »
Test this

Quote
<td style="background-image:url({template_url}/images/newloader1.gif); background-position: center center; background-repeat: no-repeat;">
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline bibabobu

  • Sr. Member
  • ****
  • Posts: 311
  • Technische und künstlerische Gravuren
    • View Profile
    • Technische und künstlerische Gravuren für die gesamte Metall-, Kunststoff- und Papierindustrie
Re: Loader for Images
« Reply #10 on: November 21, 2005, 10:58:56 PM »
@ v@no

Thank you very much for your great explanation. Now everything is working superb  :mrgreen:

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Loader for Images
« Reply #11 on: November 22, 2005, 01:39:43 AM »
@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

Code: [Select]
<td style="background: url({template_url}/images/newloader1.gif) no-repeat center center;">
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline impss

  • Sr. Member
  • ****
  • Posts: 382
    • View Profile
    • Cusstom.net
Re: Loader for Images
« Reply #12 on: November 22, 2005, 02:53:33 AM »
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

Offline |Rene|

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Bauwagencrew
Re: Loader for Images
« Reply #13 on: March 07, 2006, 10:19:19 PM »
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  :?


Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Loader for Images
« Reply #14 on: March 08, 2006, 06:14:09 AM »
You do something wrong.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)