View Single Post
Old 10-22-2013, 06:14 AM   #20
Aeris
Developer's Corner Mascot
Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.
 
Aeris's Avatar
 
Posts: 486
Karma: 1277790
Join Date: Sep 2013
Device: Kindle Paperwhite 5.3.4, Kindle Keyboard 3.4
Code:
            <div class="statusBarRightIconDock" id="statusBarRightIconDock">
                <div id="statusBarParentalControlsIconDiv" class="parentalControlsOn">
                </div>
                <div class="statusBarConnectionDiv">
                    <div id="connectionStatusIconDiv"></div>
                    <div id="connectionSignalStrengthIconDiv"></div>
                </div>
                <div id="batteryStatusIconDiv">
                    <div id="batteryFillContainer">
                        <div id="batteryFill"></div>
                    </div>
                </div>
                <div class="statusBarTimeDiv" id="timeDiv">
                    <span class="statusBarText" id="timeSpan"></span>
                </div>
            </div>
That's why I choosed "statusBarConnectionDiv", it is the outer div that contains both...

As reference I've used this:
http://www.w3schools.com/htmldom/dom_events.asp

where it says:
Code:
<button id="myBtn">Try it</button>

<script>
document.getElementById("myBtn").onclick=function(){displayDate()};
</script>
Here the full working online sample:
http://www.w3schools.com/htmldom/try...tmldom_events2

Last edited by Aeris; 10-22-2013 at 06:33 AM.
Aeris is offline   Reply With Quote