| | hi, I am new in web development i want to make a page in which there are few buttons and on click of each button there is some hidden text field which becomes visible and user can enter the text he wish to in it. how can i ? |
| Nov 8, 2009 |
view source the following link: http://www.jlhaslip.trap17.com/samples/mis...emperature.html
I have posted a few things that could help me about that stupid Cpanel
I am still looking what icon I click on to make the website!! In my one day of being here. I am kinda disapointed. I wish that the shoutbox was working
You guys should search for css tutorial.. it would help you... It's very easy... Look for it on google...
hi, I am new in web development i want to make a page in which there are few buttons and on click of each button there is some hidden text field which becomes visible and user can enter the text he wish to in it. how can i ? ok, i have some time let me have a try CODE // test.html <html> <head> <title>just a demo</title> <style type="text/css"> /*<![CDATA[*/ #div1 { display:none; } #div2 { display:none; } /*]]>*/ </style> <script type="text/javascript"> //<![CDATA[ function show(id) { if(id == 1) { document.getElementById('div1').style.display='block'; document.getElementById('div2').style.display='none'; } else { document.getElementById('div2').style.display='block'; document.getElementById('div1').style.display='none'; } } //]]> </script> </head> <body> <div id="div1"> <input type="text" name="txt1" value="here is text1 content" /> </div> <div id="div2"> <input type="text" name="txt2" value="here is text2 content" /> </div> <input type="button" value="button1" onclic="show(1);" /> <input type="button" value="button2" onclic="show(2);" /> </body> </html>
INTO HEAD:
CODE <script type="text/javascript"> function show_buttons(show) { if (show == 'content_A') { document.getElementById('content_B').style.visibility='hidden'; document.getElementById('content_A').style.visibility='visible'; } else { document.getElementById('content_A').style.visibility='hidden'; document.getElementById('content_B').style.visibility='visible'; } } </script> INTO BODY: CODE <input type="button" onclick="show_buttons('content_A');" value="Show A"> <input type="button" onclick="show_buttons('content_B');" value="Show B"> <input type="text" value="A" id="content_A" style="visibility: hidden"> <input type="text" value="B" id="content_B" style="visibility: hidden"> Both will give different results. Mine will reserve space on the page for text fields whereas derickkoo's won't. When a user displays his the content on the page will move down slightly - or so I believe. Try them both out. NB: CODE <input type="button" value="button1" onclic="show(1);" /> <input type="button" value="button2" onclic="show(2);" /> Should read: CODE <input type="button" value="button1" onclick="show(1);" />
<input type="button" value="button2" onclick="show(2);" />
How to make it 3
Help Writing An Html Code (onclick Open Something) Hi, I am having some problems with this, the following code works: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.W3.Org/TR/xhtml1/DTD/xhtml1-transitional.Dtd"> <input type="button" value="button1" onclick="show(1);" /> But when I try to make 3 div boxes and 3 buttons it fails miserably! Even the first 2 buttons stop working! The code I am using goes like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.W3.Org/TR/xhtml1/DTD/xhtml1-transitional.Dtd"> <input type="button" value="button1" onclick="show(1);" /> </div> Also is there a way to put a default div box on show when the page is first loaded but is then hidden when a button is pressed? Cheers Tom
Keywords: php onclick tutorial
dynamic add buttons in html
Help Writing An Html Code (onclick Open Something) Hi, I want a dynamic add button in html code so that when I click on it, it will dispay a text box... Please help.. -reply by antika
Just stick to this simple logic, when you wan a box to appear, set the style to "display:none", whether it's dynamic or manual set. If you want a box to be shown as default, set the style to "display:none", then when you click a button to show the box, use javascript onclick function to set it to "display:block". Same goes for you textbox.
Example for click to display a text box" CODE <script type="text/javascript">
function showbox() { document.getElementById('box1').style.display = 'block'; } </script> <div id="box1"> <input type="text" /> </div>
help with html
Help Writing An Html Code (onclick Open Something) friends I am very new to html I am finding adding image to the page difficult I know the code is easy but I have tried many images but the pic does not come when I open the browser it shows a broken image. So Please help -question by sudhiLatest Entries
view source the following link: http://www.jlhaslip.trap17.com/samples/mis...emperature.html
You need to first determine the formula that converts between the 2. I guess there's alot of script or formula out there by using google. Then use mathematical formula in javascript to convert the 2 then output the result using innerHTML.
Similar Topics
Keywords : writing, html, code, onclick, open
(9) I did a tutorial on ajax started to write my own It was all working well under safari but when i (1) I'm currently programming web applications using AJAX/CSS/HTML and they're pretty (1) Well Last night, after a week of irritation and errors I finally created an easy Javascript object always databases (1) Hi everyone! i am having a The code in the tutorial I have read returns an error upon compilation (3) I want to create an array of type Cards. Is this the right way of doing it? CODE Card decker (4) I'm trying to create a website with a form that collects some user information to store in MySQL (0) Here's a good Fire code:- -easy to install -super small -lag free(in most browsers) -great I need help setting an image as the background. (3) Ok, now for scripts like this i am not to well of working with..and i am in need of a bit of help, i javascript code (2) ok i have alot of pictures on my site and i need a way in which i can hold my mouse over the How to do it? (2) I've a project on creating a Movie online booking website that is powered with JSP. Now I'm write to the text file on the webhost (1) Hi! i need to write a text file with applet on the wen host. It is like a guest book that the (1) I have a JSP where data is shown by use of a for:each loop. In this loop I have a multibox tag which The not so new standards problem (1) I want to do some action when I click on a paragraph (for example). Here is the code: CODE ... Does anyone know were I can get this code? (2) Hi I would like to know if anyone knows a javascript that makes an thumbnail 'slideshow' How to insert into a div an amount of code (11) Hi, I have the next html page CODE function insertcode() { var code =" blablabal babala (9) when some images get clicked, a text should added to an input(textfield). Does someone know how this The Code is Pretty Nice! (5) OpaQue, where did you get that JavaScript for the error 404 page for Trap17? It's something - a full code for a dynamic drop down (2) Introduction This is a code that I use to dynamically create the drop down menus. First, you have Java Code Review Tool (0) hi friends, I came across another useful tool, Hammurapi. It is a code review tool for Java. It Looking for writing, html, code, onclick, open
|
![]() Help Writing An Html Code (onclick Open Something) |
Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com