Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2012
    Posts
    68
    Plugin Contributions
    2

    Default Make Lightbox Movable/Draggable

    Can any Zen guru make the lightbox (http://www.zen-cart.com/downloads.php?do=file&id=170) movable so that users can read the webpage without closing the lightbox?
    my url: http://angelcorp.net/zencartscottou/...products_id=49

    I found an article talking about draggable lightbox (http://docs.jquery.com/UI/API/1.8/Draggable), but I have no idea how to add those codes into lightbox program.
    thanks.

  2. #2
    Join Date
    Jun 2012
    Posts
    68
    Plugin Contributions
    2

    Default Re: Make Lightbox Movable/Draggable

    Plugin Draggable Modal Image with Zoom can be used to solve the question. The plugin combines: Modal Image, Draggable Element, Image Zoom, and Tabs code. All from w3schools. Demo is available at https://shop.angelcorp.net/index.php...products_id=99

    I combined those codes to solve this question I posted years ago. It may surprise you that I'm not an IT person. I'm a CPA from California. As a result,
    1. I'm not able to provide any technical support. Anybody can step in to improve and/or expand the function of this plugin.
    2. If your major is not computer science, don't be frustrated. You can build beautiful website as long as you devote time and energy. I initially started learning code right here at Zen Cart forum.

    Following improvements are warmly welcomed:
    1. Expand the function of this plugin to cover additional images, like I did with https://cn.angelcorp.net/shop/goods.php?id=9. I have difficulty to make it work with Zen Cart.
    2. The Tabs code from w3schools is very lightweight, so I used it on https://angelcorp.net/organic-formul...products_id=87. But on demo page, I had to use Tabbed Products plugin, because I cannot put Customer Reviews under a tab when using Tabs code from w3schools. Additional codes are required but I don't know how.

  3. #3
    Join Date
    Jul 2009
    Posts
    125
    Plugin Contributions
    0

    Default Re: Make Lightbox Movable/Draggable

    WOW! thanks! certainly going to try this out!

  4. #4
    Join Date
    Jul 2009
    Posts
    125
    Plugin Contributions
    0

    Default Re: Make Lightbox Movable/Draggable

    Hey Scott, can you please help me a little. 'm facing a green box in the zoomed area and can't find where to change it what css sheet ii need to use!
    thanks
    Eugénie

  5. #5
    Join Date
    Jun 2012
    Posts
    68
    Plugin Contributions
    2

    Default Re: Make Lightbox Movable/Draggable

    Please go to file: /includes/templates/Your-Template/jscript/jscript_zoom_modal_tab.js
    and see Line 59: document.getElementById('myresult').style.border = "1px solid #65AC94";

    I think that's what you are looking for.

  6. #6
    Join Date
    Jul 2009
    Posts
    125
    Plugin Contributions
    0

    Default Re: Make Lightbox Movable/Draggable

    hahahahaha, totaly overlooked it.
    can easy say works like a charm! thanks Scott,
    Eugenie

    Quote Originally Posted by scott_ease View Post
    Please go to file: /includes/templates/Your-Template/jscript/jscript_zoom_modal_tab.js
    and see Line 59: document.getElementById('myresult').style.border = "1px solid #65AC94";

    I think that's what you are looking for.

  7. #7
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,151
    Plugin Contributions
    11

    Default Re: Make Lightbox Movable/Draggable

    Actually, that should be corrected in the stylesheet_zoom_modal_tab.css on line 13 IF you have that file with your template.

    To find your changes during the next upgrade, you can create includes/templates/YOUR_TEMPLATE/css/stylesheet_zcustom.css and add
    Code:
    .modal { 
      width: 475px;
      height: 529px;
      background-color: #fff;
      border: 10px solid #65AC94;
    }
    .modal-content {
    border-bottom: 8px solid #65AC94;
    }
    This will control most anything you want to do with the pop-up. Change the colors as needed. Those above are used in the example.

    The .modal background controls both the upper- and lower-portions of the pop-up. .modal-content controls the bottom of the image NOT the whole pop-up. Interesting usage.

 

 

Similar Threads

  1. v139h lightbox and IH2 - additional image not working in the lightbox
    By kitcorsa in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 2 Aug 2013, 10:45 AM
  2. Where to insert js code for 'draggable layer'?
    By rlfreshwater in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 16 Nov 2008, 08:42 PM
  3. Make Help link lightbox instead of popup window
    By dreamz in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 8 Feb 2008, 04:31 AM
  4. Zen Cart and Movable Type
    By themexican@earthlink in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 12 Feb 2007, 11:42 PM
  5. DOM Draggable Content Template [Design Phase]
    By qhome in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 25 Nov 2006, 09:39 AM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR