mouseover status bar tricks

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • HQ
    Confirmed User
    • Jan 2001
    • 3539

    #1

    mouseover status bar tricks

    I Need some help with this. I have two mouseover codes that do not work together...


    I use this code in my A HREF tag to create a blind mouseover status bar message:

    onmouseover="window.status='http://www.whatever.com/'; return true" onmouseout="window.status=''; return true"

    I also use this code in my BODY tag to globally set the status bar.

    onmouseover="window.status='BLAH BLAH BLAH'; return true"

    The bottom code overrules the top code, and I want the opposite of that. Any ideas?
  • XXXManager
    So Fucking Banned
    • Mar 2002
    • 893

    #2
    onmouseout="window.status=''; return true"
    should be
    onmouseout="window.status=''; return true;"

    Comment

    • XXXManager
      So Fucking Banned
      • Mar 2002
      • 893

      #3
      But basically I dont get what you want...

      onmouseover="window.status='http://www.whatever.com/'; return true;"
      onmouseout="window.status=''; return true;"

      this code makes sure http://www.whatever.com/ will show up every time you are "OVER" the item (whtever item it is) and whenever you leave this object it empties the status line.

      What do you want to do?

      Comment

      • HQ
        Confirmed User
        • Jan 2001
        • 3539

        #4
        What I want to do is have a constant status bar message that hides all my blind links, but for sponsors have the real url show up.

        I can do the first thing by placing that mouseover code in the BODY tag, but as soon as I do that, the mousever code in the A HREF tag does not work.

        See what I mean?

        Comment

        • DX
          Feed me coffee.
          • Sep 2001
          • 1128

          #5
          Stick this in your BODY.

          ONLOAD="window.defaultStatus='YOUR MESSAGE'"

          Comment

          • Pornwolf
            Drunk and Unruly
            • Jan 2002
            • 22712

            #6
            Sounds like someone needs to stop playing Jedi Power Battles and start studying web design.

            TD Scripts
            Script School
            TD's Script School

            Surf those and The Force will be stronger in you.
            I've trusted my sites to them for over a decade...

            Webair, bitches.

            Comment

            • XXXManager
              So Fucking Banned
              • Mar 2002
              • 893

              #7
              here is an example..
              Enjoy

              <HTML>
              <BASEFONT FACE="Verdana">
              <SCRIPT>
              var OrigStatusBar = 'Im the constant status bar ;) Curtsey of XXXManager.com';
              var CurrentStatusBar= OrigStatusBar;
              </SCRIPT>
              <BODY onmouseover="window.status=CurrentStatusBar; return(true);">
              This is just a link<BR>
              <A HREF="http://www.tgplay.com">link</A></BR>
              <BR>
              But this is a sponsor link<BR>
              <A HREF="http://www.xxxmanager.com/" onmouseover="CurrentStatusBar='http://www.xxxmanager.com/';

              window.status=CurrentStatusBar; return true;" onmouseout="CurrentStatusBar=OrigStatusBar; window.status=CurrentStatusBar;

              return true;">Curtsey of your sponsor XXXManager.com</A>
              </BODY>
              </HTML>

              Comment

              • XXXManager
                So Fucking Banned
                • Mar 2002
                • 893

                #8
                Thats it?
                No replies? no remarks? No complaints? no THANKS?????
                Damn
                People nowadays are greatful

                Comment

                • HQ
                  Confirmed User
                  • Jan 2001
                  • 3539

                  #9
                  Sorry, my Internet is running at less than 2k/sec... When I can actually use the Internet I'll check your solution and reply... plus I've almost completed Jedi Knight 2... just one last boss to beat...

                  Comment

                  • HQ
                    Confirmed User
                    • Jan 2001
                    • 3539

                    #10
                    Finally, my reply:


                    XXXManager,

                    "true" or "true;" did not seem to make a difference, but I put the semicolon anyway.


                    DX,

                    ONLOAD="window.defaultStatus='YOUR MESSAGE'" does not work for what I want to do. It places "YOUR MESSAGE" in the status bar AND it does not interfere with the mouseover on the sponsor links, however, it does not place "YOUR MESSAGE" when I mouseover a blind link on my site. I could use mouseover code on all my blind links, but there must be a better way that uses up less bandwidth than that.


                    XXXManager,

                    Your code works! Thanks!!!

                    For some reason it does not work if I take out the OrigStatusBar and CurrentStatusBar variables and set the status bar directly. Any idea why?

                    Comment

                    • HQ
                      Confirmed User
                      • Jan 2001
                      • 3539

                      #11
                      Nevermind, I know why it did not work now.

                      Comment

                      • chodadog
                        Confirmed User
                        • Apr 2002
                        • 9736

                        #12
                        So tell the rest of us!
                        26 + 6 = 1

                        Comment

                        • HQ
                          Confirmed User
                          • Jan 2001
                          • 3539

                          #13
                          Originally posted by chodadog
                          So tell the rest of us!
                          Haha, yeah I should!

                          In XXXManager's code, I forgot that he did this:

                          <BODY onmouseover="window.status=CurrentStatusBar; return(true);">

                          So the mouseover of the body of the web page calls the CurrentStatusBar variable. It has to be a variable because it HAS to change whenever a mouseover of a sponsor occurs. The reason for this is becuase the BODY mouseover overrides A HREF mouseovers. Therefore, you have to instruct the A HREF mouseover to change the BODY mouseover.

                          Makes sense? Let me know if I'm wrong.


                          Also, DX was right too. However I did not want to use his code becuase he code requires a mouseover over EVERY blind link where as XXXManager's code only requires mouseovers over sponsor links.


                          Hope that clears it up!

                          Comment

                          • DarkJedi
                            No Refunds Issued.
                            • Feb 2001
                            • 28301

                            #14
                            HQ - leave your ICQ please, i need to talk to you

                            Comment

                            • HQ
                              Confirmed User
                              • Jan 2001
                              • 3539

                              #15
                              Originally posted by DarkJedi
                              HQ - leave your ICQ please, i need to talk to you
                              Shit, my ICQ # is not showing up in my profile. Anyone else have that problem?

                              94968434

                              Comment

                              • HQ
                                Confirmed User
                                • Jan 2001
                                • 3539

                                #16
                                Shit, let me re-post my explanation as I accidentally typed out HTML code which was not displayed:

                                ------------------------------


                                Haha, yeah I should!

                                In XXXManager's code, I forgot that he did this:

                                BODY onmouseover="window.status=CurrentStatusBar; return(true);"

                                So the mouseover of the body of the web page calls the CurrentStatusBar variable. It has to be a variable because it HAS to change whenever a mouseover of a sponsor occurs. The reason for this is becuase the BODY mouseover overrides A HREF mouseovers. Therefore, you have to instruct the A HREF mouseover to change the BODY mouseover.

                                Makes sense? Let me know if I'm wrong.


                                Also, DX was right too. However I did not want to use his code becuase he code requires a mouseover over EVERY blind link where as XXXManager's code only requires mouseovers over sponsor links.


                                Hope that clears it up!

                                Comment

                                Working...