Author Topic: Loader for Images  (Read 35844 times)

0 Members and 1 Guest are viewing this topic.

Offline |Rene|

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Bauwagencrew
Re: Loader for Images
« Reply #15 on: March 10, 2006, 03:25:21 PM »
This is my jpg.html

Code: [Select]
<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...

Code: [Select]
<td background="{template_url}/images/newloader.gif">
 instead of

 
Code: [Select]
<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?

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 #16 on: March 10, 2006, 03:38:17 PM »
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.
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 |Rene|

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Bauwagencrew
Re: Loader for Images
« Reply #17 on: March 10, 2006, 03:44:18 PM »
Yes, but when I remove this line

Code: [Select]
<td align="center" valign="middle" background="{media_src}">
there are no pictures displayed anymore  :roll:

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 #18 on: March 10, 2006, 03:50:04 PM »
and have you tryed use style="background: url({template_url}/images/newloader.gif) no-repeat center center;" instead of background="{media_src}" ?
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 |Rene|

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

Offline |Rene|

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Bauwagencrew
Re: Loader for Images
« Reply #20 on: March 18, 2006, 09:03:48 PM »
Vano are you able to answer ?  :wink:

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 #21 on: March 18, 2006, 10:38:37 PM »
Sorry, I think it was too early for me...
try this code:
Code: [Select]
<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>
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 Zyga

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
Re: Loader for Images
« Reply #22 on: June 15, 2006, 12:24:23 PM »
hmmmm i have an idea  :!:

what with stretch {thumbnail} as background  :twisted:

Offline tdkpaul

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Re: Loader for Images
« Reply #23 on: July 30, 2006, 05:48:45 PM »
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.
« Last Edit: July 30, 2006, 06:24:12 PM by tdkpaul »

Offline __G__

  • Sr. Member
  • ****
  • Posts: 286
    • View Profile
Re: Loader for Images
« Reply #24 on: October 30, 2006, 10:58:43 AM »
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 :(

Offline Darkness2001

  • Full Member
  • ***
  • Posts: 151
    • View Profile
    • photo-galerie-online
Re: Loader for Images
« Reply #25 on: October 30, 2006, 11:55:10 AM »
Hello,

greate think...

Greez Darkness  :mrgreen:

Offline __G__

  • Sr. Member
  • ****
  • Posts: 286
    • View Profile
Re: Loader for Images
« Reply #26 on: October 31, 2006, 12:14:43 AM »
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 ?

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: Loader for Images
« Reply #27 on: October 31, 2006, 06:16:50 AM »
Hi,

or you test this code. I use this in my page
a little bit different to v@nos

Code: [Select]
  <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

Offline __G__

  • Sr. Member
  • ****
  • Posts: 286
    • View Profile
Re: Loader for Images
« Reply #28 on: November 01, 2006, 06:52:00 PM »
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

Offline Egly

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Re: Loader for Images
« Reply #29 on: January 10, 2007, 01:19:26 AM »
Great Mod, thanks!

Tip: Here you can generate your own loaders: http://www.ajaxload.info/