/****************************************************************** DHTML-library Copyright(c) 2000, Anders Gardebring (a@centralen.net) All rights reserved. Not to be used without authorisation. ******************************************************************/ /****************************************************************** function blurItem(object_to_blur){ Blurs a selected item in internet explorer or mozilla Call this function on your onClick-action for the item. Example: Do stuff ******************************************************************/ function blurItem(){ } /****************************************************************** function makeArray(int_arr_size) Needed by function split() .... ******************************************************************/ function makeArray(int_arr_size) { for (var n = 0; n < int_arr_size; n++) this[n] = ""; return this; } /****************************************************************** function split(expression, delimeter, array_name) expression: String to look in (for example: 'john#joe#bill'. delimeter : Delimeter to look for (for example: '#') array_name: Name of array to put results in. Returns number of items in the array. ******************************************************************/ function split(expression, delimeter, array_name) { var n = 0; if (delimeter.length != 0) { while (expression.indexOf(delimeter) != -1) { eval('arr'+n+' = expression.substring(0, expression.indexOf(delimeter));'); expression = expression.substring(expression.indexOf(delimeter) + delimeter.length, expression.length + 1); n++; } eval('arr' + n + ' = expression;'); array_size = n+1; } else { for (var x = 0; x < expression.length; x++) { eval('arr'+n+' = \'' + expression.substring(x, x+1) + '\';'); n++; } array_size = n; } eval(array_name + ' = new makeArray(array_size);'); for (var i = 0; i < array_size; i++) eval(array_name + '[' + i + '] = arr' + i + ';'); return array_size; } /****************************************************************** function replace(expression, find, replacement) Replace the occurance of a substring within a string with something else. ******************************************************************/ function replace(expression, find, replacement) { if ((find == replacement) || (parseInt(replacement.indexOf(find)) > -1)) { error_message = 'replace function error: \n'; error_message += 'Second argument and third argument could be the same '; error_message += 'or third argument contains second argument.\n'; error_message += 'This will create an infinite loop as it\'s replaced globally.'; errorBox ('Error!', error_message) return false; } while (expression.indexOf(find) != -1) { var leading = expression.substring(0, expression.indexOf(find)); var trailing = expression.substring(expression.indexOf(find) + find.length, expression.length); expression = leading + replacement + trailing; } return expression; } /****************************************************************** function showLay(lay) function to show a layer. ******************************************************************/ function showLay(lay) { } /****************************************************************** function hideLay(lay) Function to hide a layer. ******************************************************************/ function hideLay(lay) { } /****************************************************************** function writeLay(layName, text) Function to write HTML-content to a layer. ******************************************************************/ function writeLay(layName, text) { } /****************************************************************** function changeImg(layName, imgName, imgSrc) Changes the image-source for an image. ******************************************************************/ function changeImg(layName, imgName, imgSrc) { document.images[imgName].src = imgSrc; } function changeSimpleImg(){ this.img = arguments[0]; this.src = arguments[1]; document.images[this.img].src = this.src; } /****************************************************************** function getLayHeight(layName){ Retrieves the height of a layer ******************************************************************/ function getLayHeight(layName){ var hgt; return hgt; } /****************************************************************** function getLayWidth(layName){ Retrieves the width of a layer ******************************************************************/ function getLayWidth(layName){ var wdt; return wdt; } /****************************************************************** function getLayYpos(layName){ Retrieves the y-position of a layer ******************************************************************/ function getLayYpos(layName) { return this.yPos; } /****************************************************************** function getLayXpos(layName){ Retrieves the x-position of a layer ******************************************************************/ function getLayXpos(layName) { return this.xPos; } /****************************************************************** function clipLay(layName, xLeft, yTop, xRight, yBottom){ Handles layer clipping ******************************************************************/ function clipLay(layName, xLeft, yTop, xRight, yBottom) { } /****************************************************************** function setLayZ(layName, zIndex){ Sets Z-index for a layer ******************************************************************/ function setLayZ(layName, zIndex){ } /****************************************************************** function moveLayY(layName, yPos){ Moves a layer in y-position. The x-position will remain the same ******************************************************************/ function moveLayY(layName, yPos) { } /****************************************************************** function moveLayX(layName, xPos){ Moves a layer in x-position. The y-position will remain the same ******************************************************************/ function moveLayX(layName, xPos) { } /****************************************************************** function moveLay(layName, xPos, yPos){ Moves a layer to the x and y-position specified. ******************************************************************/ function moveLay() { var layref = ""; }