Customization of Alexandria

Key

// your KEY

var WM_Alexandria_key = 'YOUR-KEY';

Display customization

Data Css

// URL of your CSS to be applied on Alexandria's data

// Only available with the "CSS option"

// You can get an example at "http://www.memodata.com/alexandria/alexandria.data.wm.css"

var WM_Alexandria_cssURL = "http://your-site/alexandria/alexandria.wm.css";

Title bar

// Colors of the title bar

// Only available with the "CSS option"

var WM_Alexandria_titleBackgroundColor = "DarkBlue"[1];

// Colors of the text in the title bar

// Only available with the "CSS option"

var WM_Alexandria_titleTextColor = "White"[2];

Zones

Customization of the zones around the data. 4 zones are avalaible :

TOP
LEFT / DATA / RIGHT
BOTTOM

Sizes

// Sizes of the frames

// Only available with the "FRAMES option"

var WM_Alexandria_topZoneHeight = 0[3];

var WM_Alexandria_bottomZoneHeight = 83;

var WM_Alexandria_middleZoneHeight = 150;

var WM_Alexandria_leftZoneWidth = 0;

var WM_Alexandria_rightZoneWidth = 0;

var WM_Alexandria_dataWidth = 580;

Contents

// ------

// Content of the left zone (HTML)

// Only available with the "FRAMES option"

function WM_Alexandria_getLeftZone()

{

return '';

}

// ------

// Content of the right zone (HTML)

// Only available with the "FRAMES option"

function WM_Alexandria_getRightZone()

{

return '';

}

// ------

// Content of the bottom zone (HTML)

// Only available with the "FRAMES option"

function WM_Alexandria_getBottomZone()

{

return '<div id="imgBanniereB"<img id="logoRSF" src="http://www.memodata.com/images/logos/reporters-sans-frontieres.gif"/<a href="http://www.rsf.org"<img id="bandeauRSF" src="http://www.memodata.com/images/bandeaux/reporters-sans-frontieres.gif"/</a</div>';

}

// ------

// Content of the top zone (HTML)

// Only available with the "FRAMES option"

function WM_Alexandria_getTopZone()

{

return '';

}

The HTML code returned by those functions is added in the source HTML page (DHTML). So if your page is written in HTML 4, the HTML code returned by those functions should be HTML 4 too.

Reserved words

// Reserved words

// when someones clicks on these words, the page with the given url is displayed instead of Alexandria's data

// Beware : Case-sensitive !!!

// Available with all options

var WM_Alexandria_reservedWords = ["MEMODATA", "http://www.memodata.com/alexandria/definitions/def.memodata.html",

"Alexandria", "http://www.memodata.com/alexandria/definitions/def.alexandria.html",

"Dictionnaire Intégral", "http://www.memodata.com/alexandria/definitions/def.di.html"];

Default values

"source" language

// The language used in your html pages

// used by Alexandria when it can not determine the "page" language by itself

var WM_Alexandria_defaultSourceLanguage = "fr"[4];

"target" language

// The language used in your html pages

// used by Alexandria when it can not determine the "user" language by itself

// if it is different from WM_Alexandria_defaultSourceLanguage, translations are displayed instead of definitions and synonyms

var WM_Alexandria_defaultTargetLanguage = "fr"[5];

charset (page encoding)

// The charset used in your html pages

// used by Alexandria when it can not determine it by itself

var WM_Alexandria_defaultCharset = "ISO-8859-1"[6];

[1] Cf. CSS color property (http://www.w3.org/TR/2003/CR-css3-color-20030514/#color)

[2] Cf. CSS color property (http://www.w3.org/TR/2003/CR-css3-color-20030514/#color)

[3] all sizes are in "px"

[4] Cf. ISO 639 (http://fr.wikipedia.org/wiki/ISO_639)

[5] Cf. ISO 639 (http://fr.wikipedia.org/wiki/ISO_639)

[6] Cf. http://www.w3.org/International/O-charset