PHP Classes

File: js.js

Recommend this page to a friend!
  Classes of Corey Hart  >  CSS Compressor  >  js.js  >  Download  
File: js.js
Role: Example script
Content type: text/plain
Description: Javascript for display page
Class: CSS Compressor
Compact the size of CSS definitions
Author: By
Last change:
Date: 12 years ago
Size: 346 bytes


Class file image Download
var checkbox1, checkbox2;

function forceOrder( el ) {
    if ( checkbox1 === undefined ){
        checkbox1 = document.getElementById('orderimportant1');
        checkbox2 = document.getElementById('orderimportant2');

    checkbox1.checked = !el.checked;
    checkbox2.checked = !el.checked;
    checkbox1.disabled = el.checked;
    checkbox2.disabled = el.checked;

For more information send a message to info at phpclasses dot org.