probleme aim template html - Virus/Spywares - Windows & Software
MarshPosté le 22-03-2008 à 08:59:17
bonjour a tous ,lorsque j ouvre une fenetre de messagerie d aim et quej essai d envoyer un message , j ai le message suivant qui apparait et ne recoit pas les messages de mon correspondant.pouvez vous m aider? d avance merci.
<!-- <! -- ****************************************************************************** ************************************************** **************************** * * * File Name: template.html * Nom du fichier: template.html * * ****************************************************************************** ************************************************** **************************** * COPYRIGHTANDCONFIDENT IALITYNOTICE * COPYRIGHTANDCONFIDENT IALITYNOTICE ****************************************************************************** ************************************************** **************************** * * * Copyright (c) 2007 AOL LLC. * Copyright (c) 2007 AOL LLC. All rights reserved. Tous droits réservés. * This software contains valuable confidential and proprietary * Ce logiciel contient de précieuses confidentiels et exclusifs * information of AOL LLC. * Information d'AOL LLC. and is subject to applicable Et est assujettie à certaines applicable * licensing agreements. * Accords de licence. Unauthorized reproduction, transmission or Toute reproduction, la transmission ou * distribution of this file and its contents is a violation of * La distribution de ce fichier et son contenu est une violation de * applicable laws. * Les lois applicables. * * * AOLCONFIDENTIAL * AOLCONFIDENTIAL * * ****************************************************************************** ************************************************** **************************** --> --> <html> <html> <head> <head> <link rel="stylesheet" type="text/css" href="template.css"> <link Rel="stylesheet" type="text/css" href="template.css"> <style type="text/css"></style> <style Type="text/css"> </ style> <script for=SWF1 event=FSCommand>onFSCommand(arguments[0],arguments[1])</script> <script For=SWF1 event=FSCommand> onFSCommand (arguments [0], arguments [1]) </ script> <script for=SWF2 event=FSCommand>onFSCommand(arguments[0],arguments[1])</script> <script For=SWF2 event=FSCommand> onFSCommand (arguments [0], arguments [1]) </ script> <script for=SWF3 event=FSCommand>onFSCommand(arguments[0],arguments[1])</script> <script For=SWF3 event=FSCommand> onFSCommand (arguments [0], arguments [1]) </ script> <script for=SWF4 event=FSCommand>onFSCommand(arguments[0],arguments[1])</script> <script For=SWF4 event=FSCommand> onFSCommand (arguments [0], arguments [1]) </ script> </head> </ Head> <script language="JavaScript"> <script Language="JavaScript"> var AIMX = null; Var AIMX = null; var AIMXURL = ""; AIMXURL var = "";
var stuckToBottom=true; Var stuckToBottom = true; var isInitial=true; Var isInitial = true; var hasBuddyIcon=false; Var hasBuddyIcon = false; var hasSuperBuddy=false; Var hasSuperBuddy = false; var hasWallpaper=false; Var hasWallpaper = false; var inAdjust=false; Var inAdjust = false;
var debugWindow=null; Var debugWindow = null; var textBody=null; Var textBody = null; var flashVersion=0; Var flashVersion = 0; var MM_contentVersion = 6; Var MM_contentVersion = 6; var MM_FlashCanPlay=false; Var MM_FlashCanPlay = false;
// -------------------------- / / -------------------------- // AIM Partner Expression API / / AIM Partenaire expression API
function getAIMXApiVersion() { return 1; } GetAIMXApiVersion function () (return 1 function getFlashVersion() { return flashVersion; } GetFlashVersion function () (return flashVersion
function getImTextDoc() { return textWindow.document; } GetImTextDoc function () (return textWindow.document function getImTextWindow() { return document.getElementById("textWindow" ); } GetImTextWindow function () (return document.getElementById ( "textWindow" )
function getImTextBody() { return _getTextBody(); } GetImTextBody function () (return _getTextBody () function getImTextIconStyle() { return buddyicon.style; } GetImTextIconStyle function () (return buddyicon.style function getImTextFaderStyle() { return faderSurround.style; } GetImTextFaderStyle function () (return faderSurround.style
function appendImText(html) { appendHTML(-1, html, "" ); } Fonction appendImText (html) (appendHTML (-1, html, "" ) function clearImText() { clearHTML(); } ClearImText function () (clearHTML () function showImText(e) { textWindow.style.display=e?"":"none" } ShowImText function (e) (textWindow.style.display = e ?"":" none " ) function Adjust() { _AdjustIcons(); } Function () (Ajustez _AdjustIcons () function handleURL(u) { external.proxy.launchURL(u); } HandleURL fonction (u) (external.proxy.launchURL (u)
function addImTextRule(sel,style) AddImTextRule fonction (sel, style) { ( textWindow.document.styleSheets[1].addRule(sel, style); TextWindow.document.styleSheets [1]. AddRule (sel, du style); } )
function resetImTextStyles() ResetImTextStyles function () { ( var ss = textWindow.document.styleSheets[1]; Var ss = textWindow.document.styleSheets [1]; var rules = ss.rules; Var = ss.rules règles; rules.disabled = true; Rules.disabled = true; while (rules.length) { ss.removeRule(0); } While (rules.length) (ss.removeRule (0) rules.disabled = false; Rules.disabled = false; } )
function addImHistRule(sel,style) AddImHistRule fonction (sel, style) { ( document.styleSheets[1].addRule(sel, style); Document.styleSheets [1]. AddRule (sel, du style); } )
function resetImHistStyles() ResetImHistStyles function () { ( var ss = document.styleSheets[1]; Var ss = document.styleSheets [1]; var rules = ss.rules; Var = ss.rules règles; var rules = ss.rules; Var = ss.rules règles; rules.disabled = true; Rules.disabled = true; while (rules.length) { ss.removeRule(0); } While (rules.length) (ss.removeRule (0) rules.disabled = false; Rules.disabled = false; } )
function setMinSize(w, h) Fonction setMinSize (w, h) { ( external.proxy.setMinSize(w,h); External.proxy.setMinSize (w, h); } )
function _getTextBody() _getTextBody Function () { ( if (!textBody) textBody = textWindow.document.body; If (! TextBody) textBody = textWindow.document.body; return textBody; TextBody retour; } )
// Checks to see if? / / Vérifie si? function _checkScroll() _checkScroll Function () { ( if (AIMX&&AIMX.resize) AIMX.resize(); If (AIMX & & AIMX.resize) AIMX.resize (); if(stuckToBottom || isInitial) If (stuckToBottom | | isInitial) { ( scrollToBottom(); ScrollToBottom (); } ) _AdjustIcons(); _AdjustIcons (); } )
function _print(t) Fonction _print (t) { ( external.proxy.print(t); External.proxy.print (t); } )
function _AdjustIcons() _AdjustIcons Function () { ( if (!inAdjust) If (! InAdjust) { ( inAdjust=true; InAdjust = true; try { Try ( var f=7; // default flags Var f = 7, / / flags par défaut _getTextBody(); _getTextBody ();
/* put a padding in here of 20 pixels */ / * Mettre un padding ici de 20 pixels * / if( (textBody.scrollTop + textBody.clientHeight + 20) >= textBody.scrollHeight || textBody.clientHeight > textBody.scrollHeight) If ((textBody.scrollTop + textBody.clientHeight + 20)> = textBody.scrollHeight | | textBody.clientHeight> textBody.scrollHeight) { ( stuckToBottom = true; StuckToBottom = true; } ) else Else { ( stuckToBottom = false; StuckToBottom = false; } ) } ) function _mark() _mark Function () { ( var c = document.all.length; Var c = document.all.length; for (var i=0;i<c;i++) For (var i = 0; i <c; i + +) document.all[i].aim=true; Document.all [i]. Viser = true; _sweep = _sweep2; _sweep = _sweep2; } ) function _sweep() {} _sweep Function () () function _sweep2() _sweep2 Function () { ( s = { "CAPTION":1,"COL":1,"COLGROUP":1,"FRAMESET":1,"HTML":1, S = ( "CAPTION": 1, "COL": 1, "COLGROUP": 1, "FRAMESET": 1, "HTML": 1, "TBODY":1,"TD":1,"TFOOT":1,"TH":1,"THEAD":1,"TR":1}; "TBODY": 1, "TD": 1, "TFOOT": 1, "TH": 1, "THEAD": 1, "TR": 1);
var d=[]; Var d = []; var c= document.all.length; Var c = document.all.length; for (var i=0;i<c; i++) For (var i = 0; i <c; i + +) { ( var o = document.all[i]; Var o = document.all [i]; if (!o.aim && !s[o.tagName.toUpperCase()]) d.push(o); If (! O.aim & &! S [o.tagName.toUpperCase ()]) d.push (o); } ) var c = d.length; Var c = d.length; for (var i=0;i<c; i++) { d[i].outerHTML=""; } For (var i = 0; i <c; i + +) (d [i]. OuterHTML = "" } )
function isStuckToBottom() { return stuckToBottom; } IsStuckToBottom function () (return stuckToBottom
// Shows or hides status text indicator. / / Affiche ou cache indicateur de l'état de texte. function statusText(text) Fonction statusText (texte) { ( if( !text || text=="" ) If (! Texte | | texte =="" ) { ( statusIndicator.style.display = "none"; StatusIndicator.style.display = "none"; } ) else Else { ( statusIndicator.innerHTML = text; StatusIndicator.innerHTML = text; statusIndicator.style.display = "inline"; StatusIndicator.style.display = "inline"; } ) } )
//---------------------------------------------------------------------------- //------------------------------------------------ ---------------------------- //IM Text / / IM Texte
function focusText() { _getTextBody().focus(); } FocusText function () (_getTextBody (). Focus ()
function scrollToBottom() ScrollToBottom function () { ( _getTextBody(); _getTextBody (); textBody.scrollTop = textBody.scrollHeight; TextBody.scrollTop = textBody.scrollHeight; } )
function appendHTML(source, html, plain) Fonction appendHTML (source, html, plain) { ( _getTextBody(); _getTextBody (); textBody.insertAdjacentHTML('beforeEnd', html); TextBody.insertAdjacentHTML ( 'beforeEnd', html);
if (AIMX) If (AIMX) { ( if (1==source && AIMX.receivedIm) If (1 == source & & AIMX.receivedIm) AIMX.receivedIm(plain); AIMX.receivedIm (ordinaire); else if (0==source && AIMX.sentIm) Else if (0 == & & source AIMX.sentIm) AIMX.sentIm(plain); AIMX.sentIm (ordinaire); } )
if( stuckToBottom ) If (stuckToBottom) { ( scrollToBottom(); ScrollToBottom ();
// move cursor to the end of the page / / Déplacer le curseur à la fin de la page var range = textBody.createTextRange(); Var range = textBody.createTextRange (); range.collapse(false); Range.collapse (false); range.select(); Range.select (); } ) if(isInitial) If (isInitial) { ( isInitial = false; IsInitial = false; } ) _AdjustIcons(); _AdjustIcons (); } )
// Somtimes we need to clear the history. / / Somtimes nous avons besoin pour effacer l'histoire. since it's not contained in a span Car elle n'est pas contenue dans une travée // tag, we just readd the ad and the spam box. / / Tag, nous venons readd de cette annonce et de la boîte à spam. function clearHistory() ClearHistory function () { ( _getTextBody(); _getTextBody ();
function getHTML() Function getHTML () { ( _getTextBody(); _getTextBody ();
// remove spam text / / Supprimer les spams texte var div = textWindow.document.getElementById('spamSpan'); Var div = textWindow.document.getElementById ( 'spamSpan'); if(div) If (Div) { ( div.parentNode.removeChild(div); Div.parentNode.removeChild (Div); } )
function setFlashVer(v) Fonction setFlashVer (v) { ( flashVersion = v; FlashVersion = v; MM_FlashCanPlay = v >= MM_contentVersion; MM_FlashCanPlay = v> = MM_contentVersion; _initializeFlash(); _initializeFlash (); } )
// If a pref is added later which wants to know if flash is / / Si une pref est ajoutée par la suite, qui veut savoir si le flash est // working, an easy check is to run / / Travail, une vérification est facile à courir // if( ! FlashCtl.object ) // no flash! / / If (! FlashCtl.object) / / pas de flash! function playSmiley(index) PlaySmiley fonction (indice) { ( index++; //index passed in is base 0, we need base 1 Index + +; / / indice de base est passée de 0, nous avons besoin de base 1 if ( MM_FlashCanPlay ) If (MM_FlashCanPlay) { ( document.all.FlashCtl.setVariable("opacity",30); Document.all.FlashCtl.setVariable ( "opacité", 30); document.all.FlashCtl.setVariable("emote",index); Document.all.FlashCtl.setVariable ( "emote", index); } ) } )
function enableSpam(d) { textWindow.spamLink.disabled=d; } Fonction enableSpam (d) (textWindow.spamLink.disabled = d
function showSpam(s) ShowSpam fonction (s) { ( var div = textWindow.document.getElementById('spamSpan'); Var div = textWindow.document.getElementById ( 'spamSpan'); if(s) If (s) { ( div.style.display = "inline"; Div.style.display = "inline"; } ) else Else { ( div.style.display = "none"; Div.style.display = "none"; } ) } )
function setBuddyIcon(s) SetBuddyIcon fonction (s) { ( var b=true; Var b = true; if (AIMX&&AIMX.canShowBuddy) b=AIMX.canShowBuddy(s, false); If (AIMX & & AIMX.canShowBuddy) b = AIMX.canShowBuddy (s, false);
Marsh Posté le 22-03-2008 à 08:59:17
bonjour a tous ,lorsque j ouvre une fenetre de messagerie d aim et quej essai d envoyer un message , j ai le message suivant qui apparait et ne recoit pas les messages de mon correspondant.pouvez vous m aider? d avance merci.
<!-- <! --
****************************************************************************** ************************************************** ****************************
* *
* File Name: template.html * Nom du fichier: template.html
* *
****************************************************************************** ************************************************** ****************************
* COPYRIGHTANDCONFIDENT IALITYNOTICE * COPYRIGHTANDCONFIDENT IALITYNOTICE
****************************************************************************** ************************************************** ****************************
* *
* Copyright (c) 2007 AOL LLC. * Copyright (c) 2007 AOL LLC. All rights reserved. Tous droits réservés.
* This software contains valuable confidential and proprietary * Ce logiciel contient de précieuses confidentiels et exclusifs
* information of AOL LLC. * Information d'AOL LLC. and is subject to applicable Et est assujettie à certaines applicable
* licensing agreements. * Accords de licence. Unauthorized reproduction, transmission or Toute reproduction, la transmission ou
* distribution of this file and its contents is a violation of * La distribution de ce fichier et son contenu est une violation de
* applicable laws. * Les lois applicables.
* *
* AOLCONFIDENTIAL * AOLCONFIDENTIAL
* *
****************************************************************************** ************************************************** ****************************
--> -->
<html> <html>
<head> <head>
<link rel="stylesheet" type="text/css" href="template.css"> <link Rel="stylesheet" type="text/css" href="template.css">
<style type="text/css"></style> <style Type="text/css"> </ style>
<script for=SWF1 event=FSCommand>onFSCommand(arguments[0],arguments[1])</script> <script For=SWF1 event=FSCommand> onFSCommand (arguments [0], arguments [1]) </ script>
<script for=SWF2 event=FSCommand>onFSCommand(arguments[0],arguments[1])</script> <script For=SWF2 event=FSCommand> onFSCommand (arguments [0], arguments [1]) </ script>
<script for=SWF3 event=FSCommand>onFSCommand(arguments[0],arguments[1])</script> <script For=SWF3 event=FSCommand> onFSCommand (arguments [0], arguments [1]) </ script>
<script for=SWF4 event=FSCommand>onFSCommand(arguments[0],arguments[1])</script> <script For=SWF4 event=FSCommand> onFSCommand (arguments [0], arguments [1]) </ script>
</head> </ Head>
<script language="JavaScript"> <script Language="JavaScript">
var AIMX = null; Var AIMX = null;
var AIMXURL = ""; AIMXURL var = "";
var stuckToBottom=true; Var stuckToBottom = true;
var isInitial=true; Var isInitial = true;
var hasBuddyIcon=false; Var hasBuddyIcon = false;
var hasSuperBuddy=false; Var hasSuperBuddy = false;
var hasWallpaper=false; Var hasWallpaper = false;
var inAdjust=false; Var inAdjust = false;
var debugWindow=null; Var debugWindow = null;
var textBody=null; Var textBody = null;
var flashVersion=0; Var flashVersion = 0;
var MM_contentVersion = 6; Var MM_contentVersion = 6;
var MM_FlashCanPlay=false; Var MM_FlashCanPlay = false;
// -------------------------- / / --------------------------
// AIM Partner Expression API / / AIM Partenaire expression API
function getAIMXApiVersion() { return 1; } GetAIMXApiVersion function () (return 1
function getFlashVersion() { return flashVersion; } GetFlashVersion function () (return flashVersion
function getImTextDoc() { return textWindow.document; } GetImTextDoc function () (return textWindow.document
function getImTextWindow() { return document.getElementById("textWindow" ); } GetImTextWindow function () (return document.getElementById ( "textWindow" )
function getImTextBody() { return _getTextBody(); } GetImTextBody function () (return _getTextBody ()
function getImTextIconStyle() { return buddyicon.style; } GetImTextIconStyle function () (return buddyicon.style
function getImTextFaderStyle() { return faderSurround.style; } GetImTextFaderStyle function () (return faderSurround.style
function appendImText(html) { appendHTML(-1, html, "" ); } Fonction appendImText (html) (appendHTML (-1, html, "" )
function clearImText() { clearHTML(); } ClearImText function () (clearHTML ()
function showImText(e) { textWindow.style.display=e?"":"none" } ShowImText function (e) (textWindow.style.display = e ?"":" none " )
function Adjust() { _AdjustIcons(); } Function () (Ajustez _AdjustIcons ()
function handleURL(u) { external.proxy.launchURL(u); } HandleURL fonction (u) (external.proxy.launchURL (u)
function addImTextRule(sel,style) AddImTextRule fonction (sel, style)
{ (
textWindow.document.styleSheets[1].addRule(sel, style); TextWindow.document.styleSheets [1]. AddRule (sel, du style);
} )
function resetImTextStyles() ResetImTextStyles function ()
{ (
var ss = textWindow.document.styleSheets[1]; Var ss = textWindow.document.styleSheets [1];
var rules = ss.rules; Var = ss.rules règles;
rules.disabled = true; Rules.disabled = true;
while (rules.length) { ss.removeRule(0); } While (rules.length) (ss.removeRule (0)
rules.disabled = false; Rules.disabled = false;
} )
function addImHistRule(sel,style) AddImHistRule fonction (sel, style)
{ (
document.styleSheets[1].addRule(sel, style); Document.styleSheets [1]. AddRule (sel, du style);
} )
function resetImHistStyles() ResetImHistStyles function ()
{ (
var ss = document.styleSheets[1]; Var ss = document.styleSheets [1];
var rules = ss.rules; Var = ss.rules règles;
var rules = ss.rules; Var = ss.rules règles;
rules.disabled = true; Rules.disabled = true;
while (rules.length) { ss.removeRule(0); } While (rules.length) (ss.removeRule (0)
rules.disabled = false; Rules.disabled = false;
} )
function setMinSize(w, h) Fonction setMinSize (w, h)
{ (
external.proxy.setMinSize(w,h); External.proxy.setMinSize (w, h);
} )
function setAIMX(base,code) SetAIMX fonction (base, code)
{ (
clearAIMX(); ClearAIMX ();
_mark(); _mark ();
AIMX=null; AIMX = null;
AIMXURL=base + "/"; AIMXURL = base + "/";
try { eval(code); } catch (e) { AIMX=null; } Try (eval (code) catch (e) (AIMX = null
if (AIMX&&AIMX.ctor) If (AIMX & & AIMX.ctor)
{ (
FlashDiv.style.visibility="hidden"; FlashDiv.style.visibility = "hidden";
MM_FlashCanPlay = false; MM_FlashCanPlay = false;
if (!AIMX.ctor()) clearAIMX(); If (! AIMX.ctor ()) clearAIMX ();
} )
else if (!AIMX) Else if (! AIMX)
{ (
clearAIMX(); ClearAIMX ();
} )
else Else
{ (
_AdjustIcons(); _AdjustIcons ();
} )
} )
function clearAIMX() ClearAIMX function ()
{ (
if (AIMX&&AIMX.dtor) AIMX.dtor(); If (AIMX & & AIMX.dtor) AIMX.dtor ();
_sweep(); _sweep ();
resetImTextStyles(); ResetImTextStyles ();
resetImHistStyles(); ResetImHistStyles ();
setMinSize(50, 20); SetMinSize (50, 20);
AIMX=null; AIMX = null;
AIMXURL=""; AIMXURL = "";
MM_FlashCanPlay = flashVersion >= MM_contentVersion; MM_FlashCanPlay = flashVersion> = MM_contentVersion;
FlashDiv.style.visibility="visible"; FlashDiv.style.visibility = "visible";
_getTextBody(); _getTextBody ();
textBody.leftMargin = 10; TextBody.leftMargin = 10;
textBody.topMargin = 15; TextBody.topMargin = 15;
textBody.bottomMargin = 15; TextBody.bottomMargin = 15;
faderSurround.style.paddingTop = 0; FaderSurround.style.paddingTop = 0;
faderSurround.style.paddingLeft = 0; FaderSurround.style.paddingLeft = 0;
faderSurround.style.paddingBottom = 0; FaderSurround.style.paddingBottom = 0;
//BuddyWallpaperDiv.paddingRight = 0; / / BuddyWallpaperDiv.paddingRight = 0;
//BuddyWallpaperDiv.paddingLeft = 0; / / BuddyWallpaperDiv.paddingLeft = 0;
//BuddyWallpaperDiv.paddingTop = 0; / / BuddyWallpaperDiv.paddingTop = 0;
//BuddyWallpaperDiv.paddingBottom = 0; / / BuddyWallpaperDiv.paddingBottom = 0;
_AdjustIcons(); _AdjustIcons ();
} )
// -------------------------- / / --------------------------
function _getTextBody() _getTextBody Function ()
{ (
if (!textBody) textBody = textWindow.document.body; If (! TextBody) textBody = textWindow.document.body;
return textBody; TextBody retour;
} )
// Checks to see if? / / Vérifie si?
function _checkScroll() _checkScroll Function ()
{ (
if (AIMX&&AIMX.resize) AIMX.resize(); If (AIMX & & AIMX.resize) AIMX.resize ();
if(stuckToBottom || isInitial) If (stuckToBottom | | isInitial)
{ (
scrollToBottom(); ScrollToBottom ();
} )
_AdjustIcons(); _AdjustIcons ();
} )
function _print(t) Fonction _print (t)
{ (
external.proxy.print(t); External.proxy.print (t);
} )
function _AdjustIcons() _AdjustIcons Function ()
{ (
if (!inAdjust) If (! InAdjust)
{ (
inAdjust=true; InAdjust = true;
try { Try (
var f=7; // default flags Var f = 7, / / flags par défaut
_getTextBody(); _getTextBody ();
var sbars = (textBody.clientHeight < textBody.scrollHeight); Var sbars = (textBody.clientHeight <textBody.scrollHeight);
var trm = ( (buddyicon.style.display != "none" || hasSuperBuddy || hasWallpaper) ? 60 : 4); Var trm = ((buddyicon.style.display! = "None" | | hasSuperBuddy | | hasWallpaper)? 60: 4);
var bsr = ((buddyicon.style.display != "none" ) ? (sbars ? 25 : 4) : 0); Var bsr = ((buddyicon.style.display! = "None" )? (Sbars? 25: 4): 0);
var fsp = (hasWallpaper ? (sbars ? 77 : 59) : 0); Var fsp = (hasWallpaper? (Sbars? 77: 59): 0);
textBody.scroll= (sbars? "yes" : "no" ); TextBody.scroll = (sbars? "Yes": "no" );
if (AIMX&&AIMX.adjust) f=AIMX.adjust(sbars, trm, bsr, fsp); If (AIMX & & AIMX.adjust) f = AIMX.adjust (sbars, trm, bsr, fsp);
if(f & 1) If (f & 1)
{ (
textBody.rightMargin = trm;// + "px"; TextBody.rightMargin = trm, / / + "px";
} )
if(f & 2) If (f & 2)
{ (
buddyicon.style.right = bsr;// + "px"; Buddyicon.style.right = bsr, / / + "px";
superGroupDiv.style.right = (sbars ? 18 : 0);// + "px"; SuperGroupDiv.style.right = (sbars? 18: 0), / / + "px";
} )
if(f & 4) If (f & 4)
{ (
faderSurround.style.paddingRight = fsp;// + "px"; FaderSurround.style.paddingRight = fsp, / / + "px";
} )
} catch (e) { ) Catch (e) (
_print("Exception in _AdjustIcons(): " + e.description); _print ( "Exception dans _AdjustIcons ():" + e.description);
} )
inAdjust=false; InAdjust = false;
if(stuckToBottom) If (stuckToBottom)
{ (
scrollToBottom(); ScrollToBottom ();
} )
} )
} )
function _onLoadFunction() _onLoadFunction Function ()
{ (
statusIndicator.style.right ="20"; StatusIndicator.style.right = "20";
statusIndicator.style.paddingLeft ="20"; StatusIndicator.style.paddingLeft = "20";
textWindow.attachEvent('onscroll', _checkStuckToBottom); TextWindow.attachEvent ( 'onscroll', _checkStuckToBottom);
_checkScroll(); _checkScroll ();
/* / *
_print("textBody.leftMargin = " + textBody.leftMargin); _print ( "TextBody.leftMargin =" + textBody.leftMargin);
_print("textBody.rightMargin = " + textBody.rightMargin); _print ( "TextBody.rightMargin =" + textBody.rightMargin);
_print("textBody.topMargin = " + textBody.topMargin); _print ( "TextBody.topMargin =" + textBody.topMargin);
_print("textBody.bottomMargin = " + textBody.bottomMargin); _print ( "TextBody.bottomMargin =" + textBody.bottomMargin);
_print("faderSurround.style.paddingTop = " + faderSurround.style.paddingTop); _print ( "FaderSurround.style.paddingTop =" + faderSurround.style.paddingTop);
_print("faderSurround.style.paddingBottom = " + faderSurround.style.paddingBottom); _print ( "FaderSurround.style.paddingBottom =" + faderSurround.style.paddingBottom);
_print("faderSurround.style.paddingLeft = " + faderSurround.style.paddingLeft); _print ( "FaderSurround.style.paddingLeft =" + faderSurround.style.paddingLeft);
_print("faderSurround.style.paddingRight = " + faderSurround.style.paddingRight); _print ( "FaderSurround.style.paddingRight =" + faderSurround.style.paddingRight);
*/ * /
} )
onresize = _checkScroll; Onresize = _checkScroll;
onload = _onLoadFunction; Onload = _onLoadFunction;
function _checkStuckToBottom() _checkStuckToBottom Function ()
{ (
_getTextBody(); _getTextBody ();
if(isInitial || textBody.clientHeight == 0) return; If (isInitial | | textBody.clientHeight == 0) return;
/* put a padding in here of 20 pixels */ / * Mettre un padding ici de 20 pixels * /
if( (textBody.scrollTop + textBody.clientHeight + 20) >= textBody.scrollHeight || textBody.clientHeight > textBody.scrollHeight) If ((textBody.scrollTop + textBody.clientHeight + 20)> = textBody.scrollHeight | | textBody.clientHeight> textBody.scrollHeight)
{ (
stuckToBottom = true; StuckToBottom = true;
} )
else Else
{ (
stuckToBottom = false; StuckToBottom = false;
} )
} )
function _mark() _mark Function ()
{ (
var c = document.all.length; Var c = document.all.length;
for (var i=0;i<c;i++) For (var i = 0; i <c; i + +)
document.all[i].aim=true; Document.all [i]. Viser = true;
_sweep = _sweep2; _sweep = _sweep2;
} )
function _sweep() {} _sweep Function () ()
function _sweep2() _sweep2 Function ()
{ (
s = { "CAPTION":1,"COL":1,"COLGROUP":1,"FRAMESET":1,"HTML":1, S = ( "CAPTION": 1, "COL": 1, "COLGROUP": 1, "FRAMESET": 1, "HTML": 1,
"TBODY":1,"TD":1,"TFOOT":1,"TH":1,"THEAD":1,"TR":1}; "TBODY": 1, "TD": 1, "TFOOT": 1, "TH": 1, "THEAD": 1, "TR": 1);
var d=[]; Var d = [];
var c= document.all.length; Var c = document.all.length;
for (var i=0;i<c; i++) For (var i = 0; i <c; i + +)
{ (
var o = document.all[i]; Var o = document.all [i];
if (!o.aim && !s[o.tagName.toUpperCase()]) d.push(o); If (! O.aim & &! S [o.tagName.toUpperCase ()]) d.push (o);
} )
var c = d.length; Var c = d.length;
for (var i=0;i<c; i++) { d[i].outerHTML=""; } For (var i = 0; i <c; i + +) (d [i]. OuterHTML = ""
} )
/* \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ */ / * \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / * /
// Boxely Interface / / Interface Boxely
function isStuckToBottom() { return stuckToBottom; } IsStuckToBottom function () (return stuckToBottom
// Shows or hides status text indicator. / / Affiche ou cache indicateur de l'état de texte.
function statusText(text) Fonction statusText (texte)
{ (
if( !text || text=="" ) If (! Texte | | texte =="" )
{ (
statusIndicator.style.display = "none"; StatusIndicator.style.display = "none";
} )
else Else
{ (
statusIndicator.innerHTML = text; StatusIndicator.innerHTML = text;
statusIndicator.style.display = "inline"; StatusIndicator.style.display = "inline";
} )
} )
//---------------------------------------------------------------------------- //------------------------------------------------ ----------------------------
//IM Text / / IM Texte
function focusText() { _getTextBody().focus(); } FocusText function () (_getTextBody (). Focus ()
function scrollToBottom() ScrollToBottom function ()
{ (
_getTextBody(); _getTextBody ();
textBody.scrollTop = textBody.scrollHeight; TextBody.scrollTop = textBody.scrollHeight;
} )
function appendHTML(source, html, plain) Fonction appendHTML (source, html, plain)
{ (
_getTextBody(); _getTextBody ();
textBody.insertAdjacentHTML('beforeEnd', html); TextBody.insertAdjacentHTML ( 'beforeEnd', html);
if (AIMX) If (AIMX)
{ (
if (1==source && AIMX.receivedIm) If (1 == source & & AIMX.receivedIm)
AIMX.receivedIm(plain); AIMX.receivedIm (ordinaire);
else if (0==source && AIMX.sentIm) Else if (0 == & & source AIMX.sentIm)
AIMX.sentIm(plain); AIMX.sentIm (ordinaire);
} )
if( stuckToBottom ) If (stuckToBottom)
{ (
scrollToBottom(); ScrollToBottom ();
// move cursor to the end of the page / / Déplacer le curseur à la fin de la page
var range = textBody.createTextRange(); Var range = textBody.createTextRange ();
range.collapse(false); Range.collapse (false);
range.select(); Range.select ();
} )
if(isInitial) If (isInitial)
{ (
isInitial = false; IsInitial = false;
} )
_AdjustIcons(); _AdjustIcons ();
} )
function clearHTML() ClearHTML function ()
{ (
_getTextBody(); _getTextBody ();
textBody.innerHTML = ""; TextBody.innerHTML = "";
_AdjustIcons(); _AdjustIcons ();
} )
// Somtimes we need to clear the history. / / Somtimes nous avons besoin pour effacer l'histoire. since it's not contained in a span Car elle n'est pas contenue dans une travée
// tag, we just readd the ad and the spam box. / / Tag, nous venons readd de cette annonce et de la boîte à spam.
function clearHistory() ClearHistory function ()
{ (
_getTextBody(); _getTextBody ();
spamSpan = textWindow.document.getElementById('spamSpan'); SpamSpan = textWindow.document.getElementById ( 'spamSpan');
if(spamSpan) If (spamSpan)
{ (
spamSpan.parentNode.removeChild(spamSpan); SpamSpan.parentNode.removeChild (spamSpan);
} )
textBody.innerHTML = ""; TextBody.innerHTML = "";
textBody.appendChild(spamSpan); TextBody.appendChild (spamSpan);
} )
function getHTML() Function getHTML ()
{ (
_getTextBody(); _getTextBody ();
// remove spam text / / Supprimer les spams texte
var div = textWindow.document.getElementById('spamSpan'); Var div = textWindow.document.getElementById ( 'spamSpan');
if(div) If (Div)
{ (
div.parentNode.removeChild(div); Div.parentNode.removeChild (Div);
} )
return textBody.innerHTML; TextBody.innerHTML retour;
} )
function superBuddyBuddyTrigger(text) Fonction superBuddyBuddyTrigger (texte)
{ (
if(document.all.MetaStreamCtl) If (document.all.MetaStreamCtl)
{ (
return document.all.MetaStreamCtl.ProcessMessage (text); Retour document.all.MetaStreamCtl.ProcessMessage (texte);
} )
} )
var conversationSheet; ConversationSheet var;
function addRule(name, value) AddRule fonction (nom, valeur)
{ (
conversationSheet = textWindow.document.createStyleSheet(); ConversationSheet = textWindow.document.createStyleSheet ();
conversationSheet.addRule(name, value); ConversationSheet.addRule (nom, valeur);
} )
function flipTimestamp() FlipTimestamp function ()
{ (
if(conversationSheet.rules[0].style.display == "inline" ) If (conversationSheet.rules [0]. Style.display == "inline" )
{ (
conversationSheet.rules[0].style.display = "none"; ConversationSheet.rules [0]. Style.display = "none";
} )
else Else
{ (
conversationSheet.rules[0].style.display = "inline"; ConversationSheet.rules [0]. Style.display = "inline";
} )
_AdjustIcons(); _AdjustIcons ();
} )
function setFlashVer(v) Fonction setFlashVer (v)
{ (
flashVersion = v; FlashVersion = v;
MM_FlashCanPlay = v >= MM_contentVersion; MM_FlashCanPlay = v> = MM_contentVersion;
_initializeFlash(); _initializeFlash ();
} )
// If a pref is added later which wants to know if flash is / / Si une pref est ajoutée par la suite, qui veut savoir si le flash est
// working, an easy check is to run / / Travail, une vérification est facile à courir
// if( ! FlashCtl.object ) // no flash! / / If (! FlashCtl.object) / / pas de flash!
function playSmiley(index) PlaySmiley fonction (indice)
{ (
index++; //index passed in is base 0, we need base 1 Index + +; / / indice de base est passée de 0, nous avons besoin de base 1
if ( MM_FlashCanPlay ) If (MM_FlashCanPlay)
{ (
document.all.FlashCtl.setVariable("opacity",30); Document.all.FlashCtl.setVariable ( "opacité", 30);
document.all.FlashCtl.setVariable("emote",index); Document.all.FlashCtl.setVariable ( "emote", index);
} )
} )
function _initializeFlash() _initializeFlash Function ()
{ (
if ( MM_FlashCanPlay ) If (MM_FlashCanPlay)
{ (
var obj = '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ Var obj = '<OBJECT classid = "clsid: D27CDB6E-AE6D-11cf-96B8-444553540000"' +
' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" '+ "Codebase =" http://download.macromedia.com/pub [...] wflash.cab # version = 6,0,0,0 " '+
' ID="FlashCtl" WIDTH="100%" HEIGHT="100%" ALIGN="">'+ "ID =" FlashCtl "WIDTH =" 100% "HEIGHT =" 100% "ALIGN ="">'+
' <PARAM NAME=movie VALUE="Emoticals_bitmap.swf"> <PARAM NAME=quality VALUE=high>'+ '<PARAM NAME=movie VALUE="Emoticals_bitmap.swf"> <PARAM NAME=quality VALUE=high>' +
' <PARAM NAME=wmode VALUE="transparent">'+ '<PARAM NAME=wmode VALUE="transparent">' +
' </OBJECT>'; '</ OBJECT>';
FlashDiv.innerHTML = obj; FlashDiv.innerHTML = obj;
} )
else Else
{ (
FlashDiv.style.visibility="hidden"; FlashDiv.style.visibility = "hidden";
} )
} )
function onFSCommand(c,a) OnFSCommand fonction (c, a)
{ (
if (AIMX&&AIMX.flash) AIMX.flash(c,a); If (AIMX & & AIMX.flash) AIMX.flash (c, a);
} )
//---------------------------------------------------------------------------- //------------------------------------------------ ----------------------------
//Spam / / Spam
function setupSpam(t, l) SetupSpam fonction (t, l)
{ (
textWindow.spamText.innerHTML = t; TextWindow.spamText.innerHTML = t;
textWindow.spamLink.innerHTML = l; TextWindow.spamLink.innerHTML = l;
} )
function enableSpam(d) { textWindow.spamLink.disabled=d; } Fonction enableSpam (d) (textWindow.spamLink.disabled = d
function showSpam(s) ShowSpam fonction (s)
{ (
var div = textWindow.document.getElementById('spamSpan'); Var div = textWindow.document.getElementById ( 'spamSpan');
if(s) If (s)
{ (
div.style.display = "inline"; Div.style.display = "inline";
} )
else Else
{ (
div.style.display = "none"; Div.style.display = "none";
} )
} )
//---------------------------------------------------------------------------- //------------------------------------------------ ----------------------------
// Expressions: / / Expressions:
function setBuddyIcon(s) SetBuddyIcon fonction (s)
{ (
var b=true; Var b = true;
if (AIMX&&AIMX.canShowBuddy) b=AIMX.canShowBuddy(s, false); If (AIMX & & AIMX.canShowBuddy) b = AIMX.canShowBuddy (s, false);
if(b && s) If (b & & s)
{ (
buddyicon.src=s; Buddyicon.src = s;
buddyicon.style.display = "inline"; Buddyicon.style.display = "inline";
superGroupDiv.innerHTML = ""; SuperGroupDiv.innerHTML = "";
} )
else Else
{ (
superGroupDiv.innerHTML = ""; SuperGroupDiv.innerHTML = "";
buddyicon.style.display = "none"; Buddyicon.style.display = "none";
} )
hasSuperBuddy = false; HasSuperBuddy = false;
_AdjustIcons(); _AdjustIcons ();
} )
function setSuperBuddyIcon(s) SetSuperBuddyIcon fonction (s)
{ (
hasSuperBuddy = false; HasSuperBuddy = false;
buddyicon.style.display = "none"; Buddyicon.style.display = "none";
superGroupDiv.innerHTML = ""; SuperGroupDiv.innerHTML = "";
_AdjustIcons(); _AdjustIcons ();
if (s==null) return; If (s == null) return;
var b=true; Var b = true;
if (AIMX&&AIMX.canShowBuddy) b=AIMX.canShowBuddy(s,true); If (AIMX & & AIMX.canShowBuddy) b = AIMX.canShowBuddy (s, true);
if (b) If (b)
{ (
superGroupDiv.innerHTML = '<object ' + SuperGroupDiv.innerHTML = '<object' +
'id="MetaStreamCtl" '+ 'Id = "MetaStreamCtl"' +
'classid="CLSID:AE98F132-0B5F-44CF-A7B9-AA88A5A65382" '+ 'Classid = "CLSID: AE98F132-0B5F-44CF-A7B9-AA88A5A65382"' +
'width=80 '+ "Width = 80 '+
'height=80 '+ "Height = 80 '+
'onFocus="focusText()" '+ "OnFocus =" focusText () " '+
'codebase="https://components.viewpoint.com/MTSInstallers/MetaStream3.cab#Version=3,0,2,62" VIEWASTEXT> '+ "Codebase =" https: / / components.viewpoint.com/MTSInstallers/MetaStream3.cab # Version = 3,0,2,62 "VIEWASTEXT> '+
//'<param name="Source" value="http://cdn-cf.aol.com/se/superbud/yellow_dog/yellow_dog_preloader.mtz"> '+ / / <param Name="Source" value="http://cdn-cf.aol.com/se/superbud/yellow_dog/yellow_dog_preloader.mtz"> '+
'<param name="Component" value="ISceneComponent"> '+ '<param Name="Component" value="ISceneComponent">' +
'<param name="ComponentFileName" value="SceneComponent.mtc"> '+ '<param Name="ComponentFileName" value="SceneComponent.mtc">' +
'<param name="BroadcastKeyFileURL" value=""> '+ '<param Name="BroadcastKeyFileURL" value="">' +
'<param name="GenieMinimumVersion" value="50333696"> '+ '<param Name="GenieMinimumVersion" value="50333696">' +
'</object>'; '</ Object>';
try Essayez
{ (
buddyicon.style.display = "none"; Buddyicon.style.display = "none";
document.all.MetaStreamCtl.PluginCommand ('ForceHostLayering(1)', 0, 0); Document.all.MetaStreamCtl.PluginCommand ( 'ForceHostLayering (1)', 0, 0);
document.all.MetaStreamCtl.SetSuperBuddy (s, 'EN'); Document.all.MetaStreamCtl.SetSuperBuddy (s, 'FR');
hasSuperBuddy = true; HasSuperBuddy = true;
} )
catch(e) Catch (e)
{ (
superGroupDiv.innerHTML = ""; SuperGroupDiv.innerHTML = "";
_AdjustIcons(); _AdjustIcons ();
throw(e) Throw (e)
} )
_AdjustIcons(); _AdjustIcons ();
} )
} )
function setBuddyWallpaper(u, f) SetBuddyWallpaper fonction (u, f)
{ (
var b=true; Var b = true;
if (AIMX&&AIMX.canShowWallpaper) b=AIMX.canShowWallpaper(u,f); If (AIMX & & AIMX.canShowWallpaper) b = AIMX.canShowWallpaper (u, f);
if (b) If (b)
{ (
if ( f) If (f)
{ (
var obj = '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ Var obj = '<OBJECT classid = "clsid: D27CDB6E-AE6D-11cf-96B8-444553540000"' +
' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" '+ "Codebase =" http://download.macromedia.com/pub [...] wflash.cab # version = 6,0,0,0 " '+
' ID="FlashWallpaperCtl" WIDTH="100%" HEIGHT="100%" ALIGN="">'+ "ID =" FlashWallpaperCtl "WIDTH =" 100% "HEIGHT =" 100% "ALIGN ="">'+
' <PARAM NAME=movie VALUE="' + u + '"> <PARAM NAME=quality VALUE=high>'+ '<PARAM NAME=movie VALUE="' + u +'"> <PARAM NAME=quality VALUE=high>' +
' <PARAM NAME=wmode VALUE="transparent">'+ '<PARAM NAME=wmode VALUE="transparent">' +
' </OBJECT>'; '</ OBJECT>';
BuddyWallpaperDiv.innerHTML = obj; BuddyWallpaperDiv.innerHTML = obj;
hasWallpaper=true; HasWallpaper = true;
} )
else if (f==false && u) Else if (f == false & & u)
{ (
BuddyWallpaperDiv.innerHTML='<div style="width:100%; height:100%; background-image: url(' + u + ');"></div>'; BuddyWallpaperDiv.innerHTML = '<div style="width:100%; height:100%; background-image: url(' + u +');"> </ div>';
hasWallpaper=true; HasWallpaper = true;
} )
else Else
{ (
BuddyWallpaperDiv.innerHTML=""; BuddyWallpaperDiv.innerHTML = "";
hasWallpaper=false; HasWallpaper = false;
} )
} )
else Else
{ (
BuddyWallpaperDiv.innerHTML=""; BuddyWallpaperDiv.innerHTML = "";
hasWallpaper=false; HasWallpaper = false;
} )
_AdjustIcons(); _AdjustIcons ();
} )
function setWallpaperOverlay(u, f) SetWallpaperOverlay fonction (u, f)
{ (
var b=true; Var b = true;
if (AIMX&&AIMX.canShowOverlay) b=AIMX.canShowOverlay(u,f); If (AIMX & & AIMX.canShowOverlay) b = AIMX.canShowOverlay (u, f);
if (b) If (b)
{ (
if (f) If (f)
{ (
var obj = '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ Var obj = '<OBJECT classid = "clsid: D27CDB6E-AE6D-11cf-96B8-444553540000"' +
' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" '+ "Codebase =" http://download.macromedia.com/pub [...] wflash.cab # version = 6,0,0,0 " '+
' ID="FlashWallpaperCtl" WIDTH="100%" HEIGHT="100%" ALIGN="">'+ "ID =" FlashWallpaperCtl "WIDTH =" 100% "HEIGHT =" 100% "ALIGN ="">'+
' <PARAM NAME=movie VALUE="' + u + '"> <PARAM NAME=quality VALUE=high>'+ '<PARAM NAME=movie VALUE="' + u +'"> <PARAM NAME=quality VALUE=high>' +
' <PARAM NAME=wmode VALUE="transparent">'+ '<PARAM NAME=wmode VALUE="transparent">' +
' </OBJECT>'; '</ OBJECT>';
wallPaperOverlay.innerHTML = obj; WallPaperOverlay.innerHTML = obj;
hasWallpaper=true; HasWallpaper = true;
} )
else if (f==false && u) Else if (f == false & & u)
{ (
wallPaperOverlay.innerHTML='<div style="width:100%; height:100%; background-image: url(' + u + ');"></div>'; WallPaperOverlay.innerHTML = '<div style="width:100%; height:100%; background-image: url(' + u +');"> </ div>';
hasWallpaper=true; HasWallpaper = true;
} )
else Else
{ (
wallPaperOverlay.innerHTML=""; WallPaperOverlay.innerHTML = "";
hasWallpaper=false; HasWallpaper = false;
} )
} )
else Else
{ (
wallPaperOverlay.innerHTML=""; WallPaperOverlay.innerHTML = "";
hasWallpaper=false; HasWallpaper = false;
} )
_AdjustIcons(); _AdjustIcons ();
} )
function getTextWindowStyleSheets() GetTextWindowStyleSheets function ()
{ (
return textWindow.document.styleSheets; TextWindow.document.styleSheets retour;
} )
</script> </ Script>
<body scroll="no" marginheight="0" marginwidth="0" onFocus="focusText();"> <body Scroll="no" marginheight="0" marginwidth="0" onFocus="focusText();">
<div id="BuddyWallpaperDiv" class="BuddyWallpaperDiv"></div> <div Id="BuddyWallpaperDiv" class="BuddyWallpaperDiv"> </ div>
<div id="faderSurround" class="faderSurround"> <div Id="faderSurround" class="faderSurround">
<div id="fader" class="fader"></div> <div Id="fader" class="fader"> </ div>
</div> </ Div>
<div id="gallery" class="gallery"> <div Id="gallery" class="gallery">
<img id="buddyicon" class="buddyicon" align="right" unselectable="on"> Id="buddyicon" class="buddyicon" <img align="right" unselectable="on">
<div id="superGroupDiv" class="superGroupDiv" align="right"/> <div Id="superGroupDiv" class="superGroupDiv" align="right"/>
</div> </ Div>
<div id="FlashDiv" class="FlashDiv" ></div> <div Id="FlashDiv" class="FlashDiv"> </ div>
<div id="wallPaperOverlay" class="wallPaperOverlay"></div> <div Id="wallPaperOverlay" class="wallPaperOverlay"> </ div>
<iframe id="textWindow" class="textWindow" src="default.htm" ALLOWTRANSPARENCY="true" SECURITY="restricted"></iframe> <iframe Id="textWindow" class="textWindow" src="default.htm" ALLOWTRANSPARENCY="true" SECURITY="restricted"> </ iframe>
<div unselectable="on" id="statusIndicator" class="statusIndicator"/> <div Unselectable="on" id="statusIndicator" class="statusIndicator"/>
</body> </ Body>
</html> </ Html>