Andy17 Posted September 27, 2008 Share Posted September 27, 2008 Hello there! I have a page where users are able to submit content from a web form. The fields in my form have requirements, which I would like to show to the user. Therefore, I was thinking of adding the link "[?]", which should open a window. However, by window I am not thinking popup windows (no toolbars and stuff, nothing at all). Something along the lines of the one shown on this website: http://www.helbreathlux.com/ However, I just want plain text in it, but I need to change it easily (so I can write different text in that same window; imagine I have 5 fields on a page and I want to write different text depending on which link a user clicks). Also, I'd need a link that will close the window. If this was confusing, I'm sorry; let me try and sum it up. I want a window without toolbars or anything, where I can easily change the text that is written and it should have a link to close the window. Could anyone please help me on this? Thanks a lot in advance! Link to comment https://forums.phpfreaks.com/topic/126102-js-window/ Share on other sites More sharing options...
CroNiX Posted September 27, 2008 Share Posted September 27, 2008 Thats basically a styled <div> with display set to none. Then when you want it to show you set the display to block so it shows. You can use JS to change the message in your div using the innerHTML. Link to comment https://forums.phpfreaks.com/topic/126102-js-window/#findComment-652067 Share on other sites More sharing options...
Andy17 Posted September 28, 2008 Author Share Posted September 28, 2008 Yeah, I'm just not very experienced with that stuff yet, so not quite sure how to do it. Link to comment https://forums.phpfreaks.com/topic/126102-js-window/#findComment-652272 Share on other sites More sharing options...
Andy17 Posted October 3, 2008 Author Share Posted October 3, 2008 Bump. Link to comment https://forums.phpfreaks.com/topic/126102-js-window/#findComment-656427 Share on other sites More sharing options...
JasonLewis Posted October 4, 2008 Share Posted October 4, 2008 You could make your own or you could get one from a place like JavaScript Kit or even DynamicDrive. They should provide simple hover windows etc. Link to comment https://forums.phpfreaks.com/topic/126102-js-window/#findComment-656752 Share on other sites More sharing options...
RichardRotterdam Posted October 4, 2008 Share Posted October 4, 2008 google up the search term modal you will find plenty of useful scripts Link to comment https://forums.phpfreaks.com/topic/126102-js-window/#findComment-657007 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.