> You can use createElement to dynamically create your imgs. > Seehttp://code.google.com/apis/desktop/docs/gadget_apiref.html#basicElement > for the supported functions to create elements. Actually, as far as I know, there is no createElement. In the specs you will find: - appendElement(string xml) - appends the element as the last child of this element, - insertElement(string xml, element InsertBefore) - inserts the element immediately before the InsertBefore element.
If you are interested in example, download this gadget (http:// desktop.google.com/plugins/i/chess.html), change .gg extention to .zip, unzip the file and then browse the gadget files. draws.js contain some methods to dynamically 'draw' the board (dynamically creating divs and imgs). Hope this helps, fat bold cyclop --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Desktop Developer Group" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Desktop-Developer?hl=en -~----------~----~----~----~------~----~------~--~---
