Search


Change Language


Ajax Downloads Home arrow Other Ajax Scripts
Free AJAX Scripts by Freeajaxscripts.net
DHTML XP style left blue panel - AJAX Script

This scripts creates DHTML panels which looks to the ones you have in Microsoft Windows XP. All you have to do is to use plain HTML to define the content of the panels, and then call a javascript function to initialize it.

Configuration:

You use plain HTML to define the content of these panes. Example:
<div id="dhtmlgoodies_xpPane">
  <div class="dhtmlgoodies_panel">
    <div>
      <!-- Start content of pane -->
      Content<br>
      Content<br>
      Content<br>
      Content<br>
      Content<br>
      Content<br>
      Content<br>
      Content<br>
      Content<br>
      Content<br>
      Content
      <!-- End content -->
    </div>  
  </div>
  <div class="dhtmlgoodies_panel">
    <div>
      <!-- Start content of pane -->
      Content<br>
      Content<br>
      Content<br>
      Content      
      <!-- End content -->
    </div>    
  </div>
  <div class="dhtmlgoodies_panel">
    <div>
      <!-- Start content of pane -->
      Content<br>
      Content<br>
      Content<br>
      Content      
      <!-- End content -->
    </div>    
  </div>
</div>

<div id="dhtmlgoodies_xpPane"> represents the blue background. You use one <div class="dhtmlgoodies_panel"> for each of your panels. Put the content of these panels between the comments <!-- Start content of pane --> and <!-- End content -->

Below this HTML, call the function "initDhtmlgoodies_xpPane" to initialize the panes. Example:
<script type="text/javascript">
/*
Arguments to function
1) Array of titles
2) Array indicating initial state of panels(true = expanded, false = not expanded )
3) Array of cookie names used to remember state of panels
*/
initDhtmlgoodies_xpPane(Array('File and Folder Tasks','Other places','Details'),Array(true,true,false),Array('pane1','pane2','pane3'));
</script>

This function takes three arrays as arguments. The first array contains the title of your panels. The second array specifies whether panels should be initially expanded or not.

The third array is the name of some cookies if you want the script to remember panel states, i.e. expanded or collapsed. This cookie value will override the previous array. If you don't want to use cookies, just replace Array('pane1','pane2','pane3') with an empty array(Array().

You also have two variables you can use to control the slide down/up effect. These are:
var xpPanel_slideActive = true; // Slide down/up active?
var xpPanel_slideSpeed = 15; // Speed of slide

xpPanel_slideActive is used to specify if sliding is enabled or not. xpPanel_slideSpeed is used to control slide speed. Higher value = faster.




Average Visitor Rating: 4.58 (Out of 5)
Number of ratings: 12

Select your rating
Excellent  Good  Average  Fair  Poor 
Script Information
Website: http://www.dhtmlgoodies.com/index.html?whichScript=xp_info_pane
Demo: Demo
Download: Download
Average Visitor Rating: 4.58 (Out of 5)
Number of ratings: 12
Hits: 4504
Added: 2007-01-14 18:00:51
Last updated: 2007-03-10 03:28:38

Reviews (1)
firefox?
Reviewed by anonymous, 2007-06-02

Very nice script, but it seems to work only on IE for me. In firefox the little arrows are missing, and once I expand the list I cannot close it again

Results 1 - 1 of 1

Buy Anything On eBay Ringtones Refinance Computer Parts Eugene Grin
There are 220 free ajax scripts and 31 categories in our directory





Lost Password?
No account yet? Register
We have 13 guests online