It was old version, these calls nomore exists.
I finally adapted it to Q3 2008, using something like
var expanded = false;
var panelDomElement = -same as previous sample-;
var slide;
var slider-same as previous sample-;
var timeout;
var timerlength = 3000; // how long before the menu should time-out!
function ShowMenu() {
PreventTimeOut();
if (!expanded) {
SetUpAnimation(); // call the function that will make the menu appear
expanded = true;
}
}
function PreventTimeOut(panelbar, args) {
window.clearTimeout(timeout);
}
function HideMenu(panelbar, args) {
timeout = window.setTimeout(
function() {
slide.collapse();
expanded = false;
}, timerlength);
}
function SetUpAnimation() {
panelDomElement.style.position = "relative";
if (!slide) {
var expandAnimation = new Telerik.Web.UI.AnimationSettings({});
var collapseAnimation = new Telerik.Web.UI.AnimationSettings({});
slide = new Telerik.Web.UI.Slide(panelDomElement, expandAnimation, collapseAnimation, false);
slide.initialize();
slide.set_direction(Telerik.Web.UI.SlideDirection.Right);
}
slider.onclick = function() {
panelDomElement.parentNode.style.visibility = "visible";
panelDomElement.parentNode.style.display = "block";
if (!expanded) {
slide.expand();
}
else {
slide.collapse();
}
expanded = !expanded;
return false;
}
}
Every improvment welcome.
CS