How to access a nested function from another nested function in javascript?

Weird Aim chatbox code?

  • i went to open a im session with my friend and this showed up.. <!-- **************************************… * * File Name: template.html * **************************************… * C O P Y R I G H T A N D C O N F I D E N T I A L I T Y N O T I C E **************************************… * * Copyright (c) 2007 AOL LLC. All rights reserved. * This software contains valuable confidential and proprietary * information of AOL LLC. and is subject to applicable * licensing agreements. Unauthorized reproduction, transmission or * distribution of this file and its contents is a violation of * applicable laws. * * A O L C O N F I D E N T I A L * **************************************… --> <html> <head> <link rel="stylesheet" type="text/css" href="template.css"> <style type="text/css"></style> <script for=SWF1 event=FSCommand>onFSCommand(arguments[0]… <script for=SWF2 event=FSCommand>onFSCommand(arguments[0]… <script for=SWF3 event=FSCommand>onFSCommand(arguments[0]… <script for=SWF4 event=FSCommand>onFSCommand(arguments[0]… <script src="default.js"></script> </head> <script language="JavaScript"> var AIMX = null; var AIMXURL = ""; var AIMXCSS = ""; var stuckToBottom=true; var isInitial=true; var hasBuddyIcon=false; var hasSuperBuddy=false; var hasWallpaper=false; var inAdjust=false; var scrollbarExists=false; var debugWindow=null; var textBody=null; var flashVersion=0; var MM_contentVersion = 6; var MM_FlashCanPlay=false; var aimxHeaderColor = null; var objHistory=null; //conversation history window wrapper // -------------------------- // AIM Partner Expression API function getAIMXApiVersion() { return 2; } function getFlashVersion() { return flashVersion; } function getImTextStyleIsTransparent() { // return true if the current style needs a fader. var c = textWindow.document.getElementById("clas… return (c == "") ? false : true; } function getImTextDoc() { return textWindow.document; } function getImTextWindow() { return document.getElementById("textWindow"); } function getImTextBody() { return _getTextBody(); } function getImTextIconStyle() { return buddyicon.style; } function getImTextFaderStyle() { return faderSurround.style; } function getRootElement() { return textWindow.document.documentElement; } function appendImText(html) { appendHTML(-1, html, ""); } function clearImText() { clearHTML(); } function showImText(e) { textWindow.style.display=e?"":"none" } function Adjust() { _AdjustIcons(); } function handleURL(u) { external.proxy.launchURL(u); } function getAIMXHeaderColor(){ return aimxHeaderColor; } function AIMXHeaderColor(local, remote) // we need to access these values for defining in-line styles in Boxely JavaScript { this.local = local; this.remote = remote; } function addImTextRule(sel,style) { var pos = style.search(/color/i); if (pos > -1) { var color = style.replace(/color:\s*(#[a-zA-Z0-9]+)/… "$1"); // before replace "color:#FF0000" after replace "#FF0000" switch (sel) { case ".localName": aimxHeaderColor.local = color; break; case ".remoteName": aimxHeaderColor.remote = color; break; default: break; } } var selector = convertSelector(sel); AIMXCSS.styleSheet.addRule(selector, style); // switch statement goes here for add css rules } /* This a simple lookup method for converting AIM 6.x css to AIM 7.0 css. * We use this to support backwards compatability for AIMX usage of this API */ function convertSelector(sel) { var selector = sel; switch (sel) { case ".localName": selector = ".color_font-header_local"; break; case ".remoteName": selector = ".color_font-header_remote_0"; break; default: break; } return selector; } function resetImTextStyles() { if (AIMXCSS != "") { var rules = AIMXCSS.styleSheet.rules; rules.disabled = true; while (rules.leng

  • Answer:

    It means you shouldn't comment on my questions if you're gonna be a big asshole. FYL for thinking you have a epeen, let alone a peen.

GRD at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.