Blog Comments

  1. jscheuer1's Avatar
    You might. If you want more help please post about it in the open forum and refer back to this blog entry. Use a title for your post that includes the word Slimbox and/or Lightbox.
    Updated 01-29-2013 at 04:22 PM by jscheuer1 (clarity)
  2. riptide's Avatar
    Slimbox

    I'm using some old slimbox from '09 no jQuery. Do I need to update?
  3. jscheuer1's Avatar
    Quote Originally Posted by MichiganJim
    Any thoughts on how CSS can stop or hide the slideshow? So far I haven't hit on it myself.
    display: none;

    If you want more help though, please post a new thread in:

    http://www.dynamicdrive.com/forums/forumdisplay.php?f=2
  4. MichiganJim's Avatar
    I have to add a thanks too. It was just last night that I ran into a need to adjust the alignment and Voila!, you posted the fix.

    Follow up question though, I'm trying to format a page to also load on smart phones sans images. I know I can write jscripts to suppress it, but at present I have the reformatting working perfectly with a minimum of CSS adjustments.

    Any thoughts on how CSS can stop or hide the slideshow? So far I haven't hit on it myself.
  5. kuau's Avatar
    Thanks, John. This is a really excellent script. I'm sure I speak for thousands when I express huge appreciation for your brilliance. You're the best!!! Mahalo plenty.
  6. jscheuer1's Avatar
    Quote Originally Posted by vmars316
    What are the advantages of writing it your (not newbie) way?
    Less pollution of the global scope.
  7. vmars316's Avatar
    Thanks for the code.
    Its a bit confusing to me (newbie) because of the new format (set: function),
    Rather than what i am used to (function SetCookie).
    What are the advantages of writing it your (not newbie) way?
    Thanks...vmars316
  8. molendijk's Avatar
    OK, thanks.
    (I had the code somewhere without reference to the source. I should have verified that).
    ===
    Arie.
  9. jscheuer1's Avatar
    Hi Arie,

    The code is simpler, less efficient and less thourough though. I have the functions rewrite themselves during the initial parse. That way no branching is required for repeated executions. Also the code you post (taken pretty much verbatim from:

    http://www.quirksmode.org/dom/getstyles.html

    without credit on your part), has no mechanism to deal with hyphenated/camelBack styles cross browser. My method does.
  10. molendijk's Avatar
    This is simpler:
    Code:
    <head>
    
    <script type="text/javascript">
    function getStyle(el,styleProp)
    {
    	var x = document.getElementById(el);
    	if (x.currentStyle)
    		var y = x.currentStyle[styleProp];
    	else if (window.getComputedStyle)
    		var y = document.defaultView.getComputedStyle(x,null).getPropertyValue(styleProp);
    	return y;
    }
    </script>
    
    </head>
    <body onclick=alert(getStyle('test','background-color'))>
    <div id="test" style="background:red"></div>
    so I suppose your script is more powerful?
    ===
    Arie Molendijk.
  11. Nile's Avatar
    Very useful! Thank you!
  12. jscheuer1's Avatar
    Quote Originally Posted by ddadmin
    Sweet! And I'm surprised you were able to dig up oninit() event handler inside the code (which I plan to document eventually).
    Thanks! Lots of folks are really interested in the new Ultimate Fade script and what it might be able to do. You and others have taught me too well to miss (for long) such obvious tie ins as oninit as used here and onslide, which is good for other things, that you (in my opinion) wisely chose to include in the new Ultimate Fade script (presumably) for developers.
  13. ddadmin's Avatar
    Sweet! And I'm surprised you were able to dig up oninit() event handler inside the code (which I plan to document eventually).
  14. jscheuer1's Avatar
    @Nile,

    No credit required, but it would be nice to at least mention the forums. However, since this code is a distillation of many other's work including my own, you should not in any way take credit for it yourself.

    @DD,

    Thanks!
  15. ddadmin's Avatar
    Nice compact code!
  16. Nile's Avatar
    Wow, I'm pretty sure I'm going to use this. Thanks! Credit required?