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 10 of 10
  1. #1
    New to the CF scene
    Join Date
    Feb 2004
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 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
    Senior Coder
    Join Date
    Jun 2002
    Location
    Nashua, NH
    Posts
    1,724
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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"

  • #3
    New to the CF scene
    Join Date
    Feb 2004
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I just want to hide it

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

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    Nashua, NH
    Posts
    1,724
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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"

  • #5

  • #6
    New to the CF scene
    Join Date
    Feb 2004
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Nvm.. Maybe I'll just hide the status bar.. hide them all
    Ta[M]iYa - There Is a Monster In My Car :D

  • #7
    Senior Coder
    Join Date
    Jun 2002
    Location
    Nashua, NH
    Posts
    1,724
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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"

  • #8
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #9
    Regular Coder
    Join Date
    Jul 2002
    Posts
    698
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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>

  • #10
    Regular Coder
    Join Date
    Jan 2004
    Posts
    117
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I just tried the above code in Netscape 7.1 and it doesn't work
    Last edited by FastCougar; 02-11-2004 at 09:05 PM.


  •  

    Posting Permissions

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