Drop Shadow Plugin (part 2)

Drop Shadow Plugin (part 2)


I have just uploaded a new and improved version of the drop shadow
plugin. Here is the address again for the sample page, with a link to
the code:
http://eyebulb.com/public/dropshadow.htm
There are a number of small fixes, like excuding shadows from re-
shadowing when you apply the method multiple times. However, the big
news is that it now accepts a parameter object and you can have a lot
more fun with it. The parameters are: left, top, blur, opacity, color,
and swap. Read the comments in the script for more info.
I juiced up the routine so that if you specify a larger blur, it won't
be too terribly jaggy. That means it also generates more layer
elements, so be careful and don't get carried away! The sample page
has a bunch of shadows, so that should give you an idea of the
performance.
I also added a sort of trick parameter, called swap. What this does is
put the shadow on top of the original element. Why would you do that?
Well, if you look at the title on the sample page, and try toggling
the shadows on and off (there's a button for that now), you will see
that it creates a sort of faux-embossed look. Hey, it's just a gimick.
But there may be other uses, if you're creative.
Again, comments and criticism are welcome.