greetings Richard,
Monday, June 04, 2001, 6:33:19 PM, you wrote:
RB> Like this:
RB> http://www.richardinfo.f2s.com/dynapi/Richard_Examples/inline_image_simple.html
Richard, yes, but... :)
it errors-out in netscape (mine is 4.76, sure it should be the same
for other versions)
right here:
l1 = this.document.all['1Div']
it just won't work - errors out with "l1 is not defined". either it's
in some way incompatible with netscape jscript (i'm not a guru in js),
or there are some problems with timing (id est, WHERE we need to
initialize a dynlayer).
RB> Using inline layers, although you have a handle on the layer like this, It
RB> only makes a reference to the DIV, most manipulations you can do with a
RB> dynlayer will work on an inline layer, but not all. I just found that
RB> mouseover, and mouseout don't work in NS6 for inline layers (bug).
oops... bad news...
besides... the trick i want to do is (in sort of meta-code to be
brief:)
<!-- start -->
<javascript>
preload_image1(url here);
preload_image2(url here);
preload_image3(url here);
</javascript>
<body>
<a href="#" onmouseover="set_image2" onmouseout="set_image1"><img></a>
</body>
<!-- end -->
just at the moment i use some code, derived from your example, so set
the onmouseovers/outs like this:
mylayername.doc.images[0].src="something";
not the best option.
maintaining the structure mentioned above, how do i do something like
1) preload some images and make some names (DynImage.getImage ?)
2) use an <img src="something" name="myimage"> <- and change THIS
image referencing it by name to the image that i preloaded before
referencing it by name again (see the meta-code above)
it was all VERY simple in dynapi1, but right now in dynapi2 i'm
puzzled again :)
peace,
x.
http://xmypoe.com
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help