Behavior: Set Text of Status Bar - Not Working

G

garo green

Has anyone gotten this Behavior to work properly - ever?

I've attached the behavior to an image (with a rollover) with the Event set
to onMouseOver. However, when I move over the image, the URL to the linked
page appears, not the text in the status bar. That only appears after
onMouseOut, which is incorrect. The URL shouldn't appear at all and the
status bar text that I want should appear onMouseOver. After onMouseOut the
text in the status bar never goes away - sheesh!

Also, will FrontPage support dummy/nowhere links? I want to get the finger
for a rollover image (that has not real URL) that will open a new browser
window, but can't seem to find a way to make that happen.

Any help would be greatly appreciated!
Thanks,
/garo
 
T

Thomas A. Rowe

You need to do a search in your IE address bar:

? JavaScript Status Bar script

For a dummy link, try:

javascript:void()

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
G

garo green

Thanks for the JavaScript tip - it works, but with a Page Error in the
Status Bar. I can live with that for now.

So, I assume you have not gotten the native Set Text of Status Bar JS code
to work successfully within FrontPage 2003?

/garo
 
S

Steve Easton

Probably because very few people use it.
If I can't see the link in the status bar when I hover over the link, I usually don't click it.
;-)

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
T

Thomas A. Rowe

Personally, I do use either method.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
G

garo green

Good point - I've "heard" that some adult sites use status bar text (via JS)
to hide the URL you are being directed too. Of course, I've only heard of
that. ;)

On a serious note, it is kind of silly to have the feature there and not
working properly. There is a way to do this successfully. Still, FrontPage
isn't the first or only program to be released with a feature that doesn't
work, and I am sure it won't be the last!

/garo
 
J

Jon Spivey

Garo,
Just tested this (never used this behavior before) and you're right as it
stands the FP script will not work in the situation you described. To make
it work follow these steps.
1/ insert your image
2/click your image and hit Ctrl + k to hyperlink it
3/ type "javascript:;" without the quotes into the dialog
4/ hit format - behaviors - set text - set text of status bar - type message
hit OK
5/ Click on events - at the end of the list you'll see Events for a - choose
(mouseover)
6/ flip to html view and you'll see this code
<a href="javascript:;" onmouseover="FP_setStatusBarText('test message');">
<img border="0" src="vbg.gif" width="162" height="48"></a></p>

that will not work. Modify it to look like this
<a href="javascript:;" onmouseover="FP_setStatusBarText('test message');
return true">
<img border="0" src="vbg.gif" width="162" height="48"></a></p>

Now it works. You'll probably want to add an onmouseout event to remove the
message. Clearly this is an error in the FP script - I agree it's lame. It's
probably a measure of how few people use this behavior that this error has
not been reported in the group before.
 
G

garo green

Thanks for the hack Jon - great tip! Y
ea, this is just one of those features that never get used in real-world
situations.

Thanks,
/garo
 
S

Stefan B Rusynko

If you are going to use it more than once, you could create your own Behavior (w/ the correction)
See http://msdn.microsoft.com/library/d..._fp2003_ta/html/odc_fpCustomizingSnippets.asp




| Thanks for the hack Jon - great tip! Y
| ea, this is just one of those features that never get used in real-world
| situations.
|
| Thanks,
| /garo
|
|
|
| | > Garo,
| > Just tested this (never used this behavior before) and you're right as it
| > stands the FP script will not work in the situation you described. To make
| > it work follow these steps.
| > 1/ insert your image
| > 2/click your image and hit Ctrl + k to hyperlink it
| > 3/ type "javascript:;" without the quotes into the dialog
| > 4/ hit format - behaviors - set text - set text of status bar - type
| message
| > hit OK
| > 5/ Click on events - at the end of the list you'll see Events for a -
| choose
| > (mouseover)
| > 6/ flip to html view and you'll see this code
| > <a href="javascript:;" onmouseover="FP_setStatusBarText('test message');">
| > <img border="0" src="vbg.gif" width="162" height="48"></a></p>
| >
| > that will not work. Modify it to look like this
| > <a href="javascript:;" onmouseover="FP_setStatusBarText('test message');
| > return true">
| > <img border="0" src="vbg.gif" width="162" height="48"></a></p>
| >
| > Now it works. You'll probably want to add an onmouseout event to remove
| the
| > message. Clearly this is an error in the FP script - I agree it's lame.
| It's
| > probably a measure of how few people use this behavior that this error has
| > not been reported in the group before.
| >
| >
| >
| >
| > --
| > Cheers,
| > Jon
| > Microsoft MVP - FP
| >
| > | > > Personally, I do use either method.
| > >
| > > --
| > > ==============================================
| > > Thomas A. Rowe (Microsoft MVP - FrontPage)
| > > WEBMASTER Resources(tm)
| > >
| > > FrontPage Resources, WebCircle, MS KB Quick Links, etc.
| > > ==============================================
| > > To assist you in getting the best answers for FrontPage support see:
| > > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > >
| > | > > > Thanks for the JavaScript tip - it works, but with a Page Error in the
| > > > Status Bar. I can live with that for now.
| > > >
| > > > So, I assume you have not gotten the native Set Text of Status Bar JS
| > code
| > > > to work successfully within FrontPage 2003?
| > > >
| > > > /garo
| > > >
| > > >
| > > >
| > > >
| > > >
| > > > | > > > > You need to do a search in your IE address bar:
| > > > >
| > > > > ? JavaScript Status Bar script
| > > > >
| > > > > For a dummy link, try:
| > > > >
| > > > > javascript:void()
| > > > >
| > > > > --
| > > > > ==============================================
| > > > > Thomas A. Rowe (Microsoft MVP - FrontPage)
| > > > > WEBMASTER Resources(tm)
| > > > >
| > > > > FrontPage Resources, WebCircle, MS KB Quick Links, etc.
| > > > > ==============================================
| > > > > To assist you in getting the best answers for FrontPage support see:
| > > > > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > > > >
| > > > | > > > > > Has anyone gotten this Behavior to work properly - ever?
| > > > > >
| > > > > > I've attached the behavior to an image (with a rollover) with the
| > Event
| > > > set
| > > > > > to onMouseOver. However, when I move over the image, the URL to
| the
| > > > linked
| > > > > > page appears, not the text in the status bar. That only appears
| > after
| > > > > > onMouseOut, which is incorrect. The URL shouldn't appear at all
| and
| > the
| > > > > > status bar text that I want should appear onMouseOver. After
| > onMouseOut
| > > > the
| > > > > > text in the status bar never goes away - sheesh!
| > > > > >
| > > > > > Also, will FrontPage support dummy/nowhere links? I want to get
| the
| > > > finger
| > > > > > for a rollover image (that has not real URL) that will open a new
| > > > browser
| > > > > > window, but can't seem to find a way to make that happen.
| > > > > >
| > > > > > Any help would be greatly appreciated!
| > > > > > Thanks,
| > > > > > /garo
| > > > > >
| > > > > >
| > > > >
| > > > >
| > > >
| > > >
| > >
| > >
| >
| >
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top