Modify the default javascript

2 posts, 0 answers
  1. Feng Xiao
    Feng Xiao avatar
    1 posts
    Member since:
    Jul 2009

    Posted 14 Aug 2009 Link to this post

    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
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 17 Aug 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top