Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

CityDesk removes mouseover script

I have a mouse-over effect on the photograph on the left side of this page:

http://www.astrocyte-design.com/

If I view the index file in HTML mode, then switch to "Normal" mode, and then switch back to HTML mode, the mouseover script gets removed.  Is there a reason for this behavior?  And is there a way to stop CityDesk from doing this?  And will the final version of 2.0 do this?

Alex Chernavsky
Tuesday, August 05, 2003

OK, I see in the archives that there was some discussion about this topic already.  Still, I'm not clear on the answers to the questions I posed above.  I should also say that I'm running version 2.0.17.

Alex Chernavsky
Tuesday, August 05, 2003

it gets removed completely?

That's weird.

I just fixed a bug in CD 2.0.17 that would cause scripts to get >duplicated< when you switched back and forth. But they shouldn't get >deleted<.

If you can send me the HTML source of the page in question I'll double check that we've got it working right now.

Joel Spolsky
Tuesday, August 05, 2003

I've had the same thing happen to me. Here is the HTML:

<a href="PTMFOG0000000057" onMouseOver="cross.src='PTMFOG0000000055.gif';" onmouseout="cross.src='PTMFOG0000000056.gif';"><img id="cross" alt="" src="PTMFOG0000000056.gif" width="132" height="188" border="0" /></a>

I have to keep this in HTML view, because if I switch to normal view the mouseover code disappears.

CRC
Wednesday, August 06, 2003

CRC, I'm not seeing what you're describing (the mouseover events disappearing).

Does anyone else have this problem?

Joel Spolsky
Wednesday, August 06, 2003

... i should add, if you bring up the Picture dialog on this picture, then you're likely to lose the onmouseover events because when you save your changes from the picture dialog it will rewrite your IMG tag...

Joel Spolsky
Wednesday, August 06, 2003

Now that you mention it, I'll bet that's what happened - I probably opened up the properties window on the image.

I went back and tried to reproduce the behavior, and that's the only way I could make the JS disappear.

CRC
Sunday, August 10, 2003

*  Recent Topics

*  Fog Creek Home