Index of /javascript/flickr/flickr-tags

Icon  Name                    Last modified      Size  Description
[PARENTDIR] Parent Directory - [   ] NOTES 2008-11-22 09:40 6.7K [TXT] example.html 2008-11-22 09:40 7.1K [CMP] flickr-tags-1.0.tar.gz 2008-11-22 09:39 8.1K GZIP compressed docume> [   ] flickr-tags.jar 2008-11-22 09:39 7.4K [IMG] nyt-flickr-1.jpg 2008-11-22 09:39 139K [IMG] nyt-flickr-2.jpg 2008-11-22 09:39 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 *FlickrTags* 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<gt> element that wraps images and errors, if any.

    * ftag_imgwrapper
        Assigned to a <div<gt> element that wraps each image.

    * ftag_img
        Assigned to each <img<gt> element.

    * ftag_errors
        Assigned to a <div<gt> element that wraps an unordered list of
        errors.

    Returns true or false.

VERSION
    1.0

DATE
    $Date: 2004/12/06 17:11:28 $

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.