Jun
03
2009

Mootools swap image 1.1

Correction for the swap images class:
Change the preload images at line 33


imgTemp[i] = new Element('img', {'alt': el.getProperty('alt')}).set('src', newSrc);

with


imgTemp[i] = new Asset.image(newSrc, {'alt':el.getProperty('alt'),'id':el.getProperty('id')});
download
Size: 98.12 KB
Hits : 440

Share and Enjoy:
  • Facebook
  • del.icio.us
  • Twitter
  • Google Bookmarks
  • Digg
  • Technorati
  • MySpace
  • Live
  • BlinkList
  • Add to favorites
  • email
  • RSS
  • Mixx
  • Bitacoras.com
  • blogmarks
  • Blogosphere News
  • Blogplay
  • connotea
  • Current
  • Diggita
  • Diigo
  • DZone
  • eKudos
  • Internetmedia
  • LinkedIn
  • MSN Reporter
  • Reddit
  • Scoopeo
  • Segnalo
  • Slashdot
  • Socialogs
  • Sphinn
Written by Davide in: javascript,mootools | Tags: , , ,

2 Comments »

  • I have noticed that any other mootools effects you want to use will not work!

    Comment | October 20, 2009
  • Davide

    mhmm I don’t have notice of this … I use the class in lot of my sytes and never have problem with other script … can You have an example page where other script don’t work ?
    Are You sure that have the last version of the class ?

    thanks Davide

    Comment | October 26, 2009

RSS feed for comments on this post. TrackBack URL

Leave a comment

Theme: TheBuckmaker.com Magazine Style Templates