You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Facing issue when using Overlay effect for a link! Created Sep 21, 2009

This thread is solved

Views: 283     Replies: 2     Last reply Sep 22, 2009  
You must login first before you can use this feature

sureshp

Posts: 4

Registered:
Sep 16, 2009

Facing issue when using Overlay effect for a link!

Posted: Sep 21, 2009

Dear ALL

Im facing the following issue when i try to use the overlay effect for a link.

Error is: uncaught exception: background-image CSS property not set for overlay

The below is the code i have used.


<div id="special_image_links">
 <div id="view_special_image">
  <a href="javascript:;" onclick="remove_special_image('319', 
  '248')">x</a>
  <a href="javascript:;" rel="special_image_div">071520_5.jpg</a>
 </div>

 <div class="apple_overlay black" id="special_image_div">
  <img src="../products/248/071520_5.jpg">
 </div>
</div>
<script>
 $(function() {
	$("#view_special_image a[rel]").overlay({effect: 'apple'});
 });
</script>

I have included the jquery tools plugin at the top of the page.

Can anyone can help me to find out where i am wrong with it?

Thanks in advance!

Regards,
Suresh P

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1656

Registered:
Nov 16, 2007

» Facing issue when using Overlay effect for a link!

Posted: Sep 22, 2009

Reply to: Facing issue when using Overlay effect for a link!, from sureshp
first make sure that you are definitely having a background image CSS property for your overlay root element. then if you are using safari try placing your background-image definition inline to your overlay with style- attribute. there is a jQuery bug that I have mentioned here:

http://flowplayer.org/tools/overlay.html#apple

sureshp

Posts: 4

Registered:
Sep 16, 2009

» » Facing issue when using Overlay effect for a link!

Posted: Sep 22, 2009

Reply to: » Facing issue when using Overlay effect for a link!, from tipiirai
Yes - You're right,

Thanks for your help!

Now, its get fixed.

Regards,
Suresh P