SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jun 2005
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to use jQuery Drop shadow? example please?

    Well, shoot, I cant figure out how to use the jquery and the dropshadow pluggin to do drop shadows on images.

    I'm doing this:
    Code:
    <script type="text/javascript" src="/css-js/jquery.js"></script>
        <script type="text/javascript" src="/css-js/jquery.dropshadow.js"></script>
     
    <script type="text/javascript"> 
      $("img").dropShadow({left: 12, top: 12, blur: 1, color: "black"});
     </script>
    and my img tag looks like
    Code:
    <img class="dropShadow"  src="/img/Livingroom.JPG" />
    The pic shows up, but no shadow. Can anyone post a real basic example of what needs to happen in theis script?

    thanks
    j

  2. #2
    SitePoint Enthusiast
    Join Date
    Jul 2010
    Location
    Kingdom of Saudi Arabia
    Posts
    78
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe that plugin comes with a dropshadow CSS as well which you didn't include...


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •