Имя пользователя:
Пароль:  
Помощь | Регистрация | Забыли пароль?  

Показать сообщение отдельно

Пользователь


Сообщения: 126
Благодарности: 3

Профиль | Отправить PM | Цитировать


Боевой доклад
Цитата:
Эм.... ну мне кажется, что нужно что бы вы предоставили исходный код того боевого доклада, над которым будет производится определенные манипуляции. А дальше, я так думаю - нужно будет удалять с него теги лишние и так далее. Вообщем пока задания совсем не ясно
Ловите
читать дальше »
PHP код: Выделить весь код

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
>
<
html xmlns="http://www.w3.org/1999/xhtml">
    <
head>
        <
meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <
meta name="language" content="de" />
        <
meta name="author" content="Gameforge AG" />
        <
meta name="publisher" content="Gameforge AG" />
        <
meta name="copyright" content="Gameforge AG" />
        <
meta name="page-type" content="Браузерная игра" />
        <
meta name="page-topic" content="Браузерная игра, стратегия, онлайн игра" />
        <
meta name="audience" content="all" />
        <
meta name="Expires" content="never" />
        <
meta name="Keywords" content="Ikariam, древний мир, игра, стратегия, бесплатно, онлайн, ролевая, браузер, играть"/>
        <
meta name="Description" content="Ikariam - это бесплатная браузерная игра. Задача игроков заключается в управлении народом в древнем мире, основывая города, ведя торговлю и завоевывая другие острова." />
        <
meta name="robots" content="index,follow" />
        <
meta name="Revisit" content="After 14 days" />
        <
title>Ikariam Мир Beta </title>
        <
link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
        <
link href="/skin/ik_common_0.3.0.css" rel="stylesheet" type="text/css" media="screen" />
        <
link href="/skin/ik_militaryAdvisorReportView_0.3.0.css" rel="stylesheet" type="text/css" media="screen" />


        <
script type="text/javascript" src="/js/complete-0.3.0.js"></script>
                <script type="text/javascript">
        /* <![CDATA[ */
        var Event = YAHOO.util.Event,
        Dom   = YAHOO.util.Dom,
        lang  = YAHOO.lang;

        var LocalizationStrings = {};
        LocalizationStrings['timeunits'] = {};
        LocalizationStrings['timeunits']['short'] = {};
        LocalizationStrings['timeunits']['short']['day'] = 'Д.';
        LocalizationStrings['timeunits']['short']['hour'] = 'ч.';
        LocalizationStrings['timeunits']['short']['minute'] = 'мин.';
        LocalizationStrings['timeunits']['short']['second'] = 'с.';
        LocalizationStrings['language']                     = 'ru';
        LocalizationStrings['decimalPoint']               = '.';
        LocalizationStrings['thousandSeperator']     = ',';
        
        LocalizationStrings['resources'] = {};
        LocalizationStrings['resources']['wood'] = 'Стройматериалы';
        LocalizationStrings['resources']['wine'] = 'Виноград';
        LocalizationStrings['resources']['marble'] = 'Мрамор';
        LocalizationStrings['resources']['crystal'] = 'Хрусталь';
        LocalizationStrings['resources']['sulfur'] = 'Сера';
        LocalizationStrings['resources'][0] = LocalizationStrings['resources']['wood'];
        LocalizationStrings['resources'][1] = LocalizationStrings['resources']['wine'];
        LocalizationStrings['resources'][2] = LocalizationStrings['resources']['marble'];
        LocalizationStrings['resources'][3] = LocalizationStrings['resources']['crystal'];
        LocalizationStrings['resources'][4] = LocalizationStrings['resources']['sulfur'];
        
        LocalizationStrings['warnings'] = {};
        LocalizationStrings['warnings']['premiumTrader_lackingStorage'] = "Für folgende Rohstoffe fehlt dir Speicherplatz: $res";
        LocalizationStrings['warnings']['premiumTrader_negativeResource'] = "Du hast zuwenig $res für diesen Handel";
        
        IKARIAM = {
                phpSet : {
                        serverTime : "1237108782",
                        currentView : "militaryAdvisorReportView"                        },
                currentCity : {
                        resources : {
                                wood: 111420,
                                wine: 5561,
                                marble: 1035,
                                crystal: 3873,
                                sulfur: 121500                        },
                        maxCapacity : {
                                wood: 123000,
                                wine: 121500,
                                marble: 121500,
                                crystal: 121500,
                                sulfur: 121500                        }
                },
                view : {
                        get : function() {
                                return IKARIAM.phpSet.currentView;
                                },
                        is : function(viewName) {
                                return (IKARIAM.phpSet.currentView == viewName)? true : false;
                                }
                        }
                };
                IKARIAM.time = {
                        serverTimeDiff : IKARIAM.phpSet.serverTime*1000-(new Date()).getTime()
                };
        
        
        
        /**
        * switches one item on and the other off.. but only if they share the same groupname.
        */
        selectGroup = {
            groups:new Array(), //[groupname]=item
            getGroup:function(group) {
                if(typeof(this.groups[group]) == "undefined") {
                    this.groups[group] = new Object();
                    this.groups[group].activeItem = "undefined";
                    this.groups[group].onActivate = function(obj) {};
                    this.groups[group].onDeactivate = function(obj) {};
                    }
                return this.groups[group];
            },
            activate:function(obj, group) {
                g = this.getGroup(group);
                if(typeof(g.activeItem) != "undefined") {
                    g.onDeactivate(g.activeItem);
                    }
                g.activeItem=obj;
                g.onActivate(obj);
            }
        };
        selectGroup.getGroup('cities').onActivate = function(obj) {
            YAHOO.util.Dom.addClass(obj.parentNode, "selected");
        }
        selectGroup.getGroup('cities').onDeactivate = function(obj) {
            YAHOO.util.Dom.removeClass(obj.parentNode, "selected");
        }

        /**
         * - will COPY all child nodes of the source-node that are marked with a CSS class to be child nodes of the target.
         * - will purge all children of the TARGET element that are marked the same special CSS class at each call, so previously copied will be deleted before copying new
         * - expects either an Id or an object.
         */
        function showInContainer(source, target, exchangeClass) {
            //objects or Id-strings, i don't care
            if(typeof source == "string") { source = Dom.get(source); }
            if(typeof target == "string") {target = Dom.get(target); }
            if(typeof exchangeClass != "string") { alert("Error: IKARIAM.showInContainer -> Forgot to add an exchangeClass?"); }
            //removal
            for(i=0; i<target.childNodes.length; i++) {
                if(typeof(target.childNodes[i].className) != "undefined" && target.childNodes[i].className==exchangeClass) {
                    target.removeChild(target.childNodes[i]);
                }
            }
            //clone new
            for(i=0; i<source.childNodes.length; i++) {
                if(typeof(source.childNodes[i].className) != "undefined" && source.childNodes[i].className==exchangeClass) {
                    clone = source.childNodes[i].cloneNode(true);
                    target.insertBefore(clone, target.firstChild.nextSibling);
                }
            }
        }

        selectedCity = -1;
        function selectCity(cityNum, cityId, viewAble) {
            if(selectedCity == cityNum) {
                if(viewAble) document.location.href="?view=city&id="+cityId;
                else document.location.href="#";
            } else {
                selectedCity = cityNum;
            }
            showInContainer("cityLocation"+cityNum,"information", "cityinfo");
            showInContainer("cityLocation"+cityNum,"actions", "cityactions");
            var container = document.getElementById("cities");
            var citySelectedClass = "selected";
        }

        //IE6 CSS Background-Flicker fix
        (function(){
            /*Use Object Detection to detect IE6*/
            var  m = document.uniqueID /*IE*/
            && document.compatMode  /*>=IE6*/
            && !window.XMLHttpRequest /*<=IE6*/
            && document.execCommand ;
            try{
                if(!!m){
                    m("BackgroundImageCache", false, true) /* = IE6 only */
                }
            }catch(oh){};
        })();
        /* ]]> */

        function myConfirm(message, target) {
            bestaetigt = window.confirm (message);
            if (bestaetigt == true)
              window.location.href = target;
        }
        </script>
    </head>
    <body id="militaryAdvisorReportView">
        <div id="container">
            <div id="container2">
                            <div id="header">
                    <h1>Ikariam</h1>
                    <h2>Древний мир!</h2>
                </div>
<div id="breadcrumbs"><h3>Вы здесь:</h3><a href="?view=worldmap_iso&islandX=11&islandY=100" class="world" title="Назад к карте мира">Мир</a><span> > </span><span class="building">Военный советник</span></div><!--------------------------------------------------------------------------------------
    ////////////////////////////////////////////////////////////////////////////////////
    ////////////////////////////// dynamic side-boxes //////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////////////
    -------------------------------------------------------------------------------------->
<div id="backTo" class="dynamic">
    <h3 class="header">Назад</h3>
    <div class="content">
        <a href="/index.php?view=militaryAdvisorCombatReports" title="Назад к советнику">
            <img src="skin/img/action_back.gif" width="160" height="100" />
            <span class="textLabel"><< Назад к советнику</span>
        </a>
    </div>
    <div class="footer"></div>
</div>

<div class="dynamic" id="viewMilitaryImperium">
    <h3 class="header">Обзор войск</h3>
    <div class="content">
        <img src="skin/premium/sideAd_premiumMilitaryAdvisor.jpg" width="203" height="85" />
        <p>Когда стройные ряды войск превращаются в неуправляемую толпу - время задуматься об управлении армией. Этот обзор - Ваш личный генеральный штаб.</p>
        <div class="centerButton">
            <a href="?view=premiumDetails" class="button">Просмотр.</a>
        </div>
    </div>
    <div class="footer"></div>
</div>
<!--------------------------------------------------------------------------------------
    ////////////////////////////////////////////////////////////////////////////////////
    //////////////////////////////////// main view /////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////////////
    -------------------------------------------------------------------------------------->
<div id="mainview">
    <div class="buildingDescription">
        <h1>Войска</h1>
        <p>Сэр! Я сообщу Вам обо всех передвижениях наших войск и о ходе сражений, а также немедленно уведомлю Вас  в случае нападения, Сэр!</p>
    </div>
    <div class="yui-navset">
        <ul class="yui-nav">
            <li><a href="?view=militaryAdvisorMilitaryMovements" title="Перемещения войск"><em>Перемещения войск (0)</em></a></li>
            <li class="selected"><a href="?view=militaryAdvisorCombatReports" title="Боевые доклады"><em>Боевые доклады (3)</em></a></li>
        </ul>
    </div>
    <div id="troopsReport">
       <div class="contentBox01h">
            <h3 class="header">Исход битвы</h3>
            <div class="content">
                <ul id="battleReportDetail">
                <table cellspacing="0" cellpadding="0" id="ergebnis">
                    <tr>
                        <td colspan="7" class="battle">
                            <img src="skin/layout/icon-crossedswords.gif" align="bottom" />
                            Битва за <a href="index.php?view=island&id=352&selectCity=227172">Константинополь</a> (11.03.2009 6:01:20)                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                        Bars66 из Александрия<br />                        </td>
                        <td>vs</td>
                        <td colspan="3">
                        DarkAngel из Константинополь<br />                        </td>
                    </tr>
                    <tr class="rep"><!--  attacker -->
                        <td valign="middle" class="sum"><img src="skin/layout/sword-icon-report.gif" alt="Сила нападения:" /> Сила нападения:</td>
                        <td class="own" title="Сила моей атаки"></td>
                        <td title="Общая сила атаки ">18</td>
                        <td></td><!--  deffender -->
                        <td valign="middle" class="sum"><img src="skin/layout/sword-icon-report.gif" alt="Сила нападения:" /> Сила нападения:</td>
                        <td class="own" title="Сила нападения:"></td>
                        <td>0</td>
                    </tr>
                    <tr class="rep"><!--  attacker -->
                        <td valign="middle" class="sum"><img src="skin/layout/shield-icon-report.gif"  alt="Сила защиты:" /> Сила защиты:</td>
                        <td class="own" title="Собственная сила защиты"></td>
                        <td title="Общая сила защиты">39</td>
                        <td></td><!--  deffender -->
                        <td valign="middle" class="sum"><img src="skin/layout/shield-icon-report.gif" alt="Сила защиты:" /> Сила защиты:</td>
                        <td class="own" title="Собственная сила защиты"></td>
                        <td>0</td>
                    </tr>
                    <tr class="rep"><!--  attacker -->
                        <td valign="middle" class="sum"><img src="skin/layout/icon-endurance2.gif" alt="Стойкость:" /> Стойкость:</td>
                        <td class="own" title="Собственная выносливость"></td>
                        <td title="Общая выносливость">6</td>
                        <td></td><!--  deffender -->
                        <td valign="middle" class="sum"><img src="skin/layout/icon-endurance2.gif" alt="Стойкость:" /> Стойкость:</td>
                        <td class="own" title="Собственная выносливость"></td>
                        <td>0</td>
                   </tr>

                    <tr class="rep">
                        <td valign="middle" class="sum">-</td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td valign="middle" class="sum"><img src="skin/layout/icon-wall.gif" alt="Городская стена:" /> Городская стена:</td>
                        <td></td>
                        <td>10%</td>
                    </tr>
<tr><td colspan="7" class="winner">Битва окончена</td></tr>                    <tr class="rep">
                        <td colspan="15" class="winner">Победители:
Bars66                        </td>
                    </tr>
                    <tr class="rep">
                        <td colspan="7" class="leftover">Оставшиеся войска <span class="loss">(Потери)</span></td>
                    </tr>                   
                    <tr class="rep"><!-- atter -->
                    
                                                    <td class="units">Фаланга</td>
                            <td class="own" title="Собственные войска  потери"></td>
                            <td title="Всего войск  потери">1 (<span class="loss">-0</span>)</td>
                        <td colspan=4></td>                    </tr>
                    <tr >
                        <td colspan="7" class="winner"> Bars66 из <a href="/index.php?view=island&id=5702&selectCity=147316">Александрия</a> выиграл битву и разграбил <a href="/index.php?view=island&id=352&selectCity=227172">Константинополь</a>. </td>
                    </tr>
                    <tr >
                        <td colspan="7" class="winner"> <h5>Добыча</h5><ul class="resources"><li class="wood"><span class="textLabel">Стройматериалы: </span>2</li></ul> </td>
                    </tr>

                    <tr>
                        <td colspan="7">
                            <a href="?view=militaryAdvisorReportView&detailedCombatId=4515440">Подробный боевой доклад</a> >>
                        </td>
                    </tr>
                            </ul>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="footer"></div>
        </div>
    </div>
</div>
<!-- Navigational elements for changing the city or the view. May perform different actions on every screen. -->
                <div id="cityNav">
                    <form id="changeCityForm" action="index.php" method="POST">
                        <fieldset style="display:none;">
                            <input type="hidden" name="action" value="header" />
                            <input type="hidden" name="function" value="changeCurrentCity" />
                            <input type="hidden" name="actionRequest" value="46cc5fdb56b8cb0e65e2116ff9f61512" />
                            <input type="hidden" name="oldView" value="militaryAdvisorReportView" />
                                                    </fieldset>

<!-- Navigation -->
                        <h3>Навигация по городам</h3>
                        <ul>
                            <li>
                                <label for="citySelect">Выбранный город:</label>
                                <select id="citySelect" class="citySelect smallFont" name="cityId" tabindex="1" onchange="this.form.submit()">
