script - /* * Invision File Manager * Admin Javascript...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
/* * Invision File Manager * Admin Javascript Library * Copyright (c) 2003 Invision Power Services * ------------------------------------- * You may not remove the copyright or * redistribute the script in any form * * Authors: Stephen Ball <[email protected]> * * Last Modified: 22nd February 2003 * */ // A function to disable word wrapping function wrap() { // Check that the user is using IE var browser = navigator.appName; if (browser.indexOf("Microsoft") < 0) { alert ("Sorry this feature requires Microsoft Internet Explorer"); return false; } var form = window.document.template; if (form.fdata.wrap == "off") { form.fdata.wrap = "soft"; form.fdata.rows = 25; form.wrapping.value = "Disable Wrapping"; } else { form.fdata.wrap = "off"; form.fdata.rows = 24; form.wrapping.value = "Enable Wrapping"; } return true; } // A function to update the RGB colour sample function update_rgb(type) { if (type == 1) { // Update the "free" space colour if (is_RGB(window.document.settings.free_red) == false || is_RGB(window.document.settings.free_green) == false || is_RGB(window.document.settings.free_blue) == false) { // One of the fields doesn't contain a valid number so return return; } var red = window.document.settings.free_red.value; var green = window.document.settings.free_green.value;
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
var blue = window.document.settings.free_blue.value; window.document.settings.free_rgb.style.backgroundColor = 'rgb(' + red + ',' + green + ',' + blue + ')'; } else { // Update the "used" space colour if (is_RGB(window.document.settings.used_red) == false || is_RGB(window.document.settings.used_green) == false || is_RGB(window.document.settings.used_blue) == false) { // One of the fields doesn't contain a valid number so return
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/18/2011 for the course CSE 099 taught by Professor Hawkins during the Spring '11 term at N. Arizona.

Page1 / 6

script - /* * Invision File Manager * Admin Javascript...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online