36 responses to “LightBox Vs VideoBox Vs Custom Code”

  1. tony

    nice, but now you have a problem with the fixed height/width. Images won’t be displayed in their original dimensions

  2. Sumit Gupta

    Well, when I use it I was defining the Image height and width as I usually do in my code. Also since Videobox has default setting for height and width, they will automatically called in my modified version if you do not set Image tags height and width. CSS settings won’t work here.

  3. Sumit Gupta

    Hello Dave,

    I don’t think it works with Set, atleast I never use it that way. However, about the width and height, for me it works perfectly with my set of script.

    If you already have Original set of JS files with you in your project, those need to be remove to make my version of script works fine.

    I will investigate for Set of images, or append this code for that if needed :)

  4. Nola

    Thanks for modifying the code I was having trouble having the 2 codes together on the same page and was happy I stumbled across this.

    I was wondering If there was a way to fix the overlay issue? I tried setting the body with margin 0: padding:0 but it still just overlays what’s visible and when you scroll the overlay is cut off to where the page wasn’t visible when the file is clicked (if that makes sense). I noticed this happening in the original code as well

  5. Sumit Gupta

    Hello,

    I observe that issue as well, however it is from original code only. However, I observe it is not the case when viewed on Firefox but only on IE.

    Seems the browser war is on in this code. Currently I have not solution for it, but if you found one please let us all know about it.

    Thanks

  6. Saul Caban

    Hi,

    It works perfect for me, the only thing that I can’t do it’s grouping more than 1 images in order to use the next and previous buttons like the lightbox js do. .

    Thanks

  7. Sumit Gupta

    Hello Saul,

    Actually you are talking about Lightbox feature, where as I modify VideoBox, so virtually there is no LightBox in above code.

    Hope that answer our question.

  8. jonny_dorito

    Hi have see this before just wondering is there anyway to make it run with instead of I know it just a matter a of inserting this Doctype but any help be gratful

  9. Paul Barnes

    Hi and thx for this version of videobox I have a question does videobox need xhtml strict to use? I downloaded inserted into my page videbox opened but the rightside of the white surround border is missing…. I am using html 4.01 but if i change the docutype to xhtml it ok but what I need to know is can it be used with just html 4.01 any feedback be helpful

  10. Sumit Gupta

    Hello,

    XHTML and HTML has different page parser, this make the rendering different in both cases. It is not that videobox is limited to any particular HTML code. (if it is, it belongs to VideoBox only, I didn’t modify that part). If it runs well with XHTML, then yes maybe it is XHTML code. I use it for XHTML site only :) .

    Inserting DOCTYPE is good to get proper rendering results.

  11. GarykPatton

    I have been looking looking around for this kind of information. Will you post some more in future? I’ll be grateful if you will.

  12. Peter

    Hello,

    First off, thank you for attempting this and successfully creating the custom code to the script. I too, however, am experiencing issues when attempting to retrieve the linked image as I’m imagining the videobox is grabbing the initial height. On my tags I am setting the thumbnail size but I would like for it to open in its original size which is approx. 813×360. Is there any other way to attempt this work-around? I’m a beginner in the programming world and have even tried customizing your code as well but no luck so far. Once again, thanks for all your work and sharing with the world!

  13. Peter

    Hi Sumit,

    Thank you for the suggestions. I have tried the following:

    Testing on a single page:

    - With only the scripts you have provided in a js/ folder
    - Regular IMG (813×360)
    - Thumbnail IMG (336×149)

    My code is as follows:

    +

    I’m still unable to get the vidbox to appropriately show the 813×360 IMG.

    Here’s an example: ridenrla.com/qa/index.php
    > the video shows up well
    > the picture doesn’t seem to complying with me T_T

    **Thank you for any suggestions Sumit and also thank you again for all your help.

  14. Peter

    sorry for the missing code above:

    /* */

  15. Curtis

    First off, absolutely love the Lightbox workaround Sumit! Exactly what I needed…

    Not sure if it’s still an issue for most, but I got the overlay problem fixed. Should remain, even when scrolled. Modified the videobox.css, should now look like:

    #lbOverlay {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    background-color: #000;
    cursor: pointer;
    }

    Works in Safari and Firefox.

  16. BIbi

    Hi Guys,

    Do you know how to :

    Add a background image different for each player (rel vidbox parameters) when video is ended

    Or / and
    automaticaly close videobox when video is ended.

    Thank you
    Bibi

  17. Bibi

    Thank you but i am a poor javascript developper…

  18. ryan

    is there a way to make the video play automatically in videobox? can’t seem to get it to work

  19. Dee Turman

    Is there any way to link to your own video?

  20. Katie

    Did you ever figure out how to get a set to work so you can click next and previous? Just curious because I could really use that feature.

    And by the way, thank you for sharing your insight. It’s been a tremendous help!

  21. JB

    Is it possible to put a next en a prev button in it for the photo gallery.
    So yes how.

  22. Cristiano

    It Work very nice.
    Thanks.

  23. RR

    Is there a way where you can still be able to group images into sets?

  24. Kenna

    Hello Sumit

    I wonder if you know why it does not work properly when you have videolightbox and lightbox together? Lightbox is working correctly as long as no jquery.tools.min.js appear in html. If not jquery.tools.min.js included the video only plays in full size of the screen. What I want is to have some part with lightbox and another part with videolightbox at the site. If you look at my site that I have linked you will see the lightbox works but the video will have full screen on videolightbox. I want the video screen to display the same size as the original film.

    t would be extremely nice if you can figure out where the problem lies. Yours sincerely,

    /kenna

  25. Kenna

    I made a typo in my last message. It is videolightbox who works as it should and not lightbox. That’s because jquery.tools.min.js is in html.

Leave a Reply


*