This is a migrated thread and some comments may be shown as answers.

Modify the default javascript

1 Answer 44 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Feng Xiao
Top achievements
Rank 1
Feng Xiao asked on 14 Aug 2009, 02:39 PM
I have a set of RadRotator items that has PNG images and when I use "Autoadvance" mode it still got the "Opacity=1" set when the first iteration finishes. This has caused the page unusable in IE. (Everyone knows that IE displays a dark background when PNG and Opacity setting are combined... :-( Firefox is perfect in this case)

I digged around and found that the script in "AnimationScript.js" towards the end of the file in "jMove.Prototye" there is a line that sets this opacity =1 and if we can some how make it to NOT to set it we should be fine.

This script is considered part of the framework I assume, but is there any way we can modify it or override it without having to ask telerik to fix it in the next release? 

Many thanks in advance,

Feng

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 17 Aug 2009, 12:56 PM
Hi Feng,

Yes, you can manually override the function by placing the following script on your page. Just make sure that the script is placed after the RadScriptManager / asp:scriptmanager declaration:
<script type="text/javascript"
    Telerik.Web.UI.Animations.jMove.prototype._animationEnded = function() 
    { 
     //copy the function's code here and modify it if needed 
    } 
</script> 


Greetings,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Rotator
Asked by
Feng Xiao
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or