Hey Chris,
  Try using imagebutton.js in the DyanAPI gui folder
to do your buttons.  Now, just to duck the rocks,
everyone remember that he has multiple buttons and
wants to do preloading.  This seems to me a natural
for DynAPI along with his other DynAPI content.
  
Here is a link to a demo page that gives usage info
and shows a preload example.

http://www.merlinsworld.net/dynapi_ri_dcexamples/image_button.html

The preloading is accomplished in the Dynimage
getimage function and then add the button images in
the onloaderdone function (see usage instructions on
page).

>From the description you gave, I would say no, the
images you currently are using are not preloaded. 
Also, keep in mind that the setBgImage can produce the
hourglass syndrome in IE.

There are a few problems to be aware of, onclick in
ns4 appears to have a problem, so do this till it gets
fixed (for buttonimage)
buti02 is the variable assigned to the occurrence of
the button:

buti02.events.onmouseup = function (e) {
                        var o = e.getTarget();
                        if (!o.checkbox) o.change(o.defaultImage);
                        e.setBubble(false);
                        // place your code here
                        
                        };

This replaces the events.onmouseup function assigned
by the widgets listener.  Be sure to leave the first 3
lines the same to maintain your rollover capability.
Use the 3 images version and just assign the same
image to 2 and 3 for a simple rollover.

Cheers,
Dave C.  "You Changed What?!?"

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to