Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Oct 2010
    Location
    Cincinnati
    Posts
    2
    Member #
    24358
    Alright, wasn't able to locate any previous results so maybe someone
    can advise me on this.



    I've got some thumbnails connected to the "Swap Image" behavior,
    basically a disjointed rollover.



    Now I want to attach the LightBox script to the rolled over image.




    The difficulty i'm having is locating where to attach and create the <a href link and rel="lightbox" attribute on my image "Greed.jpg"



    Here's a portion of my code.


    HTML Code:
    <img src="Images/Thumbnails/7D1.jpg" alt="" name="thumb_01" width="74" height="74" class="TNPositioning2" id="thumb_01" onclick="MM_showHideLayers('caption1','','hide','caption2','','show','caption3','','hide','caption4','','hide','caption5','','hide','caption6','','hide','caption7','','hide')" onmousedown="MM_swapImage('photo_large','','Images/Greed.jpg',1)" />

    For clarity you'll see in the beginning a thumbnail called "/7D1", a class, id, show-hide elements for captions, then towards the end the swapImages behavior connected to my image "Greed.jpg" That's the image i'm trying to attach the lightbox link to.





    Thanks

  2.  

  3. #2
    Member JayWood's Avatar
    Join Date
    Oct 2010
    Location
    East Coast U.S.
    Posts
    55
    Member #
    24240
    I am assuming that the code is Dreamweaver generated. What I gathered from this is that you have one main image, when you rollover the main image (image1), it changes to the second image (image2). However, when you click, you want "image2" to open with a lightbox effect, not "image1", correct?

    If this is what you're looking for, I believe I could divise a little jQuery code that would do what you are looking for. If not, please correct what I have wronged
    Don't forget to Rep people if they've helped you, it's just the right thing to do.
    My Site - JJ's Webs
    My oDesk Profile - Hire me on oDesk
    My Themeforest Profile - Just for you TF people!

  4. #3
    Junior Member
    Join Date
    Oct 2010
    Location
    Cincinnati
    Posts
    2
    Member #
    24358
    I'm starting to assume that lightbox isn't very compatible with Dreamweaver's jQuery or javascript rollovers. That's sort of beyond my understanding and probably difficult to manage for a novice developer.

    But if not maybe you could show me. Thanks for the advice.
    For now I've created a text [x] Enlarge link so the lightbox works.

    Here's an "example" of the swap image behavior, as a demonstration the Liberace image would be linked to lightbox after it becomes visible.)

    Click Here


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:23 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com