To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Misc Help > ClientSide Technologies

ClientSide Technologies Discuss HTML/CSS/Javascript, and any other client-side technologies, here.

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-12-2006, 06:03 PM   #1
michaewlewis
Senior Member
 
Join Date: Feb 2006
Posts: 118
trying to change status bar

I'm trying to get the status bar to display a custom message instead of the default thing when I mouseover an element but for some reason it keeps displaying the default message.
What am I doing wrong?

PHP Code:
    $insertpics .= "    <td align=\"center\"><a onmouseover=\"window.status='Open Picture';\" onmousout=\"window.status=''; return;\" href=\"javascript:opener('$dirName/$jpgFile', $jpgWidth, $jpgHeight)\">\r      <img style='border-color:#8888aa; border-width:1px; border-style:solid;' src='$dirName/$gifFile'></a></td>\r";
(and of course, it is displaying $insterpics later in the page)
__________________
CPU, AGP, SQL, PHP.... what is this language those young people keep speaking? What does it all mean!?
michaewlewis is offline   Reply With Quote
Old 03-12-2006, 06:06 PM   #2
FatalError
Senior Member
 
Join Date: Dec 2005
Location: Earth
Posts: 153
It should work as is...what browser are you using? You may have that feature turned off on your browser.
__________________
Some useful tools:
Notepad++ | Firebug
FatalError is offline   Reply With Quote
Old 03-12-2006, 06:23 PM   #3
michaewlewis
Senior Member
 
Join Date: Feb 2006
Posts: 118
I'm using IE 7.0 Beta... I wonder if it doesn't support that yet....
I'll try another browser and check.
__________________
CPU, AGP, SQL, PHP.... what is this language those young people keep speaking? What does it all mean!?
michaewlewis is offline   Reply With Quote
Old 03-12-2006, 06:34 PM   #4
michaewlewis
Senior Member
 
Join Date: Feb 2006
Posts: 118
firefox doesn't work either
__________________
CPU, AGP, SQL, PHP.... what is this language those young people keep speaking? What does it all mean!?
michaewlewis is offline   Reply With Quote
Old 03-12-2006, 08:57 PM   #5
FatalError
Senior Member
 
Join Date: Dec 2005
Location: Earth
Posts: 153
Ok, I'm not sure if any of these will work, but first, try returning true on the onmouseover event. If that still doesn't work, try using onMouseover with the capital M. Those are the only things I can think of.

EDIT: I just checked, and you have to return true. Change your code to this:

PHP Code:
 $insertpics .= "    <td align=\"center\"><a onmouseover=\"window.status='Open Picture'; return true;\" onmousout=\"window.status=''; return true;\" href=\"javascript:opener('$dirName/$jpgFile', $jpgWidth, $jpgHeight)\">\r      <img style='border-color:#8888aa; border-width:1px; border-style:solid;' src='$dirName/$gifFile'></a></td>\r";
__________________
Some useful tools:
Notepad++ | Firebug

Last edited by FatalError; 03-12-2006 at 09:00 PM.
FatalError is offline   Reply With Quote
Old 03-12-2006, 11:08 PM   #6
michaewlewis
Senior Member
 
Join Date: Feb 2006
Posts: 118
still didn't work in either IE7 beta or Firefox.... and I know... it should work!
__________________
CPU, AGP, SQL, PHP.... what is this language those young people keep speaking? What does it all mean!?
michaewlewis is offline   Reply With Quote
Old 03-17-2006, 05:35 PM   #7
Merve
black sheep with red wool
 
Merve's Avatar
 
Join Date: Jul 2003
Location: North of the 49th parallel
Posts: 2,579
That works for me in Firefox. Are you sure you have Change Statusbar Text enabled under JavaScript options under content options?
__________________
"A proof is a proof. What kind of a proof? It's a proof. A proof is a proof. And when you have a good proof, it's because it's proven." -- Jean Chrétien

The Three C's
Merve is offline   Reply With Quote
Old 03-17-2006, 09:53 PM   #8
michaewlewis
Senior Member
 
Join Date: Feb 2006
Posts: 118
That's what it was... thanks.
Does IE and FF come preloaded with that feature turned off? If it does, I might as well do away with the whole feature on my site.

Thanks for the help Merve and FatalError. Sorry I didn't check it right away.
__________________
CPU, AGP, SQL, PHP.... what is this language those young people keep speaking? What does it all mean!?
michaewlewis is offline   Reply With Quote
Old 03-18-2006, 02:13 AM   #9
Weedpacket
Custom User Title™
 
Weedpacket's Avatar
 
Join Date: Aug 2002
Location: Rapid Offensive Unit "Foreign Object Damage"
Posts: 19,128
I think in Firefox it has been turned off by default for security reasons (phishing prevention).

You might as well do away with it; the status bar is for browser status messages. Why not use a title= attribute instead?
<a href="..." title="Open Picture">
__________________
On two occasions I have been asked [by Members of Parliament], "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
Weedpacket is offline   Reply With Quote
Old 03-18-2006, 01:13 PM   #10
michaewlewis
Senior Member
 
Join Date: Feb 2006
Posts: 118
I wanted to change the status bar because my href is kind of a nasty looking thing like this:
javascript:opener('pics/4.jpg', 300, 221)
and I would rather have something nice and clean like: 'Open Picture'

Is there an easy way to have the title appear immediately, instead after the normal delay?
__________________
CPU, AGP, SQL, PHP.... what is this language those young people keep speaking? What does it all mean!?

Last edited by michaewlewis; 03-18-2006 at 01:15 PM. Reason: what's that smiley there for! :o
michaewlewis is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 03:03 PM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.