Click to See Complete Forum and Search --> : Status bar messages won't go away! help please


idevweb
06-28-2003, 06:09 PM
Hello Guru's

I am trying to disable status bar messages when mouse on links. I tried using the following code from javascript kit but it does not work. I am using image maps for links and they get included as sections with php. I also have an Iframe.

The way I have it set up, index.php is the main page that includes three sections. top table with logo, left menu, and footer. The javascript is in index.php <head> I don't know why it is not working..

take a look here: http://www.europasurfaces.com

<script>

//Hide status bar msg II script- by javascriptkit.com
//Visit JavaScript Kit (http://javascriptkit.com) for script
//Credit must stay intact for use

function hidestatus(){
window.status=''
return true
}

if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)

document.onmouseover=hidestatus
document.onmouseout=hidestatus
</script>


I would greatly appreciate some answer or solution.
Thanks in advance guys (and girls)

pyro
06-28-2003, 06:55 PM
window.status=''

should probably be:

window.status=''";

idevweb
06-28-2003, 07:09 PM
tried.. but didnt work.

those were actually ' ' quotes incase you thought it was "

The script is exactly as I got it from javascript kit

If you have any other suggestions, that would be great. Otherwise, thank you for your suggestion.:cool:

brendandonhue
06-28-2003, 07:15 PM
Each line of javascript code needs to end in a semicolon.

<script>

//Hide status bar msg II script- by javascriptkit.com
//Visit JavaScript Kit (http://javascriptkit.com) for script
//Credit must stay intact for use

function hidestatus(){
window.status='';
return true
}

if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT) ;

document.onmouseover=hidestatus;
document.onmouseout=hidestatus
</script>

pyro
06-28-2003, 07:17 PM
The code is also IE only...

idevweb
06-28-2003, 07:34 PM
well... guys.. still not working :confused:

I have tried what both of you have suggested and notta.. I think it only works on text links???????

if you like, take a look http://www.europasurfaces.com when you put the mouse on any of the links, it still shows the path. Really, thats all I'm trying to kill. Even just replace it with a default message.

I looked the the source code for this page: http://www.javascriptkit.com/script/script2/hidestatus2.shtml

Thats where I got the script. It works on there.. :mad:

So.. grr.. I don't know what else to try.

Thanks you guys.. Any other ideas come up, lemme know!:D

Charles
06-28-2003, 07:38 PM
Originally posted by brendandonhue
Each line of javascript code needs to end in a semicolon. In JavaScript the semicolon at the end of a line is optional.

brendandonhue
06-28-2003, 07:41 PM
Oo thx charles didnt know that.

Charles
06-28-2003, 07:44 PM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Content-Script-Type" content="text/javascript">
<title>Example</title>
<script type="text/javascript">
<!--
onload = function () {for (i=0; i<document.links.length; i++) {document.links[i].onmouseover = function () {window.status = ''; return true}}}
// -->
</script>
<div>
<a href="fee.html">Fee</a>
<a href="fie.html">Fie</a>
<a href="foe.html">Foe</a>
<a href="fum.html">Fum</a>
</div>

idevweb
06-28-2003, 08:05 PM
Thanks for the suggestion/example charles, but that didn't work either. feel free to take a look.. the code is still there.

This is insane... such a small task with no results..!! I don't get it..


It's not any of your guy's suggestions or examples... it's the fact that they don't want to work on this page!!

I greatly appreciate your input:)

And I will give a high five to anyone that can solve this unusual problem..:D

ps.. just a simple reminder... the links are image maps

brendandonhue
06-28-2003, 08:07 PM
Coulda said that...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Content-Script-Type" content="text/javascript">
<title>Example</title>
<script type="text/javascript">
<!--
onload = function () {for (i=0; i<document.images.length; i++) {document.images[i].onmouseover = function () {window.status = ''; return true}}}
// -->
</script>

idevweb
06-28-2003, 08:15 PM
didnt work...

see for your self.. http://www.europasurfaces.com look in the source code. its there.

you guys have been awsome sports about this.

it has become somewhat of a challenge huh..

Charles
06-28-2003, 08:31 PM
No wonder it doesn't work, you're using image maps and not links.

brendandonhue
06-28-2003, 08:33 PM
MAYBE this will work (i doubt it, oh well)

<body onload="status()">
<script language="javascript">
function status()
{
window.status = "";
status()
}
</script>

idevweb
06-28-2003, 09:15 PM
Your right.. it didn't work. It was a different approach, I hoped it would work.

Im trying to figure out a way to add this status crap to the image maps. see if this works.


THANK YOU ALL FOR YOUR TIME and suggestions.

if there is anything I can do, (not with javascript obviously) but with design and php or mysql, let me know.

Chris:cool: