|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /home/queenjbs/www/FusionChart/Code/PHP/assets/ui/js/ |
Upload File : |
d=document;w=window;m=Math;
l={};l.gt=function(id){return d.getElementById(id);};l.op=function(ur,nm,pr){w.open(ur,nm,pr||'menubar=0,statusbar=0,width=640,height=480,scrollbars=yes'); return false;};
g={};g.cn=function(ob,cn){l.gt(ob).className=cn;};g.sh=function(obs,obh){g.cn(obs,'visible');if(obh) g.cn(obh,'hidden');};
if (typeof jQuery != 'undefined') {
$(document).ready(function()
{
//hide the all of the element with class msg_body
$(".msg_body").hide();
//toggle the componenet with class msg_body
$(".msg_handler").toggle(
function() { $(this).html($(this).html().replace(/\u00ab\s|\u00bb[\s]?/i, "« ")).next(".msg_body").show(); },
function() { $(this).html($(this).html().replace(/\u00ab\s|\u00bb[\s]?/i, "» ")).next(".msg_body").hide(); }
);
// slide in out
$(".msg_handler_slider").toggle(
function() { $(this).html($(this).html().replace(/\u00ab\s|\u00bb[\s]?/i, "« ")).next(".msg_body").slideDown(600); },
function() { $(this).html($(this).html().replace(/\u00ab\s|\u00bb[\s]?/i, "» ")).next(".msg_body").slideUp(600); }
);
$(".msg_handler_open_slider").toggle(
function() { $(this).html($(this).html().replace(/\u00ab\s|\u00bb[\s]?/i, "« ")).next(".msg_body_open").slideDown(600); },
function() { $(this).html($(this).html().replace(/\u00ab\s|\u00bb[\s]?/i, "» ")).next(".msg_body_open").slideUp(600); }
);
$(".msg_handler_open_slider").toggle(
function() { $(this).html($(this).html().replace(/\u00ab\s|\u00bb[\s]?/i, "» ")).next(".msg_body_open").slideUp(600); } ,
function() { $(this).html($(this).html().replace(/\u00ab\s|\u00bb[\s]?/i, "« ")).next(".msg_body_open").slideDown(600); }
);
$(".msg_handler_open").toggle(
function() { $(this).find(".hide").hide() ; $(this).find(".show").show() ; $(this).next(".msg_body_open").hide(); } ,
function() { $(this).find(".hide").show() ; $(this).find(".show").hide() ; $(this).next(".msg_body_open").show(); }
);
});
// code for tabs
$(document).ready(function() {
//Default Action
$(".tab_content").hide(); //Hide all content
$("ul.tabs").each ( function(){ $(this).children("li:first").addClass("active").show(); } ) ;
$(".tab_container").each ( function(){ $(this).children(".tab_content:first").show(); } ) ;
//On Click Event
$("ul.tabs li").click(function() {
$(this).siblings(".active").removeClass("active"); //Remove any "active" class
$(this).addClass("active"); //Add "active" class to selected tab
$(this).parent().siblings(".tab_container").children(".tab_content").hide(); //Hide all tab content
var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
$(activeTab).fadeIn(); //Fade in the active content
return false;
});
});
}