Jquery eye candy - Drop shadow plugin not working

pvinayv@gmail.com - June 3, 2009 - 10:18
Project:jQuery Eye Candy
Version:6.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi,
I need to drop a shadow for the ddl block on my home page and am using Jquery eye candy. I am not able to understand how to make it work as I am adding the code as was shown in the demo page with the id for that block. The code am adding is $("#block-ddblock-1").dropShadow(); Even after this am not getting the desired result. Please let me know if am wrong some where or need a patch for the same.

http://www.network8events.com/dypsa/ this is the home page where i want to drop the shadow.

Thanks.

#1

JaredAM - August 27, 2009 - 01:31

What exactly are you trying to shadow? The block or the images in the block?

The dropshadow plugin only shadows those things with a background color. You could set the background color for #block-ddblock-1 to red, yellow, black or whatever, but not white.

#2

pvinayv@gmail.com - September 15, 2009 - 11:25
Status:active» closed

#3

Peel - September 15, 2009 - 22:39

I'm having the same problem of dropshadows not showing up on my page. I'm using the following code in the configuration screen:
$('.quotes-quote p').dropShadow({left: 2, top: 2, opacity: 0.5, blur: 4});

My intent is to give a shadow to the text with the following html:
<div class="quotes-quote"><p> Some text with a shadow"</p></div>

I've checked the source from the browser and jquery.dropshadow.min.js is loaded and there are no errors on the page.

#4

Peel - September 15, 2009 - 23:47
Priority:critical» normal
Status:closed» active

#5

Peel - September 16, 2009 - 03:10

After downloading and examining some sites that had it working, I figured it out on my own.

Here's the mistake I made, in case anyone else is having this problem. I mistakenly used this function call:

$(document).ready(function()

When I should have used this:

window.onload = function() 

That made all the difference.

 
 

Drupal is a registered trademark of Dries Buytaert.