Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Please recommend a good script for modal windows 1

Status
Not open for further replies.

Sleidia

Technical User
May 4, 2001
1,284
FR
Hi guys,

What existing script would you recommend for the display of a simple looking centered modal window with opacity effect applied on the content?
The script needs to be run on page load. No links involved.

It will be used on a contact form for letting the user know that his email has been sent.

I'm looking for something very minimalistic, unlike lightbox, lightwindow, etc.

Thanks for helping :)
 
Thanks but unfortunately, the script needs to work on all the modern browsers. Plus, the dialog box must be a div layer on which I could apply a css style of mine.

 

Thanks jpadie :)
But frankly, I'm not too convinced by this one.
 
But frankly, I'm not too convinced by this one.

Sleidia, any particular reason why?

When attempting a web based modal dialog you've basically got 2 choices:

1) Develop it to work on IE only, and use the showModalDiaglog function.

2) Use an absolutely positioned div for the modal content, while placing a combination of divs and iframes between the page content and the modal div (using the z-index to get it in the right place)

If the script isn't an exact match to what you're looking for, there's a link on the page that jpadie posted that explains the process. If nothing else you could use that explanation to code one to fit your exact needs.

If neither of the 2 options above suit your needs, then I'm afraid you're out of luck.

-kaht

Lisa, if you don't like your job you don't strike. You just go in every day and do it really half-assed. That's the American way. - Homer Simpson

[small]<P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <.</B>[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top