> well at this point i'm simply puzzled and a bit dizzy about weird and
> complicated ways of dynapi 2 :) why SO MUCH fuzz about image rollover
> - initializing 1 (one) layer in dynapi 1 was more than sufficient,
> while in your example i see monstrous manipulations :) nothing
> personal, but it just is :)
If you want to preserve the layout of an existing page, I understand, but
"monstrous manipulations" ?
All it does is this:
myLayer = new DynLayer(null,50,150,200,200)
myLayer.setHTML('<a href="#" '
+'onmouseover=pic.src="../php/images/round2.gif"; '
+'onmouseout=pic.src="../php/images/round1.gif";>'
+'<img src="../php/images/round1.gif" name="pic" border=0></a>')
DynAPI.document.addChild(myLayer)
That's ALL the code needed to do a rollover, cross-browser, we only use
1(one) layer.
All a DynLayer is is a Div, under another name.
It's easy to preload the images for this.
If you think this is an exaggerated amount of code, you're into very heavy
optimization.
Not to say things don't look a lot different on a larger page, but still a
lot more structured than WYSIWYG code, spaghetti code as they say.
Richard.
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help