Web Analytics Made Easy -
StatCounter Mouse Over Effect And Status Bar - CodingForum

Announcement

Collapse
No announcement yet.

Mouse Over Effect And Status Bar

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mouse Over Effect And Status Bar

    I would like some help. I've already added a msg to my homepage. So whenever someone go to the page, the status bar on IE will display my msg. However, I would like to cancel out or hide the URL the status bar indicates whenever a mouse is drag over a link.

    <SCRIPT>
    message = "Welcome To Ta[M]iYa's World.^" +
    "I'll Be Updating This Page Whenever I'm Free^" +
    "Please Feel Free To Write In The Forum & GuestBook^" +
    "Hope You Enjoyed Your Stay Here.^" +
    "Do Come Back Again. Ta[M]iYa 2004 ...^" +
    "^"
    scrollSpeed = 25
    lineDelay = 1500


    txt = ""

    function scrollText(pos) {
    if (message.charAt(pos) != '^') {
    txt = txt + message.charAt(pos)
    status = txt
    pauze = scrollSpeed
    }
    else {
    pauze = lineDelay
    txt = ""
    if (pos == message.length-1) pos = -1
    }
    pos++
    setTimeout("scrollText('"+pos+"')",pauze)
    }

    // Unhide -->
    scrollText(0)
    </SCRIPT>


    __________________
    Ta[M]iYa - There Is a Monster In My Car
    Ta[M]iYa - There Is a Monster In My Car :D

  • #2
    What's wrong with allowing visitor seeing where the link leads???
    Vladdy | KL
    "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"

    Comment


    • #3
      I just want to hide it

      Can anyone help?
      Ta[M]iYa - There Is a Monster In My Car :D

      Comment


      • #4
        Leave it alone - status bar is part of user's browser not your site.
        Vladdy | KL
        "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"

        Comment


        • #5
          Glenn
          vBulletin Mods That Rock!

          Comment


          • #6
            Nvm.. Maybe I'll just hide the status bar.. hide them all
            Ta[M]iYa - There Is a Monster In My Car :D

            Comment


            • #7
              Good Luck

              MY browser:
              Vladdy | KL
              "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"

              Comment


              • #8
                Tamiya,

                Many things are possible but not everything is good. One thing that's been possible for a long time is putting scrolling messages into the status bar. It's also been found that such messages don't work well, the end user has a tendancy to miss them or to get frustrated because the animation of the scroller doesn't fit the speed the user likes to read at (it's almost always too fast or too slow).

                Moving text is also more difficult to read, I'd suggest you place your message in the main body of your page and if you feel it's really, really important that people notice it go ahead and add a small animated bullet type image in front of the message to draw peoples attention to that spot.

                Be aware that for a good page that helps the user as much as possible you'll want to limit any animation on the page, it's useless to try drawing someone's attention to a message if much of the rest of the page looks like an explosion happened at the Acme factory.

                All that said, what you're asking for isn't readily accomplished. You'd have to hook the mouseover event for every link on the page and alter it to show the current message from your animated status bar. The easy way of doing that would be to iterate through the document.links collection.
                Check out the Forum Search. It's the short path to getting great results from this forum.

                Comment


                • #9
                  This hides the url largely but if clicked it shows the url, only 1st time though .

                  think its some sort of evil IE securty

                  oh and since its me I only say it works in IE, don't code to other browsers.

                  Code:
                   
                  <script>
                  function hidestatus()
                  {
                    if(event.srcElement.tagName=='A')
                  	{	
                     return true;
                    }
                  }
                  document.onmouseover=hidestatus
                  document.onmouseout=hidestatus
                  document.onmousedown=hidestatus
                  document.onmouseup=hidestatus
                  document.onclick=hidestatus
                  </script>
                  <body>
                  <a href="www.test.com">Click here</a>
                  </body>

                  Comment


                  • #10
                    I just tried the above code in Netscape 7.1 and it doesn't work
                    Last edited by FastCougar; Feb 11, 2004, 04:05 PM.

                    Comment

                    Working...
                    X