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.
Slimbox I'm using some old slimbox from '09 no jQuery. Do I need to update?
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
display: none;
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.
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.
Originally Posted by vmars316 What are the advantages of writing it your (not newbie) way? Less pollution of the global scope.
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
OK, thanks. (I had the code somewhere without reference to the source. I should have verified that). === Arie.
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.
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.
<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>
Very useful! Thank you!
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.
oninit()
Sweet! And I'm surprised you were able to dig up oninit() event handler inside the code (which I plan to document eventually).
@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!
Nice compact code!
Wow, I'm pretty sure I'm going to use this. Thanks! Credit required?