Index of /javascript/flickr/flickr-tags

      Name                    Last modified       Size  Description

[DIR] Parent Directory 30-Nov-2004 09:41 - [TXT] NOTES 06-Dec-2004 13:14 7k [TXT] example.html 06-Dec-2004 13:14 7k [   ] flickr-tags-1.0.tar.gz 06-Dec-2004 13:14 8k [TXT] flickr-tags.jar 06-Dec-2004 13:14 7k [IMG] nyt-flickr-1.jpg 30-Nov-2004 10:36 139k [IMG] nyt-flickr-2.jpg 30-Nov-2004 10:36 123k

NAME
    FlickrTags.js - display flickr.com images associated with one, or more,
    topics defined in a webpage's meta headers.

SYNOPSIS
     [html]
      [head]
       [title]...[/title]
       [meta  name="des" content="Elections;Demonstrations and Riots"]
       [meta  name="per" content=""]
       [meta  name="org" content=""]
       [meta  name="geo" content="Ukraine"]
       [!-- ... --]
       [script type = "text/javascript" src = "foo.js"]
        //
       [/script]
      [/head]
      [body]
       [!-- ... --]
       [script]
        var flickr = new FlickrTags ();
        flickr.add_topic("geo");
        flickr.draw();
       [/script]
      [/body]
     [/html]

DESCRIPTION
    FlickrTags.js will redraw the current DOM to display flickr.com images
    associated with one, or more, topics defined in a webpage's meta
    headers. The list of headers to poll is user-defined.

FlickrTags PACKAGE METHODS
  new FlickrTags ()
    Returns a *FlickrTagsg* object.

FlickrTags OBJECT METHODS
  foo.add_topic(string)
    Add a topic to search for tags that are polled from flickr.com.

    The value of *string* will be compared against the name attribute of
    each meta tag. If there is a match, then tags will be assigned using the
    semi-colon (;) separated list of values defined by the content
    attribute.

  foo.draw()
    Redraw the DOM, inserting a wrapper containing images as the first child
    of the body element.

    The wrapper, and its children, are assigned the following CSS classes :

    * ftag_flickr
        Assigned to a [div] element that wraps images and errors, if any.

    * ftag_imgwrapper
        Assigned to a [div] element that wraps each image.

    * ftag_img
        Assigned to each [img] element.

    * ftag_errors
        Assigned to a [div] element that wraps an unordered list of errors.

    Returns true or false.

VERSION
    1.0

DATE
    $Date: 2004/12/06 17:54:05 $

AUTHOR
    Aaron Straup Cope <www.aaronstraupcope.com>

LICENSE
    Copyright (c) 2004 Aaron Straup Cope. All rights reserved.

    This is free software, you may use it and distribute it under the same
    terms as the Perl Artistic License.