otra cosa como puedo agregarle especie de un tab arriba que una parte salgan los botones y el otro tab , salga para edit el ip , para no tener que estar entrando a modifcar el ip dentro del script
Código HTML:
[CODE] <html> <head> <title>Web X10der</title> <!-- version 2.0a 9/6/2010 --> <script type="text/JavaScript" language="JavaScript"> <!-- // XXX: This script is known not to work with the Opera Mini mobile browser. var version = "2.0"; // Some constants to make the code a little more readable. var NODIM = 0, DIM = 1, PLC = 0, RF = 1; // ********************** START EDITING HERE *************************** // Host name or IP address of the machine running the X10 Commander server // You MUST edit this. var server = "172.16.0.3"; // You MUST edit the devices array to match your setup. // // Devices array contains 4 entries per device. // 1. Device address (house code & unit number) // 2. Device name to display // 3. Device dimability - NODIM or DIM // 4. X10 transmission method - PLC (power line) or RF (radio frequency) var devices = new Array( "E1", "ALL LIGHTS", NODIM, PLC, "E2", "DINNER ROOM", DIM, PLC, "E3", "KITCHEN", NODIM, PLC, "E4", "OFFICE", NODIM, PLC, "E5", "LIGHT PATIO", NODIM, PLC, "E6", "HALL", NODIM, PLC, "E7", "DINNER TABLE LAMP", DIM, PLC, "E8", "STAIRS", NODIM, PLC, "E9", "BATHORROM", NODIM, PLC, "E10", "PORTAL", NODIM, PLC, "E11", "MOTIF WALL", NODIM, PLC, "E12", "FAN PATIO", NODIM, PLC, "E", "NADA", NODIM, PLC, "I2", "ROOM MASTER", NODIM, PLC, "I3", "SMALL ROOM", NODIM, PLC, "I4", "SHOWER ROOM", NODIM, PLC, "I5", "CLOSET MASTER", NODIM, PLC, "I6", "BATH MASTER", NODIM, PLC, "I7", "BALCONY", NODIM, PLC, // Devices array ends with a special token so we do not have to worry about // that last trailing comma when items get rearranged. Do not change it. "END" ); // Some global flags to customize script behavior. // You don't have to change them unless you don't like the standard behavior. // // Personalize the page heading any way you like by changing myHeading (nombre de la pagina) var myHeading = "Home Control"; // Set showServer to false to omit showing the server name or address on page (mostrar direccion server) var showServer = false; // Set shortButtons to true to omit Dim/Bright percentages from button labels (good for mobile devices) (muestra porcentaje) var shortButtons = true; // Set percentage to dim BY with Dim buttons. Default of 50 seems good. // Understand that "DIM 25" means to dim by 25%, not dim to 25%. var dimPercent = 50; // Set percentage to brighten TO with Bright buttons. Default of 100 seems good. // Understand that "BRIGHT 75" means to brighten to 75%, not brighten by 75%. var brightPercent = 100; // Set showCodes to true to show device X10 addresses & transmit methods as well as names on page (muestra direccion x10) var showCodes = false; // Set showStatus to false to disable browser status line updating var showStatus = false; // Set showHovertext to false to not show hovertext. // Some broswers put this in the status line, distractingly, instead of as hovertext. var showHovertext = false; // Some global flags to control how the HTTP command is sent. // Change these if you have problems with the standard configuration. // // Set useAjax to false only if it consistently fails. var useAjax = true; // Sometimes an exception will be thrown but the command will succeed anyway. // If this happens all the time, you can change allowFallback and allowErrorAlert // to false. var allowFallback = true; // set to false to disable fallback to window.open() if AJAX throws an exception var allowErrorAlert = true; // set to false if you get error pop-ups and don't want to see them // If you are running this via the http: protocol, and your HTTP server needs // a user ID and password for authentication, set them here. Just leave them // empty unless you get authentication errors or prompts from your HTTP server. // XXX: this is untested. Kindly report authentication problems to the author. var serverID = ""; var serverPassword = ""; // Set debug to true to show debug output in a popup window. Not for general use. var debug = false; // ********************** STOP EDITING HERE **************************** // *********************** THIS MEANS YOU! ***************************** [/CODE]