Results 1 to 6 of 6

Thread: Combine 2 scripts? CMotion Image & Lightbox image viewer

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

    Default Combine 2 scripts? CMotion Image & Lightbox image viewer

    Is there a script to combine "Lightbox image viewer" and "CMotion Image Gallery"?

    http://www.dynamicdrive.com/dynamici...tbox/index.htm

    http://www.dynamicdrive.com/dynamici...ongallery.htm#

    Thanks

  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

    If you use Lightbox 2.04a:

    http://home.comcast.net/~jscheuer1/side/lightbox2.04a/

    All you need to do is to add the lightbox syntax to Cmotion, ex:

    Code:
    <div id="motioncontainer" style="position:relative;overflow:hidden;">
    <div id="motiongallery" style="position:absolute;left:0;top:0;white-space: nowrap;">
    
    <nobr id="trueContainer"><a href="larger.jpg" rel="lightbox"><img src="dynamicbook1.gif" border=1></a>  . . . </nobr>
    
    </div>
    </div>
    - John
    ________________________

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

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

    Default

    Thanks for that

    Ive actually changed my idea but still want to use the Cmotion gallery. http://www.dynamicdrive.com/dynamici...ongallery.htm#

    My only question is, can I change it so that it auotmatically scrolls to the right without palcing cursor.

    I would still like it to go afaster though when you roll over the right hand side.

  4. #4
    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

    Use Text and/or Image Crawler:

    http://home.comcast.net/~jscheuer1/side/thecrawl/
    - John
    ________________________

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

  5. #5
    Join Date
    Jul 2007
    Posts
    8
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    I seem to be able to get the text.. but not combine it with the image gallery!!!

  6. #6
    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

    Here's an example with images, setup like I think you want, or close to it:

    Code:
    <div class="marquee" id="art">
    <img src="../files/photo1.jpg" alt=""> <img src="../files/photo2.jpg" alt=""> <img src="../files/photo3.jpg" alt=""> <img src="../files/photo4.jpg" alt=""> <img src="../files/photo5.jpg" alt=""> <img src="../files/photo6.jpg" alt=""> <img src="../files/photo7.jpg" alt=""> <img src="../files/photo8.jpg" alt=""> <img src="../files/photo9.jpg" alt="">
    </div>
    
    <script type="text/javascript">
    marqueeInit({
     uniqueid: 'art',
     direction: 'right',
     style: { //style object for this marquee container (use quotes on both sides of the : as shown)
    	'width': '60%',
    	'height': '235px',
    	'background-color': '#ddd',
    	'border': '1px solid #111',
    	'margin': '2ex auto 0 auto'},
     inc: 6, //speed - pixel increment for each iteration of this marquee's movement
     moveatleast: 4,
     mouse: 'cursor driven' //mouseover behavior ('pause' 'cursor driven' or false)
    });
    </script>
    - John
    ________________________

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

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
  •