Link to home
Start Free TrialLog in
Avatar of Donkadelics
Donkadelics

asked on

Stop showing the link

You know when you put your mouse over a link, it will show up the address at the bottom of IE.
I have seen some site where they does not allow this to display at all, but instead a small advertisement for their site scroll at the bottom.
How did they do this?
What is the script code for this look like?
Avatar of Eternal_Student
Eternal_Student
Flag of United Kingdom of Great Britain and Northern Ireland image

function status_i_do_not_want_to_see_you()
{
  return setInterval('status=\' \'',10);
}

//or if you arent sure, create

function if_u_see_status_then_u_dont(oInterval)
{
    if(!oInterval)
    {
       return setInterval('status=\' \'',10);
    }
    else
    {
       clearInterval(oInterval)
    }
}
Avatar of Donkadelics
Donkadelics

ASKER

Where do I put this?
Between the Body tag?
SOLUTION
Avatar of Eternal_Student
Eternal_Student
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Do like this in the link where you dont want to show the status :

<a href="http://www.example.com" onmouseover="window.status='your_advertisement_here'; return true;" onmouseout="window.status='';">Link</a>
This is for ALL hyperlinks :

<html>
<script language="JavaScript" type="text/javascript">
function setStatus() {
 var anchors = document.links;
 for(i=0; i<anchors.length; i++) {
  anchors[i].attachEvent("onmouseover", statusText);
  anchors[i].attachEvent("onmouseout", statusNoText);
 }
}
function statusText() {
 window.status = "your_text_here";
 return true;
}
function statusNoText() {
 window.status = "";
 return true;
}
</script>
<body onload="setStatus();">
<a href="http://google.com">Google</a>
<a href="http://msn.com">Msn</a>
<a href="http://yahoo.com">Yahoo</a>
</body>
</html>
Well currently right now all the pages already have links in them.
It's going to be a tuff job to add each one in.
Is there a way to just put one script on each page rather than put one on every link?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial