Click to See Complete Forum and Search --> : Links


neenach2002
07-23-2003, 12:49 PM
How do I keep the path of a link from being displayed on the bottom of the web browser?:confused: :confused: :confused:

pyro
07-23-2003, 12:55 PM
Something like this should do it for those with javascript enabled:

<a href="http://www.w3c.org" onmouseover="window.status=''; return true;">W3C</a>

neenach2002
07-23-2003, 01:05 PM
ok...
what about non-JS?:confused:

pyro
07-23-2003, 01:10 PM
You can't do it without javascript, so the link will show up for them...

neenach2002
07-23-2003, 01:14 PM
is there any way to keep it from displaying path when it's loading the page?

David Harrison
07-23-2003, 01:25 PM
Try this:

pyro
07-23-2003, 01:32 PM
That's javascript...

neenach2002
07-23-2003, 01:43 PM
That is nifty, Thanx...need to figure out how to use it though...

BTW: I'm gonna have my own forum!!!
Moderator is...ME!!!
Spaceports supports phpbb2!
And I'm gonna use it!

David Harrison
07-23-2003, 01:50 PM
Well you said it yourself pyro:You can't do it without javascript

It's a function that sets the status bar to your message, and then after 1ms it runs itself again, so that if someone has moved over a link or something it will change the status back to your message.
Of course the function has to be run before it will do anything so right after it, it gets run.

pyro
07-23-2003, 02:01 PM
This would seem to me to be a far better way of doing that, as you really don't need to throw the browser into an endless loop.

Once the page loads, this will step through all the links and set the status to be blank...

<script type="text/javascript">
function setLinks() {
for (i=0; i<document.links.length; i++) {
document.links[i].onmouseover = function () {
window.status="";
return true;
}
}
}
window.onload = setLinks;
</script>

David Harrison
07-23-2003, 02:05 PM
What about when a link is being clicked? The status bar for that cannot be controlled.

pyro
07-23-2003, 02:08 PM
Once you click the link, you're on your way to that address anyway...

David Harrison
07-23-2003, 02:11 PM
What I mean is, not when the link has been click, but while it is being clicked.