Forums
View unanswered posts | View active topics It is currently Fri Aug 22, 2014 9:43 am



Reply to topic  [ 1 post ] 
 Using PIE.js on more than one element isn't working... 
Author Message

Joined: Mon Mar 18, 2013 10:53 am
Posts: 1
Post 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);
         });   
         
      }
   });


Mon Mar 18, 2013 10:57 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.