Trying to restore a Behaviors changed property

G

Guest

Hi all.
I set up some text and then used Behaviors to make the text Bold with a
mouseover and then restore it to normal with a mouseout and this worked fine.
Then I created a layer to contain some information, set it's visibility to
hidden, and used Behaviors to display the layer with a mouseover on the text
and wanted it to disappear again with a mouseout.

Now what happens is that the text goes bold and the layer appears with a
mouseover on the text (which is what I want) but with a mouseout, the layer
disappears, which is good, but the text stays bold, which is not good.

Does the "restore property" only work for one property at a time.
Anyone know how to restore multiple properties with Behaviors?

Thanks.

Heres the HTML:

<p id="id2" onmouseout="FP_changePropRestore()"
onmouseover="FP_changeProp(/*id*/'id2',1,'style.fontWeight','bold');
FP_changeProp(/*id*/'layer7',1,'style.visibility','visible')">
Show Information Box</p>

<div style="position: absolute; width: 205px; height: 45px; z-index: 2;
left: 210px; top: 2390px; visibility: hidden; border: 1px solid #000000;
padding: 10px; background-color: #FFFF99" id="layer7">
<p align="center">Place information in this box.</div>
 
R

Ronx

Restore on mouseout only works on the last behaviour, not all.
Set up a behaviour triggered by onmouseout to restore your text, or
hide the layer, whichever is the first one called by onmouseover
 
G

Guest

I did what you said.
Works Great!
Thank you sir.

There's so many things I don't know about FP that I wish I did. Do you guys
(and gals) get to the point where you feel like you have it mastered, or do
you continue to find out new things, all the time?

--
Don
*********


Ronx said:
Restore on mouseout only works on the last behaviour, not all.
Set up a behaviour triggered by onmouseout to restore your text, or
hide the layer, whichever is the first one called by onmouseover
 

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