iLTC Home
Bookmark iLTC!
iLTC Google Boards

Google Groups
Receive The Code in Email!



Categories

Perl
  • Perl Tutorials Beginners

    Javascript
  • Javascript Tutorials
  • Javascript Tutorials Beginners

    HTML
  • HTML Tutorials



  • I love the code... dot com
    20,093

    iLoveTheCode.com
    Javascript > Javascript Tutorials How To Easy > Javascript Status Bar

    Javascript Status Bar



    Since people have had a little trouble finding this article in the HTML Tutorials section, it is here in Javascript as well :)

    There are a couple ways to change the status bar. First we'll do it by writing a function.

    function Hiya() {
    window.status="hiya dog";
    }
    function Hiya2() {
    window.status="bya dog";
    }

    <a onMouseover=Hiya() onMouseout=Hiya2()>Put your cursor here</a>


    -We create a function and name it Hiya because we like that name.
    -We use Javascript's built-in window object and its status property.
    -We say that is equal to "hiya dog"
    -We create a nearly identical function, naming it Hiya2 and just change what it says.
    -We use the built-in Javascript onMouseover and Javascript onMouseout to call our functions.


    If you want to make a status mesage stick in Internet Explorer for Windows:

    window.defaultStatus="Why all the dogs?";

    For Safari on Mac this only shows when the window loads.

    And unfortunately, none of this works on the current Firefox. Unless you can convince your Firefox users to jump through the hoop of altering their settings... sure.


    <script type="text/javascript">
    <!--

    window.defaultStatus="Why all the dogs?";

    function Hiya() {
    window.status="hiya dog";
    }
    function Hiya2() {
    window.status="bya dog";
    }

    -->
    </script>

    <a onMouseover=Hiya() onMouseout=Hiya2()>Put your cursor here</a>



    Resources:
    Javascript Change Fonts
    Javascript Change Font Size
    Javascript SetTimeout
    Javascript Concat Use Concat to Join Two Arrays in Javascript
    Javascript Join Use Join to Make an Array into a String in Javascript
    Javascript Splice Use Splice to Replace Items in an Array in Javascript
    Javascript Slice Use Slice to Get Items from an Array in Javascript
    Javascript Reverse Use Reverse on Items in an Array in Javascript
    Javascript Sort Use Sort on Items in an Array in Javascript
    Javascript Shift Use Shift to Remove Items from the Beginning of an Array in Javascript
    Javascript Pop Use Pop to Remove Items from the End of an Array in Javascript
    Javascript Unshift Use Unshift to Put Items on the Front of an Array in Javascript
    Javascript Array Create an Array in Javascript
    Javascript Push Use Push on an Array in Javascript
    Javascript Referrer
    Javascript Reset Form

    Javascript Query String
    Javascript Tutorials
    HTML Tags
    Perl Tutorials
    HTML Codes



    Click HERE to comment or discuss at iLoveTheCode GOOGLE Group
    Previous Article: Javascript SetTimeout
    Next Article: Javascript Redirect





    CSS MasteryCSS Mastery

    Andy Budd, Simon C...

    New $23.09

    Struts 2 in ActionStruts 2 in Action

    Don Brown, Chad Da...

    New $29.69

    Pro CSS and HTML Design ...Pro CSS and HTML Design Patterns

    Michael Bowers

    New $29.69

    HTML, XHTML, and CSS, Si...HTML, XHTML, and CSS, Sixth Edition ...

    Elizabeth Castro

    New $23.09

    Bulletproof Web DesignBulletproof Web Design

    Dan Cederholm

    New $26.39

    Creating Web SitesCreating Web Sites

    Matthew MacDonald

    New $19.77

    CSSCSS

    David McFarland

    New $23.09

    JavaScriptJavaScript

    David Flanagan

    New $31.49


    Of Interest:
  • Write a WHILE LOOP in Perl, Carefully
  • Create a Subroutine in Perl
  • Matching at the Beginning and End 2
  • Encryption with the Crypt Function in Perl
  • Javascript Unshift - Use Unshift to Put Items on the Front of an Array in Javascript
  • Call your Function in Javascript
  • Write a For Loop in Javascript
  • Javascript Array - Create an Array in Javascript
  • HTML Color Codes
  • Make a Line Return Using HTML
  • HTML Space
  • HTML Forms

  • More Articles:
  • Exit a Loop with Last
  • Undefine an Array in Perl
  • And, Or, Equal, Not Equal, Greater Than, Less Than in Perl
  • Add to the Beginning of an Array with Unshift in Perl
  • onClick Javascript
  • Javascript Alert
  • Javascript Change Background Colors
  • Javascript Change Fonts
  • Annoy Users with onBlur in Javascript
  • Get String Length with Javascript
  • Close Window with window.close in Javascript
  • Javascript Unshift - Use Unshift to Put Items on the Front of an Array in Javascript
  • HTML Font Code
  • Make a Line Return Using HTML
  • Make Strikethrough Text Using HTML
  • Make Italic Text Using HTML

  • Search iLTC w/ Google





    Recent Articles

  • Javascript Focus Form Field
  • Javascript Lowercase Text
  • Javascript Uppercase Text
  • Javascript Superscript Text
  • Javascript Subscript Text
  • Make Text Blink Using Javascript
  • Make a String into a Link in Javascript
  • Javascript Italics Text
  • Javascript Bold Text
  • Javascript Redirect
  • HTML Frames
  • HTML Color Chart
  • HTML Link
  • Javascript Status Bar








  • Perl Programming - Javascript Programming - Maybe Some PHP - Free Scripts - ILoveTheCode
    All Content © 2006 iLoveTheCode.com


    Contact Chris | About this Site


    316,833
    Counter by iLoveTheCode.com


    Last Modified: Friday, 23-Jun-2006 07:23:16 EDT