A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: using a lightbox...any ideas please?

  1. #1
    Senior Member
    Join Date
    Sep 2006
    Posts
    125

    using a lightbox...any ideas please?

    Hi all

    I have an movie for site for a customer. Within the movie are thumbnails of imags. We need to get these thumbnails to open in a light box when clicked.



    The customers site already uses lightbox (jquery) extensively and they have sent us all the files.



    To make the image open in a light box you just make it a link and give it a class. This makes me think that I will need to import some css into flash to give the links the necessary styling.





    However, I suspect that there is rather a lot more going on with the jquery files than that!!! (About which i am not an expert)



    Have searched and can't find anything too helpful.



    Any one got any ideas about what I would need to do in order to make this work? Has anyone else tried it? Would I be better of just using flash to re-create the effect (which is a pretty straight forward one it has to be said)



    In order to set the lb up for html you just do this in the header:

    Code:
    <script type="text/javascript">
      document.getElementsByTagName('html')[0].className = 'jsEnabled';
     </script>
    <title>index001</title>
    <link rel="stylesheet" type="text/css" href="styles/styles.css" />
        <script type="text/javascript" charset="utf-8" src="scripts/jquery-1.3.1.min.js"></script>
        <script type="text/javascript" charset="utf-8" src="scripts/fn_combined.js"></script>
        <script type="text/javascript" charset="utf-8" src="scripts/global.js"></script>
    and then in the body

    Code:
    <a class="lightbox" href="openMe.html">CLICK HERE</a>


    any thoughts much appreciated



    Edward

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    Here is a Flash lightbox tutorial:

    http://blog.codefidelity.com/?p=18
    - The right of the People to create Flash movies shall not be infringed. -

  3. #3
    Senior Member
    Join Date
    Sep 2006
    Posts
    125
    thanks for a really useful tip.

    Not sure, but maybe s/he's not supporting that any more 'cuase I can't get the lightbox++ files to look at. However, its got me thinking about the ExternalInterface thingy(!) and that led to this... www.bram.us/projects/flashlightboxinjector

  4. #4
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    You may want to look at this thread and download the files. Shadowbox and lightbox are similar.

    http://board.flashkit.com/board/show...ight=shadowbox
    - The right of the People to create Flash movies shall not be infringed. -

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center