Results 1 to 5 of 5

Thread: fish eye script

  1. #1
    Join Date
    Dec 2005
    Posts
    133
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default fish eye script

    Can someone please explain how to use this in a custom area and one image per table cell?

    http://www.ndesign-studio.com/blog/m...menu/#more-215

    I posted a comment 2 days ago and apparently it did not go through.

  2. #2
    Join Date
    May 2007
    Location
    USA
    Posts
    373
    Thanks
    2
    Thanked 4 Times in 4 Posts

    Default

    I don't know, but I would like it if someone explained the $ and the : stuff, as I am unfamiliar with that javascript syntax.
    Code:
    <script type="text/javascript">
    $(document).ready(
    function()
    {
    $(’#dock2′).Fisheye(
    {
    maxWidth: 60,
    items: ‘a’,
    itemsText: ’span’,
    container: ‘.dock-container2′,
    itemWidth: 40,
    proximity: 80,
    alignment : ‘left’,
    valign: ‘bottom’,
    halign : ‘center’
    }
    )
    }
    );
    </script>

  3. #3
    Join Date
    Feb 2007
    Location
    England
    Posts
    254
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default

    $ is just like any other variable. It can be used to name things. Ii think in Prototype it is a shortcut to document.getElementById().

    As for the colon. It allows you to make an object.

    object name: object properties.

    This can be a function, string etc.

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    $ is just like any other variable. It can be used to name things.
    But shouldn't be: ECMA-262 says it should be reserved for machine-generated identifiers.
    Ii think in Prototype it is a shortcut to document.getElementById().
    It does other things. It can select an element by ID, name, class, and various other criteria, I believe.
    So if I had an object constructor for lets say ShortStory
    No, not a constructor, just a single instance of an object. For example:
    Code:
    var myobj = {
      'prop1' : "somevalue",
      'prop2' : "someothervalue"
    };
    
    myobj.prop1; // "somevalue"
    myobj['prop2']; // "someothervalue"
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    May 2007
    Location
    USA
    Posts
    373
    Thanks
    2
    Thanked 4 Times in 4 Posts

    Default

    (I accidentally made a short post and deleted it)

    Ok, I get it after putting it to the test on my machine.
    Last edited by Trinithis; 05-22-2007 at 05:44 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •