Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    New Coder
    Join Date
    Apr 2003
    Location
    Nebraska
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Adding a status property to a Mouseover

    I am creating a site with using images with mouseovers as links is there anyway I can add a status property to the mouseover?

    <map name="Map">
    <area shape="rect" coords="0,2,81,22" href="schools.htm" onMouseOver="change_schools('images/JPEG/jschools2.jpg')" onMouseOut="reset_schools()">
    </map>

    I would like to display "Click here to see our display of School Watches" in the status bar.

    Thanks,

    lmarshall

  • #2
    Regular Coder
    Join Date
    Sep 2002
    Location
    Louisiana
    Posts
    576
    Thanks
    0
    Thanked 0 Times in 0 Posts
    add this
    Code:
    <map name="Map">
    <area shape="rect" coords="0,2,81,22" href="schools.htm" onMouseOver="change_schools('images/JPEG/jschools2.jpg'),status='whatever'" onMouseOut="reset_schools(),status=''">
    </map>

  • #3
    New Coder
    Join Date
    Apr 2003
    Location
    Nebraska
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sorry...


    I still can't get it to work

  • #4
    Regular Coder
    Join Date
    Feb 2003
    Location
    Helsinki, Finland
    Posts
    111
    Thanks
    0
    Thanked 0 Times in 0 Posts

    window.status

    If chrismiceli's code didin't work, try this:
    Code:
    <map name="Map">
    <area shape="rect" coords="0,2,81,22" href="schools.htm" onMouseOver="change_schools('images/JPEG/jschools2.jpg');window.status='Click here!'" onMouseOut="reset_schools();window.status=''">
    </map>
    I haven't tested that but I believe it will work.
    Tell me if it doesn't.

  • #5
    Regular Coder
    Join Date
    Mar 2003
    Posts
    176
    Thanks
    0
    Thanked 0 Times in 0 Posts
    onmouseover="status='Blah Blah';return true"

    onmouseout="status='';return true"

  • #6
    New to the CF scene
    Join Date
    May 2003
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Im having a problem when combining the mouse over and satus with document.write

    i have something like this on my code:

    document.write("<A HREF='"+linkAlbum[Rnd0]+"' onMouseOver='self.status'="+album[Rnd0]+"';return true'><IMG SRC='"+imagemAlbum[Rnd0]+"'</A>");

    this doesnt seem to work. my guess it's a double quotes and silgle quotes problem, since i allways mess that out.

    Can someone give me a hand?

    Obelix

  • #7
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,068
    Thanks
    0
    Thanked 256 Times in 252 Posts
    single quotes are in red

    document.write('<A HREF="'+linkAlbum[Rnd0]+'"onMouseOver="self.status=\''+album[Rnd0]+'\';return true"><IMG SRC="'+imagemAlbum[Rnd0]+'"></A>');
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #8
    New to the CF scene
    Join Date
    May 2003
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thx a bunch, Glenn, I had just tryed that and it worked, but now you gave me confirmation that i was doing it the right way, and not inventing...

    Obe

    P.S. Just as curiosity, the line that i wrote, had the quotes and the double quotes switched, and it still worked.


  • #9
    Regular Coder
    Join Date
    Apr 2003
    Location
    Northern California
    Posts
    169
    Thanks
    0
    Thanked 0 Times in 0 Posts
    it does not matter what "s you use just the order that
    they are in. but glenngv is right this would be the beter way to do it

    Code:
    document.write('<A HREF="'+linkAlbum[Rnd0]
    +'"onMouseOver="self.status=\''+album[Rnd0]+'\';return true"><IMG SRC="'+imagemAlbum[Rnd0]+'">
    </A>');
    as for the status message heres

    another way u can try

    Code:
    <script>
    function displayMsg(msg){
    window.status=msg
    }
    </script>
    <body>
    <map name="Map">
    <area shape="rect" coords="0,2,81,22" href="schools.htm" 
    onMouseOver="change_schools('images/JPEG/jschools2.jpg');displayMsg('click here 
    to change schools or something!')" 
    onMouseOut="reset_schools();displayMsg(' ')">
    </map> 
    </body>
    Last edited by scriptkeeper; 05-14-2003 at 01:42 AM.
    -When you do things right, people won't be sure you've done anything at all


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •