Jump to content
Larry Ullman's Book Forums

Js Content Q


Recommended Posts

Hey Jonathon,

 

Thanks for the question, and for the interest in the book. By "modal box", do you mean like a pop-up/overlay kind of thing that you see all the time now? If so, the answer is yes, those are covered (without frameworks). If you're talking about something different, please clarify (and/or point to an example). Thanks!

Link to comment
Share on other sites

Okay, so Ch 9 walks through that concept. Basically it's all about the CSS, though. There's a high z-index to black out (or gray out) the entire screen and then there's a higher z-index for the content to be displayed in the modal window. JavaScript then switches the visibility on and off.

Link to comment
Share on other sites

I look forward to it. That makes sense CSS wise, but will be nice to see how to tie it in (properly) with js. I'm sure there is plenty of legacy code or bad code on the web. As I've said to you before I find that the main crux with .js today is dodgy .js code.

Link to comment
Share on other sites

 Share

×
×
  • Create New...