Jump to content
php.lv forumi
  • 0

Magic Thumb™


prieditis

Question

Magic Thumb™ is a fantastic way to enlarge thumnbail images using a JavaScript lightbox effect.

One reason why Magic Thumb™ is popular is that the user stays on the same page. You don't need to load a new page or use popup windows. It just loads immediately on click.

 

The user experience is rich - people like the web 2.0 lightbox enlarge effect. Users appreciate that it is immediate - the large image enlarges on click without waiting for it to download. This gives a better experience than waiting (as with an AJAX lightbox that requests images on demand).

 

You can display an unlimited number of images on a page. Large images have large file sizes, so be sure to compress your images with a good ratio of size to quality (aim for a JPEG filesize of 30-70kb). You can use JPEG, PNG or GIF.

 

Two images are required for Magic Thumb™ - one large image (about 450-550 pixels height) and one thumbnail image (about 80-120 pixels height).

 

Varbūt kādam noder priekš e-commerce (osCommerce, CreLoaded vai ZenCart u.c.)

 

Links http://www.magictoolbox.com/magicthumb/

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

var ņemt un lietot

<script type="text/javascript">
window.onload = function() {
var a = ["bilde1.jpg", "bilde2.jpg", "bilde3.jpg"];
for (var i = 0; i < a.length; i++) new Image().src = a[i];
}
</script>

bilžu preload ir tiešām that simple, ka tāpēc vien nevajag ņemt citu bilžu palielinātāju ;)

new Image().src = "bilde.jpg";

notestēts uz ie6,ie7,ie8,ff,opera,safari,chrome

 

vienīgi piemēra vnkāršības dēļ tika izmantots pats vnkāršākais event handlera piešķiršanas veids. production vidē izmanto advancētāku metodi

Link to comment
Share on other sites

  • 0

hehe, i know ;)

taču arrayiem standartā lietoju garāko pierakstu, atstājot for (var i in o) tikai objekta propertiju apstaigāšanai

ja ir arī kkādas 3rd pārtī bibliotēkas, tās mēdz apkarināt Array prototipu ar visādiem saviem propertijiem un metodēm un tad for (var i in a) fails miserably :D:D:D

 

es jau cenšos rakstīt kā īsāk, bet увы, ne vnm tā var...

Edited by 2easy
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...