Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: So - a popin script for the dinos

  1. #1
    Join Date
    Dec 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default So - a popin script for the dinos

    http://www.dynamicdrive.com/dynamici.../dropinbox.htm

    for IE4 and Netscape? Who on earth is still using them?

    Anything for the current generation?

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    It's from those versions up. Most things that worked in netscape should now work in Firefox, and anything that works in "IE4+" should work in all modern versions of IE. It looks like NS5 is excluded... not sure about that.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Dec 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Uhm... I tried both drop-in scripts from dynamicdrive and tested it in the latest versions of Mozilla and Safari plus IE6 and 7.

    Both scripts failed in all browsers!

  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

    This page:

    http://www.dynamicdrive.com/dynamici.../dropinbox.htm

    works in all those. Maybe your implementation is flawed.

    Please post a link to the page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

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

  5. #5
    Join Date
    Dec 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi John

    Appreciate your input, but help me ... what could I've done wrong by
    1. selecting option #2
    2. copy and paste the shown script in-between <head>here goes this script</head>
    3. copy and paste the DIV content just before </body>

    That was just as a trial, no individual styling applied yet

    I have <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    and it works with other scripts OR ... IS THIS IT? the drop-in script interferes with other scripts and works only on a plain page without any other scripts?

    Cheers

  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

    I have no idea what errors might have occurred with your implementation, perhaps none. The DOCTYPE should be fine. It would be incorrect to say, "works only on a plain page without any other scripts." However, one other script, with an onload event that gets parsed after the one for this script would stop this script (and many others) from running. There could also be a name collision with another script. If you want more help:

    Please post a link to the page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

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

  7. #7
    Join Date
    Dec 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Problem solved

    <script language="Javascript" src="dropinNEW.js"></script>
    <div id="dropin" style="position:absolute;visibility:hidden;left:20px;top:50px;width:400px;height:250px;background-color:#FAFAD2;opacity:50">
    <div align="right"><a href="#" onClick="dismissbox(); return false">--[Close Box]-- </a></div>
    <br>
    <center><a class='iframe style1' href="path/to/file.html" title="Homer Defined">Put your box content here</a></center>
    <br>
    </div>
    </div>
    I packed the js into a file and saved it externally. Then I put both the link to the .js and the box DIV just below the body start tag ( <body> ) and it works fine. Actually you can place this anywhere in the body.

    As you see, I have a link in the box that will open the new page in a lightbox. Works fine - but I haven't figured out the code needed that would not only open the lightbox but at the same time close the drop-in box!

    If anyone has an IDEA, I'd appreciate to post it here

    Thanks alot
    Mitch

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

    That would depend upon which version of Lightbox you are using. From all you've said, I would suspect this one:

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

    which is the only one I know of that could conflict with Drop-in content box. But I cannot be sure.

    I'd still like to see the page:

    Please post a link to the page on your site that contains the problematic code so we can check it out.


    However, Lightbox v2.04a would probably be the best choice for that because with it you could have something like:

    Code:
    <a href="some.jpg" rel="lightbox" onclick="dismissbox();">
    and it should work out.

    Lightbox 2.04a:

    http://www.dynamicdrive.com/forums/s...470#post163470
    - John
    ________________________

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

  9. #9
    Join Date
    Dec 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    GEE - you are a true legend and I bury myself in a corner, shame on me ... I should have known that!

    just added
    onclick="dismissbox()
    to the former a href string and it works brilliantly.

    OOPS.. sorry, I should have mentioned it before.
    No, I use colorbox. I find this script extreme versatile as it allows even to include forms, etc.

    Is it OK to include a link here to the site where the script will be used or is it self-promotion? If OK I will post it here a little later

    Thanks a lot for your patience and a HUGE HAPPY 2010 to all of you in this forum

    Mitch

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

    No need to post a link if you've solved things to your satisfaction. I've never heard of Colorbox, there are so many of these Lightbox clones, and I've seen tons of them, not that one though. Sounds pretty good, and if it doesn't overwrite existing onclick events, that's a good feature. Many of the Lightbox type scripts do. The one I mentioned (2.04a) doesn't, but all of the earlier (2.03 and less) ones do, as do most of the clones.

    You can always post a link if asked for by the person helping you. But we don't need that any longer here as far as I can tell.
    - 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
  •