Skip to main content

Microsoft Silverlight

Answered Question HTML overlaps AnimationRSS Feed

(0)

modikumar
modikumar

Member

Member

0 points

7 Posts

HTML overlaps Animation


Hi,

  I am developing an silverlight application. The app displays ads towards one corner. For displaying the ads we are positioning the ad div (which contains an IFRAME), setting its z-order to 1 and making the silverlight app windowless and background to be transparent.

   Everything works fine, the silverlight app is seen the ads are visible, but the animations in the silverlight app goes behind the HTML.

   How can i solve this issue. I want the ad div to seen and the animation to be visible over the ad div as well.

 

From Silverlight

shamrat231
shamrat231

Contributor

Contributor

4667 points

595 Posts

Re: HTML overlaps Animation

Write a css for the div section and set the opacity to 70% in that CSS so u can see both at the same.

Look at this link

http://www.mandarindesign.com/opacity.html

and if this post helps you then please 'Mark as Answer' - many thanks

Sharker Khaleed Mahmud
Software Developer
(MCP,MCTS,MCPD[web])

This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.

 

 

Dhaka, Bangladesh
LinkedIn :: SL Profile :: Blog

Amanda Wang - MSFT
Amanda W...

All-Star

All-Star

17241 points

1,466 Posts

Answered Question

Re: HTML overlaps Animation

 Hi,

modikumar:
Everything works fine, the silverlight app is seen the ads are visible, but the animations in the silverlight app goes behind the HTML.
 

You can try to adjust the z-index property of the div containing the Silverlight Embed control  to make it display front. for example: set its z-index: 999.


 

Amanda Wang
Microsoft Online Community Support

Please remember to mark the replies as answers if they help and unmark them if they provide no help.

modikumar
modikumar

Member

Member

0 points

7 Posts

Re: Re: HTML overlaps Animation

Hi Amanda,

 I tried doing that, the output remains the same. I still have the animations behind the div. What i did was, changed the div's opacity when the animations occured and reverted back to the original opacity when the animations stopped. Its a very crude hack that i've found till now. But that dosnt interest my client. Who wants the animations over the div, and also the ad div to be visible.

The design is very simple, i have a grid with images placed in rows and columns and inbetween there is a place holder for the ads i.e a set of 4rows and 4 columns is left blank, this is where am positioning the ad div. I have to be using the div, as these ad banners are already custom built by the client and they dont want to change their ad engine.

Please help me solve this issue. Appreciate your help!

regards

modi 

 

 

 

   

modikumar
modikumar

Member

Member

0 points

7 Posts

Re: Re: Re: HTML overlaps Animation

Hey Amanda,

   Thanks a zillion....I cracked this, i changed the z-index of my ad div to 0 and change the z-index of the silverlight host div to 999....Its working like a charm.

 

regard

modi

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities