greetings Richard,
Saturday, June 02, 2001, 12:17:42 AM, you wrote:
RB> There's an example of an image rollover inside a layer here, if that's what
RB> you mean:
RB> http://www.richardinfo.f2s.com/dynapi/Richard_Examples/Image_Rollover2.html
thanks, but...
nay :)
take a look at a piece of code:
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>')
that's definitely NOT the best way to do it. all i actually want is to
set up the following construction:
<div name="blahblah">
<a href="#" onmouseover="do_rollover()" onmouseout="do_rollout()"><img
src="moo.gif"></a>
</div>
in the sample code above i can 1) init the <div> as a dynlayer and 2)
do not init it and PRESERVE the actual layout. your source code does
not allow to preserve the layout. that's a major drawback if i want to
do some nondestructive changes. besides, i cannot share that code with
non-dynapi users - to edit a particular image properties or the image
itself, and so on and so forth... any idea how to craft my code style
in dynapi 2 ?
RB> If you(re having trouble with my site, browse all the examples here, no
RB> script :o)
RB> http://www.richardinfo.f2s.com/dynapi/php/examples.html
thanks :)
RB> There's quite a bit of documentation at the Dynapi site, but it was hacked
RB> last week, and is down for repair (temp Sourceforge site is up).
RB> It included a documentation system that could be updated by the users
RB> themselves.
oh...
RB> I don't really consider DynAPI2 to be better than DynAPI1 for *all* needs,
RB> it's a shame DynAPI1 hasn't been maintained to work for newer browsers, if
RB> someone has done this, I'd love to host it as an alternative.
RB> The main difference is in DynAPI1, you defined the objects you needed, and
RB> showed or hid them as needed, in DynAPI2, you can create objects when you
RB> need them, build them into complex objects, basically the browser memory is
RB> your only limit. + it forces you to learn javascript to the bone.
well complex objects is definitely not an option.
i'm developing a php4/mysql site at the moment, with some javascript
thrown in. what i feel about my code is that it definitely
RB> But I still use simple tools, like the 1kAPI, if it's a more or less static
RB> page .
RB> Anyway, if you have time to help on improving examples, or documentation,
RB> it's always appreciated.
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 :)
cheers.
x.
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help