<option class="avatarCities tradegood4" value="147316" selected="selected" title="[11:00]" >Александрия</option><option class="avatarCities tradegood2" value="151326" title="[11:99]" >Македония</option><option class="avatarCities tradegood3" value="157393" title="[10:00]" >Киев</option><option class="avatarCities tradegood1" value="212392" title="[10:99]" >Константинополь</option>                                </select>
                                </li>
                                <li class="previousCity"><a href="#changeCityPrevious" tabindex="2" title="Переключиться на предыд. город"><span class="textLabel">Предыд. город</span></a></li>
                                <li class="nextCity"><a href="#changeCityNext" tabindex="3" title="Переключиться на след. город"><span class="textLabel">След. город</span></a></li>
                                <li class="viewWorldmap"><a href="?view=worldmap_iso" tabindex="4" title="Центрировать выбранный город на карте мира"><span class="textLabel">Мир</span></a></li>
                                <li class="viewIsland"><a href="?view=island&id=5702" tabindex="5" title="Перейти на островную карту выбранного города"><span class="textLabel">Остров</span></a></li>
                                <li class="viewCity"><a href="?view=city&id=147316" tabindex="6" title="Инспектировать выбранный город"><span class="textLabel">Город</span></a></li>
                            </ul>
                        </form>
                    </div>
    
<!-- TODO Goldbalance... -->
                <div id="globalResources">
                    <h3>Ресурсы империи</h3>
                    <ul>
                        <li class="transporters" title="Сухогрузов доступно (всего)"><a href="?view=merchantNavy"><span class="textLabel">Торговые корабли: </span><span id="value_transAvail" class="transAvail">67</span><span id="value_transSum" class="transSum">(67)</span></a></li>
                        <li class="gold" title="148,040 Золото"><a href="?view=finances"><span class="textLabel">Золото: </span><span id="value_gold">148,040</span></a></li>
                        <li class="goldBalance negative"><span class="textLabel">Доход: </span>234</li>
                    </ul>
                </div>
    
<!-- Resources of the city. Finished. Identical on every page. -->
                <div id="cityResources">
                    <h3>Ресурсы города</h3>
                    <ul class="resources">
                        <li class="population" title="Население">
                            <span class="textLabel">Население: </span>
                            <span id="value_inhabitants" style="display:block;width:80px;">465 (1,420)</span>
                        </li>
                        <li class="actions" title="Баллы действия">
                            <span class="textLabel">Баллы действия: </span>
                            <span id="value_maxActionPoints">7</span>
                        </li>
                        <li class="wood">
                            <span class="textLabel">Стройматериалы: </span>
                            <span id="value_wood" class="storage_danger">111,420</span>
                            <div class="tooltip"><span class="textLabel">Вместимость Стройматериалы: </span>123,000</div>
                        </li>
                        <li class="wine">
                            <span class="textLabel">Виноград: </span>
                            <span id="value_wine" class="">5,561</span>
                            <div class="tooltip"><span class="textLabel">Вместимость Виноград: </span>121,500</div>
                        </li>
                        <li class="marble">
                            <span class="textLabel">Мрамор: </span>
                            <span id="value_marble" class="">1,035</span>
                            <div class="tooltip"><span class="textLabel">Вместимость Мрамор: </span>121,500</div>
                        </li>
                        <li class="glass">
                            <span class="textLabel">Хрусталь: </span>
                            <span id="value_crystal" class="">3,873</span>
                            <div class="tooltip"><span class="textLabel">Вместимость Хрусталь: </span>121,500</div>
                        </li>
                        <li class="sulfur">
                            <span class="textLabel">Сера: </span>
                            <span id="value_sulfur" class="storage_full">121,500</span>
                            <div class="tooltip"><span class="textLabel">Вместимость Сера: </span>121,500</div>
                        </li>
                    </ul>

                </div>

<!-----------------------------------------------------
  ////////////////////// ADVISORS /////////////////////
  ----------------------------------------------------->
                <div id="advisors">
                    <h3>Обзоры</h3>
                    <ul>
                        <li id="advCities" >
                            <a href="?view=tradeAdvisor&oldView=militaryAdvisorReportView" title="Обзор городов и финансов" class="normal">
                                <span class="textLabel">Города</span>
                            </a>
                                                    </li>
                        <li id="advMilitary">
                            <a href="?view=militaryAdvisorMilitaryMovements&oldView=militaryAdvisorReportView" title="Военный обзор" class="normal">
                                <span class="textLabel">Войска</span>
                            </a>
                                                    </li>
                        <li id="advResearch">
                            <a href="?view=researchAdvisor&oldView=militaryAdvisorReportView" title="Научный обзор" class="normal">
                                <span class="textLabel">Исследования</span>
                            </a>
                                                    </li>
                        <li id="advDiplomacy">
                            <a href="?view=diplomacyAdvisor&oldView=militaryAdvisorReportView" title="Обзор сообщений и дипломатии" class="normal">
                                <span class="textLabel">Дипломатия</span>
                            </a>
                                                    </li>
                    </ul>
                </div>
