...

View Full Version : Mouse Over Effect And Status Bar



Tamiya
02-07-2004, 10:27 AM
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 :D

Vladdy
02-07-2004, 02:45 PM
What's wrong with allowing visitor seeing where the link leads???

Tamiya
02-09-2004, 12:20 PM
I just want to hide it :D

Can anyone help?

Vladdy
02-09-2004, 01:01 PM
Leave it alone - status bar is part of user's browser not your site.:p

glenngv
02-10-2004, 05:02 AM
http://www.codingforums.com/showthread.php?s=&threadid=25667

Tamiya
02-10-2004, 06:44 AM
Nvm.. Maybe I'll just hide the status bar.. hide them all :D

Vladdy
02-10-2004, 03:35 PM
:D :D :D Good Luck :D :D :D

MY browser:
http://www.vladdy.net/MY_Browser.gif

Roy Sinclair
02-10-2004, 04:34 PM
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.

Garadon
02-10-2004, 04:53 PM
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.



<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>

FastCougar
02-11-2004, 10:00 PM
I just tried the above code in Netscape 7.1 and it doesn't work ;)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum