Home > Uncategorized > ff javascript library

ff javascript library

Categories: Uncategorized Tags: , ,
  1. madhuts
    October 18th, 2009 at 02:21 | #1

    Hi,

    I tried to add image but I don’t know how to do this
    Can anyone be kind to tell me how?

    thanks a lot

    • October 18th, 2009 at 19:53 | #2

      easiest way is to globally initialize the dom builder and then do add an image via the created tag functions

      // make sure page is loaded
      ff.event.onload( function()
      {
      // call this once per page it creates all tag functions as
      // global uppercase functions
      ff.dom.init(window);
      // create an IMG with “test.gif” as src and immediately
      // add it to the document
      document.body.appendChild(IMG({“src”:”test.gif”}));
      });

  1. No trackbacks yet.