<!-- ADVISORS END -->

<!-- Page footer  -->
                <div id="footer">
                    <span class="copyright">© 2009 by <a title="Gameforge" id="gflink" target="_blank" rel="nofollow" href="/go.php?url=http://www.gameforge.de">Gameforge</a><a href="/index.php?view=credits" style="margin:0px;">.</a> Все права защищены.</span>
                    <a target="_blank" rel="nofollow" href="/go.php?url=http://ikariam.ru/rules.php" title="Правила">Правила</a>
                    <a target="_blank" rel="nofollow" href="/go.php?url=http://agb.gameforge.de/index.php?lang=ru&art=tac&special=&&f_text=000000&f_text_hover=804000&f_text_h=9ebde4&f_text_hr=DED3B9&f_text_hrbg=DED3B9&f_text_hrborder=804000&f_text_font=verdana%2C+arial%2C+helvetica%2C+sans-serif&f_bg=DED3B9" title="Основные Положения">Основные Положения</a>
                    <a target="_blank" rel="nofollow" href="/go.php?url=http://agb.gameforge.de/index.php?lang=ru&art=impressum&special=&&f_text=000000&f_text_hover=804000&f_text_h=9ebde4&f_text_hr=DED3B9&f_text_hrbg=DED3B9&f_text_hrborder=804000&f_text_font=verdana%2C+arial%2C+helvetica%2C+sans-serif&f_bg=DED3B9" title="О нас">О нас</a>
                </div>
<!-- END page footer -->
    
<!-- Generic Divs for styling purposes. -->
                <div id="conExtraDiv1"><span></span></div>
                <div id="conExtraDiv2"><span></span></div>
                <div id="conExtraDiv3"><span></span></div>
                <div id="conExtraDiv4"><span></span></div>
                <div id="conExtraDiv5"><span></span></div>
                <div id="conExtraDiv6"><span></span></div>
<!-- END generic Divs -->

            </div>
        </div>
        
<!-- Top-toolbar with extragame options. -->
        <div id="GF_toolbar">
            <h3>Другие опции</h3>
            <ul>
                <li class="help"><a href="/index.php?view=informations&articleId=10000&mainId=10000" title="Помощь"><span class="textLabel">Помощь</span></a></li>
                <li class="premium"><a href="/index.php?view=premium" title="Ikariam ПЛЮС"><span class="textLabel">Ikariam ПЛЮС (0)</span></a></li>                <li class="highscore"><a href="/index.php?view=highscore&showMe=1" title="Топ-лист игры"><span class="textLabel">Топ-лист</span></a></li>
                <li class="options"><a href="/index.php?view=options" title="Настройки"><span class="textLabel">Настройки</span></a></li>
                <li class="forum"><a rel="nofollow" href="/go.php?url=http://board.ikariam.ru" title="Официальный форум" target="_blank"><span class="textLabel">Форум</span></a></li>
                <li class="logout"><a href="/index.php?action=loginAvatar&function=logout" title="Выйти из игры"><span class="textLabel">Выход</span></a></li>
                                <li class="version"><a href="?view=version" title="Version"><span class="textLabel">v.0.3.0</span></a></li>
                <li class="serverTime"><a><span class="textLabel" id="servertime">15.03.2009 10:19:42</span></a></li>
            </ul>
        </div>
<!-- END Top-toolbar -->

    


<!-- Even more generic Divs for styling purposes. -->
        <div id="extraDiv1"><span></span></div>
        <div id="extraDiv2"><span></span></div>
        <div id="extraDiv3"><span></span></div>
        <div id="extraDiv4"><span></span></div>
        <div id="extraDiv5"><span></span></div>
        <div id="extraDiv6"><span></span></div>
<!-- END even more generic Divs -->

<!-----------------------------------------------------
  /////////////// JAVASCRIPT (obviously) ////////////// 
  ----------------------------------------------------->
<script type="text/javascript">

// Adds a "down" css-class to a supplied element.
function makeButton(ele) {
    var Event = YAHOO.util.Event;
    var Dom = YAHOO.util.Dom;
    Event.addListener(ele, "mousedown", function() {
        YAHOO.util.Dom.addClass(ele, "down");
    });
    Event.addListener(ele, "mouseup", function() {
        YAHOO.util.Dom.removeClass(ele, "down");
    });
    Event.addListener(ele, "mouseout", function() {
        YAHOO.util.Dom.removeClass(ele, "down");
    });
}

//removed "childTooltip"-code. Don't duplicate code, just nest normal tooltips!
function ToolTips() {
    var tooltips = Dom.getElementsByClassName ( "tooltip" , "div" , document , function() {
        Dom.setStyle(this, "display", "none");
    })
    for(i=0;i<tooltips.length;i++) {
        Event.addListener ( tooltips[i].parentNode , "mouseover" , function() {
            Dom.getElementsByClassName ( "tooltip" , "div" , this , function() {
                Dom.setStyle(this, "display", "block");
            });
        });
        Event.addListener ( tooltips[i].parentNode , "mouseout" , function() {
            Dom.getElementsByClassName ( "tooltip" , "div" , this , function() {
                Dom.setStyle(this, "display", "none");
            });
        });
    }
}

Event.onDOMReady( function() {
    var links = document.getElementsByTagName("a");
    for(i=0; i<links.length; i++) {
        makeButton(links[i]);
    }
    ToolTips();
    replaceSelect(Dom.get("citySelect"));
});

/* One for the wood... */
var woodCounter = getResourceCounter({
    startdate: 1237108782,
    interval: 2000,
    available: 111420,
    limit: [0, 123000],
    production: 0.132777777778,
    valueElem: "value_wood"
    });
if(woodCounter) {
    woodCounter.subscribe("update", function() {
        IKARIAM.currentCity.resources.wood = woodCounter.currentRes;
        });
    }

/* ...one for the tradegood... */
var tradegoodCounter = getResourceCounter({
    startdate: 1237108782,
    interval: 2000,
    available: 121500,
    limit: [0, 121500],
    production: 0.101666666667,
        valueElem: "value_sulfur"
    });
if(tradegoodCounter) {
    tradegoodCounter.subscribe("update", function() {
        IKARIAM.currentCity.resources.sulfur = tradegoodCounter.currentRes;
        });
    }

var wineCounter = getResourceCounter({
    startdate: 1237108782,
    interval: 2000,
    available: 5561,
    limit: [0, 121500],
    production: 0,
    spendings: [{amount: 110, tickInterval: 1200}],
    valueElem: "value_wine"
    });
if(wineCounter) {
    wineCounter.subscribe("update", function() {
        IKARIAM.currentCity.resources.wine = wineCounter.currentRes;
        });
    }

var localTime = new Date();
var startServerTime = localTime.getTime() - (3600000) - localTime.getTimezoneOffset()*60*1000; // GMT+1+Sommerzeit - offset

var obj_ServerTime = 0;
Event.onDOMReady(function() {
    var ev_updateServerTime = setInterval("updateServerTime()", 500);
    obj_ServerTime = document.getElementById('servertime');
});
function updateServerTime() {
    var currTime = new Date();
    currTime.setTime((1237108782000-startServerTime)+ currTime.getTime()) ;
    str = getFormattedDate(currTime.getTime(), 'd.m.Y G:i:s');
    obj_ServerTime.innerHTML = str;
}

</script>

    </body>
</html> 


пс может быть и 20 раундов и войск побольше

Отправлено: 12:35, 15-03-2009 | #9