' +
- '<\/div>';
- }
- document.write(markup);
-
- window[this.name] = this;
-
-}
-
-// Class Properties/Methods
-
-xbMarquee._name = -1;
-
-xbMarquee._getInnerSize = function(elm, propName)
-{
- var val = 0;
-
- if (document.layers)
- {
- // navigator 4
- val = elm.document[propName];
- }
- else if (elm.style && typeof(elm.style[propName]) == 'number')
- {
- // opera
- // bug in Opera 6 width/offsetWidth. Use clientWidth
- if (propName == 'width' && typeof(elm.clientWidth) == 'number')
- val = elm.clientWidth;
- else
- val = elm.style[propName];
- }
- else
- {
- //mozilla and IE
- switch (propName)
- {
- case 'height':
- if (typeof(elm.offsetHeight) == 'number')
- val = elm.offsetHeight;
- break;
- case 'width':
- if (typeof(elm.offsetWidth) == 'number')
- val = elm.offsetWidth;
- break;
- }
- }
-
- return val;
-
-};
-
-xbMarquee.getElm = function(id)
-{
- var elm = null;
- if (document.getElementById)
- {
- elm = document.getElementById(id);
- }
- else
- {
- elm = document.all[id];
- }
- return elm;
-}
-
-xbMarquee.dispatchUIEvent = function (event, marqueeName, eventName)
-{
- var marquee = window[marqueeName];
- var eventAttr = 'on' + eventName;
- if (!marquee)
- {
- return false;
- }
-
- if (!event && window.event)
- {
- event = window.event;
- }
-
- switch (eventName)
- {
- case 'mouseover':
- case 'mouseout':
- case 'click':
- if (marquee[eventAttr])
- return marquee['on' + eventName](event);
- }
-
- return false;
-};
-
-xbMarquee.createDispatchEventAttr = function (marqueeName, eventName)
-{
- return 'on' + eventName + '="xbMarquee.dispatchUIEvent(event, \'' + marqueeName + '\', \'' + eventName + '\')" ';
-};
-
-// Instance properties/methods
-
-xbMarquee.prototype.start = function ()
-{
- var markup = '';
-
- this.stop();
-
- if (!this.dirsign)
- {
- if (!document.layers)
- {
- this.containerDiv = xbMarquee.getElm(this.id + 'container');
-
- if (typeof(this.containerDiv.innerHTML) != 'string')
- {
- return;
- }
-
- // adjust the container size before inner div is filled in
- // so IE will not hork the size of percentage units
- var parentNode = null;
- if (this.containerDiv.parentNode)
- parentNode = this.containerDiv.parentNode;
- else if (this.containerDiv.parentElement)
- parentNode = this.containerDiv.parentElement;
-
- if (parentNode &&
- typeof(parentNode.offsetHeight) == 'number' &&
- typeof(parentNode.offsetWidth) == 'number')
- {
- if (this.heightUnit == '%')
- {
- this.containerDiv.style.height =
- parentNode.offsetHeight * (this.height/100) + 'px';
- }
-
- if (this.widthUnit == '%')
- {
- this.containerDiv.style.width =
- parentNode.offsetWidth * (this.width/100) + 'px';
- }
- }
-
- markup += '
' +
- (this.isHorizontal ? '
' : '') +
- this.html +
- (this.isHorizontal ? '<\/nobr>' : '') +
- '<\/div>';
-
- this.containerDiv.innerHTML = markup;
- this.div = xbMarquee.getElm(this.id);
- this.styleObj = this.div.style;
-
- }
- else /* if (document.layers) */
- {
- this.containerDiv = document.layers[this.id + 'container'];
- markup =
- '' +
- (this.isHorizontal ? '' : '') +
- this.html +
- (this.isHorizontal ? '<\/nobr>' : '') +
- '<\/layer>';
-
- this.containerDiv.document.write(markup);
- this.containerDiv.document.close();
- this.div = this.containerDiv.document.layers[this.id];
- this.styleObj = this.div;
- }
-
- // Start must not run until the page load event has fired
- // due to Internet Explorer not setting the height and width of
- // the dynamically written content until then
- switch (this.direction)
- {
- case 'down':
- this.dirsign = 1;
- this.startAt = -xbMarquee._getInnerSize(this.div, 'height');
- this._setTop(this.startAt);
-
- if (this.heightUnit == '%')
- this.stopAt = this.height * xbMarquee._getInnerSize(this.containerDiv, 'height') / 100;
- else
- this.stopAt = this.height;
-
- break;
-
- case 'up':
- this.dirsign = -1;
-
- if (this.heightUnit == '%')
- this.startAt = this.height * xbMarquee._getInnerSize(this.containerDiv, 'height') / 100;
- else
- this.startAt = this.height;
-
- this._setTop(this.startAt);
- this.stopAt = -xbMarquee._getInnerSize(this.div, 'height');
-
- break;
-
- case 'right':
- this.dirsign = 1;
- this.startAt = -xbMarquee._getInnerSize(this.div, 'width');
- this._setLeft(this.startAt);
-
- if (this.widthUnit == '%')
- this.stopAt = this.width * xbMarquee._getInnerSize(this.containerDiv, 'width') / 100;
- else
- this.stopAt = this.width;
-
- break;
-
- case 'left':
- default:
- this.dirsign = -1;
-
- if (this.widthUnit == '%')
- this.startAt = this.width * xbMarquee._getInnerSize(this.containerDiv, 'width') / 100;
- else
- this.startAt = this.width
-
- this._setLeft(this.startAt);
- this.stopAt = -xbMarquee._getInnerSize(this.div,'width');
-
- break;
- }
- this.newPosition = this.startAt;
- this.styleObj.visibility = 'visible';
- }
-
- this.newPosition += this.dirsign * this.scrollAmount;
-
- if ( (this.dirsign == 1 && this.newPosition > this.stopAt) ||
- (this.dirsign == -1 && this.newPosition < this.stopAt) )
- {
- if (this.behavior == 'alternate')
- {
- if (this.onbounce)
- {
- // fire bounce when alternate changes directions
- this.onbounce();
- }
- this.dirsign = -this.dirsign;
- var temp = this.stopAt;
- this.stopAt = this.startAt;
- this.startAt = temp;
- }
- else
- {
- // fire start when position is a start
- if (this.onstart)
- {
- this.onstart();
- }
- this.newPosition = this.startAt;
- }
- }
-
- switch(this.direction)
- {
- case 'up':
- case 'down':
- this._setTop(this.newPosition);
- break;
-
- case 'left':
- case 'right':
- default:
- this._setLeft(this.newPosition);
- break;
- }
-
- this.runId = setTimeout(this.name + '.start()', this.scrollDelay);
-};
-
-xbMarquee.prototype.stop = function ()
-{
- if (this.runId)
- clearTimeout(this.runId);
-
- this.runId = null;
-};
-
-xbMarquee.prototype.setInnerHTML = function (html)
-{
- if (typeof(this.div.innerHTML) != 'string')
- {
- return;
- }
-
- var running = false;
- if (this.runId)
- {
- running = true;
- this.stop();
- }
- this.html = html;
- this.dirsign = null;
- if (running)
- {
- this.start();
- }
-};
-
-// fixes standards mode in gecko
-// since units are required
-
-if (document.layers)
-{
- xbMarquee.prototype._setLeft = function (left)
- {
- this.styleObj.left = left;
- };
-
- xbMarquee.prototype._setTop = function (top)
- {
- this.styleObj.top = top;
- };
-}
-else
-{
- xbMarquee.prototype._setLeft = function (left)
- {
- this.styleObj.left = left + 'px';
- };
-
- xbMarquee.prototype._setTop = function (top)
- {
- this.styleObj.top = top + 'px';
- };
-}
-
-
diff --git a/language/english/admin.php b/language/english/admin.php
index 9bd2ca7..1be87cb 100644
--- a/language/english/admin.php
+++ b/language/english/admin.php
@@ -11,56 +11,56 @@
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
- * @copyright Hervé Thouzard (http://www.herve-thouzard.com)
- * @license http://www.fsf.org/copyleft/gpl.html GNU public license
- * @package marquee
- * @author Hervé Thouzard (http://www.herve-thouzard.com)
+ * @copyright Hervé Thouzard (http://www.herve-thouzard.com)
+ * @license http://www.fsf.org/copyleft/gpl.html GNU public license
+ * @package marquee
+ * @author Hervé Thouzard (http://www.herve-thouzard.com)
*
* Version : $Id:
* ****************************************************************************
*/
-define("_AM_MARQUEE_CONFIG","Marquees Configuration");
-define("_AM_MARQUEE_ID","ID");
-define("_AM_MARQUEE_GENERALSET","Preferences");
-define("_AM_MARQUEE_MODULEADMIN","Module's administration");
-define("_AM_MARQUEE_DIRECTION","Direction");
-define("_AM_MARQUEE_BEHAVIOUR","Behaviour");
-define("_AM_MARQUEE_STOP","Stop when mouse is over");
-define("_AM_MARQUEE_CONTENT","Content");
-define("_AM_MARQUEE_EDIT","Edit");
-define("_AM_MARQUEE_DELETE","Delete");
-define("_AM_MARQUEE_DIRECTION1","left->right");
-define("_AM_MARQUEE_DIRECTION2","right->left");
-define("_AM_MARQUEE_DIRECTION3","bottom->top");
-define("_AM_MARQUEE_DIRECTION4","top->bottom");
-define("_AM_MARQUEE_BEHAVIOUR1","scroll");
-define("_AM_MARQUEE_BEHAVIOUR2","slide");
-define("_AM_MARQUEE_BEHAVIOUR3","alternate");
-define("_AM_MARQUEE_ADDMARQUEE","Add a marquee");
-define("_AM_MARQUEE_ACTION","Action");
-define("_AM_MARQUEE_LOOP","Loop");
-define("_AM_MARQUEE_INFINITELOOP","Infinite");
-define("_AM_MARQUEE_ALIGN","Align");
-define("_AM_MARQUEE_ALIGN1","Top");
-define("_AM_MARQUEE_ALIGN2","Bottom");
-define("_AM_MARQUEE_ALIGN3","Middle");
-define("_AM_MARQUEE_ADDBUTTON","Add");
-define("_AM_MARQUEE_RESETBUTTON","Reset");
-define("_AM_MARQUEE_ERROR_ADD_MARQUEE","Error, the recquired fields have not been typed");
-define("_AM_MARQUEE_ADDED_OK","The marquee has been succesfully added");
-define("_AM_MARQUEE_DBUPDATED","The database has been sucesfully updated");
-define("_AM_MARQUEE_RUSUREDEL","Are you sure you want to delete this item ?");
-define("_AM_MARQUEE_UPDATE","Update");
-define("_AM_MARQUEE_BGCOLOR","Background color
(don't forget to put a #
if you specify a color code)");
-define("_AM_MARQUEE_WIDTH","Width (in pixels or percent)");
-define("_AM_MARQUEE_HEIGHT","Height (in pixels)");
-define("_AM_MARQUEE_SCRAMOUNT","Scroll amount");
-define("_AM_MARQUEE_HSPACE","Horizontal space (in pixels)");
-define("_AM_MARQUEE_VSPACE","Vertical space (in pixels)");
-define("_AM_MARQUEE_SCRDELAY","Delay between
two moves in milliseconds");
-define("_AM_MARQUEE_ERROR_MODIFY_DB","Error while updating the database");
-define("_AM_MARQUEE_SOURCE","Content's source");
-define("_AM_MARQUEE_SOURCE_FIXED","A fixed text");
+define('_AM_MARQUEE_CONFIG', 'Marquees Configuration');
+define('_AM_MARQUEE_ID', 'ID');
+define('_AM_MARQUEE_GENERALSET', 'Preferences');
+define('_AM_MARQUEE_MODULEADMIN', "Module's administration");
+define('_AM_MARQUEE_DIRECTION', 'Direction');
+define('_AM_MARQUEE_BEHAVIOUR', 'Behaviour');
+define('_AM_MARQUEE_STOP', 'Stop when mouse is over');
+define('_AM_MARQUEE_CONTENT', 'Content');
+define('_AM_MARQUEE_EDIT', 'Edit');
+define('_AM_MARQUEE_DELETE', 'Delete');
+define('_AM_MARQUEE_DIRECTION1', 'left->right');
+define('_AM_MARQUEE_DIRECTION2', 'right->left');
+define('_AM_MARQUEE_DIRECTION3', 'bottom->top');
+define('_AM_MARQUEE_DIRECTION4', 'top->bottom');
+define('_AM_MARQUEE_BEHAVIOUR1', 'scroll');
+define('_AM_MARQUEE_BEHAVIOUR2', 'slide');
+define('_AM_MARQUEE_BEHAVIOUR3', 'alternate');
+define('_AM_MARQUEE_ADDMARQUEE', 'Add a marquee');
+define('_AM_MARQUEE_ACTION', 'Action');
+define('_AM_MARQUEE_LOOP', 'Loop');
+define('_AM_MARQUEE_INFINITELOOP', 'Infinite');
+define('_AM_MARQUEE_ALIGN', 'Align');
+define('_AM_MARQUEE_ALIGN1', 'Top');
+define('_AM_MARQUEE_ALIGN2', 'Bottom');
+define('_AM_MARQUEE_ALIGN3', 'Middle');
+define('_AM_MARQUEE_ADDBUTTON', 'Add');
+define('_AM_MARQUEE_RESETBUTTON', 'Reset');
+define('_AM_MARQUEE_ERROR_ADD_MARQUEE', "Error, we couldn't add this Marquee");
+define('_AM_MARQUEE_ADDED_OK', 'The marquee has been successfully added');
+define('_AM_MARQUEE_DBUPDATED', 'The database has been sucesfully updated');
+define('_AM_MARQUEE_RUSUREDEL', 'Are you sure you want to delete this item?');
+define('_AM_MARQUEE_UPDATE', 'Update');
+define('_AM_MARQUEE_BGCOLOR', "Background color
(don't forget to put a #
if you specify a color code)");
+define('_AM_MARQUEE_WIDTH', 'Width (in pixels or percent)');
+define('_AM_MARQUEE_HEIGHT', 'Height (in pixels)');
+define('_AM_MARQUEE_SCRAMOUNT', 'Scroll amount');
+define('_AM_MARQUEE_HSPACE', 'Horizontal space (in pixels)');
+define('_AM_MARQUEE_VSPACE', 'Vertical space (in pixels)');
+define('_AM_MARQUEE_SCRDELAY', 'Delay between
two moves in milliseconds');
+define('_AM_MARQUEE_ERROR_MODIFY_DB', 'Error while updating the database');
+define('_AM_MARQUEE_SOURCE', "Content's source");
+define('_AM_MARQUEE_SOURCE_FIXED', 'A fixed text');
//2.4.8
-define("_AM_MARQUEE_BGCOLOR_SHORT","Background color");
+define('_AM_MARQUEE_BGCOLOR_SHORT', 'Background color');
diff --git a/language/english/blocks.php b/language/english/blocks.php
index 2c078de..8165588 100644
--- a/language/english/blocks.php
+++ b/language/english/blocks.php
@@ -11,12 +11,12 @@
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
- * @copyright Hervé Thouzard (http://www.herve-thouzard.com)
- * @license http://www.fsf.org/copyleft/gpl.html GNU public license
- * @package marquee
- * @author Hervé Thouzard (http://www.herve-thouzard.com)
+ * @copyright Hervé Thouzard (http://www.herve-thouzard.com)
+ * @license http://www.fsf.org/copyleft/gpl.html GNU public license
+ * @package marquee
+ * @author Hervé Thouzard (http://www.herve-thouzard.com)
*
* Version : $Id:
* ****************************************************************************
*/
-define("_MB_MARQUEE_SELECT","Select the marquee to use");
+define('_MB_MARQUEE_SELECT', 'Select the marquee to use');
diff --git a/language/english/extension.php b/language/english/extension.php
index 75b0c2b..a99f226 100644
--- a/language/english/extension.php
+++ b/language/english/extension.php
@@ -11,15 +11,15 @@
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
- * @copyright Hervé Thouzard (http://www.herve-thouzard.com)
- * @license http://www.fsf.org/copyleft/gpl.html GNU public license
- * @package marquee
- * @author Hervé Thouzard (http://www.herve-thouzard.com)
+ * @copyright Hervé Thouzard (http://www.herve-thouzard.com)
+ * @license http://www.fsf.org/copyleft/gpl.html GNU public license
+ * @package marquee
+ * @author Hervé Thouzard (http://www.herve-thouzard.com)
*
* Version : $Id:
* ****************************************************************************
*/
-define("_EXT_MARQUEE_ALTWMP","Add a marquee from Marquee module");
-define("_EXT_MARQUEE_TEXTID","Marquee's Id you want to display");
-define("_EXT_MARQUEE_TEXTTITLE","Enter marquee title");
+define('_EXT_MARQUEE_ALTWMP', 'Add a marquee from Marquee module');
+define('_EXT_MARQUEE_TEXTID', "Marquee's Id you want to display");
+define('_EXT_MARQUEE_TEXTTITLE', 'Enter marquee title');
diff --git a/language/english/help/help.html b/language/english/help/help.html
index e60e559..be356d4 100644
--- a/language/english/help/help.html
+++ b/language/english/help/help.html
@@ -21,31 +21,33 @@ Description
Install/uninstall
No special measures necessary, follow the standard installation process –
- extract the /marquee folder into the ../modules directory. Install the
- module through Admin -> System Module -> Modules.
- Detailed instructions on installing modules are available in the
- XOOPS Operations Manual
+ extract the /marquee folder into the ../modules directory. Install the
+ module through Admin -> System Module -> Modules.
+ Detailed instructions on installing modules are available in the
+ Chapter 2.12 of our XOOPS Operations Manual
+
-
Operating instructions
- This module and its operations are very simple:
+ This module and its operations are very simple:
- - Configure your preferences (e.g. select the text editor
- - Add a Marquee
+ - Configure your preferences (e.g. select the text editor
+ - Add a Marquee
- Select a block you want this Marquee to be visible and set desired
- options
+ options
+
- Check that you have given your user groups the necessary module and
- block access rights to use this module. Group permissions are set through
- the Administration Menu -> System -> Groups.
-
+ block access rights to use this module. Group permissions are set through
+ the Administration Menu -> System -> Groups.
+
+
Detailed instructions
on configuring the access rights for user groups are available in the
- XOOPS Operations Manual
+ Chapter 2.8 of our XOOPS Operations Manual
Tutorial
You can find a more detailed Tutorial
here
-
\ No newline at end of file
+
diff --git a/language/english/help/index.html b/language/english/help/index.html
index 990cbd6..2c5cdd3 100644
--- a/language/english/help/index.html
+++ b/language/english/help/index.html
@@ -1 +1 @@
-
\ No newline at end of file
+
diff --git a/language/english/index.html b/language/english/index.html
index 990cbd6..2c5cdd3 100644
--- a/language/english/index.html
+++ b/language/english/index.html
@@ -1 +1 @@
-
\ No newline at end of file
+
diff --git a/language/english/modinfo.php b/language/english/modinfo.php
index 88abecc..1d9100a 100644
--- a/language/english/modinfo.php
+++ b/language/english/modinfo.php
@@ -11,36 +11,36 @@
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
- * @copyright Hervé Thouzard (http://www.herve-thouzard.com)
- * @license http://www.fsf.org/copyleft/gpl.html GNU public license
- * @package marquee
- * @author Hervé Thouzard (http://www.herve-thouzard.com)
+ * @copyright Hervé Thouzard (http://www.herve-thouzard.com)
+ * @license http://www.fsf.org/copyleft/gpl.html GNU public license
+ * @package marquee
+ * @author Hervé Thouzard (http://www.herve-thouzard.com)
*
* Version : $Id:
* ****************************************************************************
*/
-define("_MI_MARQUEE_NAME","Marquee");
-define("_MI_MARQUEE_DESC","Enable you to create scrolling texts (marquees)");
-define("_MI_MARQUEE_BNAME_01","Marquee 01");
-define("_MI_MARQUEE_BDESC_01","Display marquee 01");
-define("_MI_MARQUEE_BNAME_02","Marquee 02");
-define("_MI_MARQUEE_BDESC_02","Display marquee 02");
-define("_MI_MARQUEE_BNAME_03","Marquee 03");
-define("_MI_MARQUEE_BDESC_03","Display marquee 03");
-define("_MI_MARQUEE_BNAME_04","Marquee 04");
-define("_MI_MARQUEE_BDESC_04","Display marquee 04");
-define("_MI_MARQUEE_MENU_01","Manage marquees");
-define("_MI_MARQUEE_USE_KIOVI","Use kiovi ?");
-define("_MI_MARQUEE_USE_KIOVI_DESC","If it is detected then Kiovi will be used");
-define("_MI_MARQUEE_METHOD","Method to use");
-define("_MI_MARQUEE_METHOD_DESC","If you select the 'Marquee' method then the module will use the html marquee's tag, this method is not compatible with all navigators but offers many options.