PHP Classes
elePHPant
Icontem

File: funcs.js

Recommend this page to a friend!
  Classes of Mohammad Keramatifar  >  PHP TreeView  >  funcs.js  >  Download  
File: funcs.js
Role: Auxiliary data
Content type: text/plain
Description: Script File Fro Controling Cliend Side PArt
Class: PHP TreeView
Display a collapsible tree from a MySQL query
Author: By
Last change:
Date: 5 years ago
Size: 614 bytes
 

Contents

Class file image Download
function expandNode(id)
{
    if ($("#" + id + " + ul").css('display') == 'none') 
    {
      $("#" + id).css("background-position", "-72px 0px");
    }
    else
    {
        $("#" + id).css("background-position", "-54px 0px");
    }
   // $("#" + id + " + ul").slideToggle("slow",
    $("#" + id + " + ul").slideToggle("slow");
    //function(){$("#" + id + " + ul").css("background-image", "rtl.gif"); $("#" + id + " + ul").css("background-position", "-90px 0px"); }
    $("#" + id + " + ul li").css("background-image", "rtl.gif"); 
    $("#" + id + " + ul li").css("background-position", "-90px 0px"); 
    
}