FP_setLayerText

J

Joskin

Hello,

Bit of a newbie question.....
I'm using the following to put text in 'textlayer' when I hover over
'layer2'
It works - BUT ONLY THE ONCE and then I have to refresh the page before it
will work again- it's driving me nuts

<div style="position: absolute; width: 127px; height: 25px; z-index: 2;
left: 118px; top: 25px" id="layer2">
<a style="font-family: Arial; color: #FFFFFF; font-weight: bold"
title="Recorded at Rain Station xxx" href="mainrain.htm"
onmouseover="FP_setLayerText(/*id*/'textlayer',' Monthly rainfall
information')" onmouseout="FP_setLayerText(/*id*/'textlayer',' ')">Monthly
Rainfall</a></div>

Any help would be appreciated

Also is there any way to change the font in the displayed layer?

TIA
Joskin
 
M

Murray

I see what you are describing. I'll have to worry this one....

You can style the font in the displayed layer easily by creating a CSS style
for #textlayer.
 
M

Murray

Well, I believe you have stumbled onto something that *should* be trapped by
FP. When you apply the onmouseout part, if you leave the textarea blank, it
should insert a non-breaking space in the markup, but it does not.
Nevertheless, that's how to fix it....

Change this -

<div style="position: absolute; width: 127px; height: 25px; z-index: 2;
left: 118px; top: 25px" id="Layer2">
<a style="font-family: Arial; color: #000000; font-weight: bold"
title="Recorded at Rain Station xxx" href="mainrain.htm"
onmouseover="FP_setLayerText(/*id*/'textlayer', ' Monthly rainfall
information')" onmouseout="FP_setLayerText(/*id*/'textlayer', ' ')">Monthly
Rainfall</a></div>

to this -

<div style="position: absolute; width: 127px; height: 25px; z-index: 2;
left: 118px; top: 25px" id="Layer2">
<a style="font-family: Arial; color: #000000; font-weight: bold"
title="Recorded at Rain Station xxx" href="mainrain.htm"
onmouseover="FP_setLayerText(/*id*/'textlayer', ' Monthly rainfall
information')" onmouseout="FP_setLayerText(/*id*/'textlayer',
'&nbsp;')">Monthly Rainfall</a></div>

I will do a little further investigation and see what else I can come up
with.
 
J

Joskin

Murry,

I love you and I want to have your babies!

That's brilliant - your answers have solved both my problems - many, many
thanks!

Joskin
(male, aged 63 - sorry!)
 
M

Murray

You're welcome. I wouldn't have your babies if you paid me! 8)

Well, it would depend on how MUCH you paid me....
 

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