Hi!
I've noticed that ButtonImage (If you try to resize the scrollpane example
you'll notice that the images don't change after doing this") has the same
problem in NS4.7; so it seems that changing images using the NAME attribute
in the IMG tag isn't compatible with NS 4 resize bug solution.
Rewriting the HTML content with a new IMG tag is the only solution I've
found.
Has anybody got another solution?
Josep
P.D.: I probably posted to the wrong list since it is so dead as it was
before ;-)
-----Mensaje original-----
De: Josep Monés i Teixidor <jm...@ne...>
Para: DynAPI Widget <dyn...@li...>
Fecha: miércoles 13 de diciembre de 2000 5:09
Asunto: [Dynapi-Widgetdev] SimpleRollOver widget
>Hi all,
>
>I've made a widget that I call SimpleRollOver because I simply use a
>DynLayer and set an image using a <IMG> tag. Then I apply a link using an
>anchor or a map. So I don't use events, just to keep it simple.
>
>I can use as many images as you want and seems to work well under IE4, IE5
>and NS4.7.
>
>The problem is when you resize the window under NS4.7, the layer is deleted
>and created by the resize fix, but then the images doesn't swap. I've tried
>to change the NAME attribute of the IMG tag every time it is created (this
>is the version that I've attached), and it sometimes works and sometimes
>not, but the NS always crashes.
>
>If I can't solve this bug I'll try to make it use DynImage and layer
events,
>but I liked it this way because it was so simple! Or I may include a
>"if(is.ns4)history.go(0);" in the resize handler!
>
>
>TIA,
>
>Josep
>
>P.D.: I don't know if devwidget was the appropiate list but it was so dead!
>
>
>
>
|