CSS3 PIE Forums
http://css3pie.com/forum/

Using PIE.js on more than one element isn't working...
http://css3pie.com/forum/viewtopic.php?f=6&t=2016
Page 1 of 1

Author:  barkins [ Mon Mar 18, 2013 10:57 am ]
Post subject:  Using PIE.js on more than one element isn't working...

I'm using the PIE.js alternative and I was able to get it to work on one element, adding a drop shadow to the wrapper on my site.

However, I would also like it to add another drop shadow on a different element on the site, but that no longer works. It appears, it only works once. How do go about setting up multiple instances of PIE on my site? See below for the code I currently have...

Code:
//THIS WORK ON THE WRAPPER

     $(function() {
      if (window.PIE) {
         $('#wrapper').each(function() {
            PIE.attach(this);
         });   
         
      }
   });

//SECOND FUNCTION FOR ANOTHER ID, DOES NOT WORK

   $(function() {
      if (window.PIE) {
         $('#menu').each(function() {
            PIE.attach(this);
         });   
         
      }
   });

Page 1 of 1 All times are UTC - 7 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/