Results 1 to 3 of 3

Thread: Flash launching Image Thumbnail Viewer??

  1. #1
    Join Date
    Oct 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Flash launching Image Thumbnail Viewer??

    1) Script Title:
    Image Thumbnail Viewer

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamicindex4/thumbnail.htm

    3) Describe problem:
    Could someone help me out. I'd like to use flash to open the thumbnail viewer but <a href> is kind of non existent.

    What i can do is:
    getURL("javascript:someFunction()")

    How possible is it to reference the right javaScript Function in thumbnailviewer.js
    and send it the right info?? I dont know much about jS so im not sure what to send it or how it works.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Assuming you can actually do that:

    Code:
    getURL("javascript:someFunction()")
    What you would need to do is to setup the links on the page anyway (example from the demo page):

    Code:
    <a href="castle.gif" rel="thumbnail" title="This is beautiful castle for sale!">Castle</a>
    But you wouldn't need all of that (the red in the above could go), some extra id info (red in the below) would be required, and your users wouldn't need to see them (green container division):

    Code:
    <div style="display:none;">
    <a id="castle" href="castle.gif" rel="thumbnail" title="This is beautiful castle for sale!"></a>
    <a id="house" href="hill_house.gif" rel="thumbnail" title="House on a hill"></a>
    <a id="forrest" href="forrest.gif" rel="thumbnail" title="A lovely forrest"></a>
    </div>
    Once you have all of that in the body someplace, anywhere in the body really, and you install the script on the page as far as Step 1 from the demo page goes, you could use this in your Action Script:

    Code:
    getURL("javascript:thumbnailviewer.stopanimation();thumbnailviewer.loadimage(document.getElementById('castle'));")
    Or perhaps it would need to be:
    Code:
    getURL("javascript:void(thumbnailviewer.stopanimation());void(thumbnailviewer.loadimage(document.getElementById('castle')));")
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Oct 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Wow, you’re an absolute champ!
    Works fine!
    The fade animation seems to only work on mouse movement for some strange reason but im not too worried and just switched it off.
    Thanks so much for your help. Absolutely tops.

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
  •