denkovas Posted October 6, 2015 Share Posted October 6, 2015 Hello guys, I am new to html and I'm currently trying to create a signup form (name, e-mail, tel no) - it is for a corporate site and when a person goes through it successfully, I want it to show a table with resources about the company that they can download directly. I have a code for the form and table, I also tried to put "onclick show" effect in the "submit" button which is at the end of the signup form but I cannot connect it to the table. What is the code for that? Thank you! This is what I have so far: <html><head><title>(Type a title for your page here)</title><style type="text/css">div {position: center;left: 200px;top: 400px;background-color: #ffffff;width: 250px;padding: 20px;color: black;border: #0000cc;display: none;}</style><script language="JavaScript">function setVisibility(id, visibility) {document.getElementById(id).style.display = visibility;}</script></head><body><input type=button name=type value='Submit' onclick="setVisibility('sub3', 'inline');";><div id="sub3"><table style="width:100%"> <tr> <td><h4>Title<h4></td> <td><h4>Description<h4></td> <td><h4>Size<h4></td> <td><h4>Download<h4></td> </tr> <tr> <td>Panelbook</td> <td>JTN proprietary online panels in 21 countries</td> <td>627 KB</td> <td><a href="FILENAME" target="_blank">Download</a></td> </tr> <tr> <td>CAWI Metodology</td><td>Advantages, Convenience and Best results </td><td> 1,240 KB </td><td><a href="FILENAME" target="_blank">Download</a></td></tr><tr> <td> Data Quality Checks </td><td> Tracking and checking to deliver high-quality data </td><td> 1,250 KB </td><td><a href="FILENAME" target="_blank">Download</a></td></tr><tr><td> Testimonials </td><td> See how we helped our customers </td><td> ? KB </td><td><a href="FILENAME" target="_blank">Download</a></td> </tr><tr><td> t </td> </tr></table></div></body></html> edit--codeblock added 1 Link to comment Share on other sites More sharing options...
dsonesuk Posted October 6, 2015 Share Posted October 6, 2015 No such thang as position: center; options are fixed relative absolute static (default but! top: bottom: right: left: won't work) depending on what you want to achieve. Link to comment Share on other sites More sharing options...
davej Posted October 6, 2015 Share Posted October 6, 2015 Add a DOCTYPE and then try the W3C Validator on this... https://validator.w3.org/#validate_by_input http://www.w3schools.com/tags/tag_doctype.asp Link to comment Share on other sites More sharing options...
COBOLdinosaur Posted October 6, 2015 Share Posted October 6, 2015 You need something that comes a little closer to being valid code. Instead of an onclick event in the button you would be better to trigger by adding an event listener in the script , Finally we would all appreciate it if you used the <> icon on the reply box to submit code as "code" instead of text. If what you posted is the complete code, then you have some work to do because that is badly malformed. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now