function Element() { } /******************************************************************** HTML ¿ä¼Ò »ý¼º [2008.07.30 / ±è¹Î¿µ] ********************************************************************/ Element.prototype.createElement = function(Obj) { if (!Obj.TagName) return alert('¿¤¸®¸ÕÆ® »ý¼º¿¡ ÇÊ¿äÇÑ ³ëµåÀ̸§ ¿É¼ÇÀÌ ºüÁ³½À´Ï´Ù.'); var ParentNode = document.createElement('DIV'); var NewElem = document.createElement(Obj.TagName); if (Obj.Name) { NewElem.setAttribute("NAME", Obj.Name); NewElem.setAttribute("ID", Obj.Name); } if (Obj.Size) NewElem.setAttribute("SIZE", Obj.Size); if (Obj.Type) NewElem.setAttribute("TYPE", Obj.Type); if (Obj.FrameBorder) NewElem.setAttribute("FRAMEBORDER", Obj.FrameBorder); if (Obj.Width) NewElem.setAttribute("WIDTH", Obj.Width); if (Obj.Height) NewElem.setAttribute("HEIGHT", Obj.Height); if (Obj.Value) NewElem.setAttribute("VALUE", Obj.Value); if (Obj.Click) NewElem.setAttribute("ONCLICK", Obj.Click); ParentNode.appendChild(NewElem); return ParentNode; } /******************************************************************** getElementsByNameÀÇ ÁÙÀÓ [2008.07.30 / ±è¹Î¿µ] ********************************************************************/ Element.prototype.Name = function(Elem) { return document.getElementsByName(Elem); } /******************************************************************** getElementsByTagNameÀÇ ÁÙÀÓ [2008.09.25 / ±è¹Î¿µ] ********************************************************************/ Element.prototype.Tags = function(Elem) { return document.getElementsByTagName(Elem); } /******************************************************************** getElementByIdÀÇ ÁÙÀÓ [2008.07.30 / ±è¹Î¿µ] ********************************************************************/ Element.prototype.Id = function(Elem) { return document.getElementById(Elem); } /******************************************************************** document.all°ú À¯»ç [2008.07.30 / ±è¹Î¿µ] ********************************************************************/ Element.prototype.All = function(Elem) { var ById = this.Id(Elem); if (ById) return ById; else return this.Name(Elem).item(0); } /******************************************************************** ã´Â °³Ã¼ÀÇ °ª(value, innerHTML) [2008.07.30 / ±è¹Î¿µ] ********************************************************************/ Element.prototype.Value = function(Elem) { if (this.All(Elem)) { if (this.All(Elem).value) return this.All(Elem).value; else if (this.All(Elem).innerHTML) return this.All(Elem).innerHTML; else return ''; } } /******************************************************************** ÇØ´ç ¿ÀºêÁ§Æ®ÀÇ ¿ä¼Ò¸¦ ¸®½ºÆ®·Î [2008.07.30 / ±è¹Î¿µ] ********************************************************************/ Element.prototype.ObjList = function(Obj) { var ListValue = ""; for (var List in Obj) { ListValue += List + "
\n"; } document.body.innerHTML += ListValue; } /******************************************************************** °³Ã¼ÀÇ Æ÷Ä¿½º ÁöÁ¤ [2008.07.30 / ±è¹Î¿µ] ********************************************************************/ Element.prototype.Focus = function(Name) { this.All(Name).focus(); } /******************************************************************** °³Ã¼ÀÇ Ã¼Å© [2009.01.03 / ±è¹Î¿µ] ********************************************************************/ Element.prototype.Check = function(Elem) { if (Elem.checked == true) { Elem.checked = false; } else Elem.checked = true; } if (!MyRoute) var MyRoute = { Bbs: 'my.bbs', Skin: 'my.skin', Css: 'my.css', Data: 'my.data', Image: 'my.image', ProImage: 'my.data/shop.image' }; if (!Param) var Param = {}; if (!Session) var Session = {}; if (!Server) var Server = {}; Server.Date = '20120223215353'; Server.Remote = '38.107.179.209'; var Cookie = Cookie ? Cookie : null; var XML = XML ? XML : null; var Let = Let ? Let : null; var Style = Style ? Style : null; var Zip = Zip ? Zip : null; var Em = Em ? Em : null; var File = File ? File : null; var IWin = IWin ? IWin : null; try { if (Cookies) Cookie = new Cookies(); } catch (e) {} try { if (MY_XML) XML = new MY_XML(); } catch (e) {} try { if (Letter) Let = new Letter(); } catch (e) {} try { if (StyleEvent) Style = new StyleEvent(); } catch (e) {} try { if (ZipCode) Zip = new ZipCode(); } catch (e) {} try { if (Element) Em = new Element(); } catch (e) {} try { if (FileAccess) File = new FileAccess(); } catch (e) {} try { if (IWindow) IWin = new IWindow('IWin'); } catch (e) {} window.LoadedJsModule = 1;