HTML - Simple Program
_
|_| Diagnostic _ |_| System Restore _ |_| PC Tune Diagnostic ~ To find whats wrong System Restore ~ Restores software to factory defaults PC Tune ~ Performance optimizer -------------------------- My goal is that when a technician checks a box ( one or more of the following above ) an automatic message is added to a separate page that can be printed out. So to say, if I where to check 'diagnostic' and 'pc tune' my internet browser will open a second page with the descriptions of the two services. The more boxes you click the more paragraphs that get added to the second page. Similar TutorialsHello, I got a program, but I am unable to execute it, the addition of two variables is not executing in the output, I am unable to find the mistake in the program, plz any one find it and let me know the mistake.. Here is the Program ***************************** <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <script type="text/javascript"> var firstnum,secondnum,num1,num2,sum; fistnum = window.prompt("enter the first number","0"); secondnum = window.prompt("enter the second number","0"); num1 = parseint( firstnum ); num2 = parseint( secondnum ); sum = num1 + num2; document.writeln("<h1> the sum is "+ sum + "</h1>"); </script> <body> <p> Click Refresh (or Reload) to Run the script once again </p> <!-- <input name="submit" type="button" onclick="document.writeln();"--> </body> </html> *********************** For a designer/programmer, which program is required or best to have? The book I am studying from is using Adobe Photoshop Elements 8 and I keep seeing "Dreamweaver" mentioned on the net so do I have to get both softwares to prepare for any jobs or only one or is there another? Which software or softwares would you guys recommend I get for the future to deal with these digital files processing please? Hey all! I have just started programming a website in html. I took some html 4 classes about10 years ago - I know that's like a lifetime ago, but anyway, it seems that I'm still able to use a bunch of the stuff I learned back then, but I get some errors when running the validator on the site. I have been able to do most of what I want on the site with a combination of what I learned back then and with some awesome help from this support forum. It seems that some of the errors I'm getting is due to newer code that I have been getting from people who have been very kind to help me out. Not due to their code, but probably because I set my doctype up to be: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> The people who have been helping out are of course using newer code, etc. I realize that I need to move up to today's way of programming, but the question is: what's the best way to do this? Back when I took the html courses, I learned to program with notepad. I did an intranet back then in frontpage, but from what I heard, that code was pretty messy and didn't always show right in all browsers. The site I'm building now needs to work in at least all major browsers as I need to earn a living from it. What's the recommeded software, html version, etc. these days? I have a copy of the latest dreamweaver, but does that write messy code similar to what frontpage did back then? How about some free software? What html version is recommended etc., keeping in mind that I need the site to be a reliable as possible and not that flashy, and that I am pretty green at this and not a full time programmer. There will be some rollover buttons, tables, etc., on the site, but that's really it, and then some forms and a link to a wordpress blog I will be putting together. I hope there are someone out there with a good recommendation. Also, is there a way to get the html 4 to work with never code such as javascripts etc. I can upload a zip with the code and images for the site if anyone has time to look at, and helping me figure out how to solve some of the validation errors I'm getting? The site in not uploaded yet but on my harddrive. Thank you all and have a great weekend. Johanm Hello guys, I am new to this forum, yesterday i started learning html and i am writing sample codes for different things and i got an error when i tried to hyper linking to the link on the same page. i tried to create 5 hypers links within the page and wrote the syntax and all correctly ..but when i tried to click the first one and the second one its working but when i tried with the 3rd, 4th and 5th hyper links its not getting linked to the correct place... http://personalpage.webng.com/lists.html .this is the webpage i wrote... when i click the first two they are linked to the correct place but when i tried the others they are not getting linked properly...... can anyone see the program and tell me whats the solution?\ thankyou Once again I have no idea where this post should go. Please move me and accept my apology. Here's the deal: I want to help out someone who has limited programing skills. Also, I don't want to give them access to my server. I am looking for a free program where she could add javascript and html code to the site for affiliate links and banners. I need her to work completely from the back end of the program. Plus, I don't want to baby sit her site either, just set it up and let her have at it. Would a blogging program be able to do this? I don't blog, so I'm not sure what's best. She's been pushing Cash Crate on a freewebs site and actually making money! So I know she can do better with better affiliates if she just had a chance. I am not sure if this is the right place to ask this question, so I apologize in advance. Are there any easy to use (and free) Perl script programs (would it be a program or just script?) that I could use on a website to integrate a keyword search program so that users can search specified text and HTML documents? Thanks in advance for any suggestions and help. Hi gang, About 4 years ago I used the trial version of Homesite to clean a freinds code. Now 4 years later I have my own site (http:www.pjsoaps.com) and I have 8 b'zillion duplicate tags and junk. Homesite won't let me run the trial again so I downloaded a trial version of "HTML Code Cleaner" and tried it on some of my worst pages, unfortunately what it does is turn my easily read stepped code into ONESINGLELINEOFCODE. ugh I'm looking for a free, trial or inexpensive code cleaner. I just LOVED Homesite but I simply can't afford it at the moment. Any suggestions? Thank you in advance, pjsoaps www.pjsoaps.com Ok I'm still really new to HTML with no bad habits & would like to use a program that is really easy to use & geared toward function-ability. I've been using notepad for my HTML I would prefer to steer away from DreamWeaver as I dont plan on using a WYSIWYG So what are my other options for great programs to write HTML in? Thanks I was wonder what browser or editing program that I can use to see my webpage that would show the map coords as I move my mouse around the webpage please? Thank You in Advance. hey, im currently setting up 4 pc's for a local kindergarten/nursery, in which the computers are locked down in a kiosk mode, with a web page navigation, what i need is for the links to open the games that are installed on the PC, but as its for kids age 3 - 4 etc i dont want the usual prompt of "open or save file as". the pc's will not be on the internet at all, all the files are local, so is there either anyway to turn of the prompt via a registry hack ? or can u suggest a way for me to open the programs either through html, javascript or would a flash or director link or something else work better? ive searched but i cant find any way of doing it, or bypassing a security feature, like i say the machines are locked down and not on the net, so i can relax all security measures. thanks Barrie `Hello I have this problem that i have a list of things, that is very very long. There is about 5000 entries and i need to make a table where the user can select to sort by something. It looks like this Sort By Car Sort By Tires Sort By Make Sort By Year So how do i make it, so that when the user clicks sort by make, it will sort by it? Do i do it in HTML or what? Are there programs to do this? Thanks For Help! Turha I just started writing code, and currently use notepad++. I then use XAMPP to see my code in action. Any better free programs to do all this? Super new to this, and these are the ways my teacher gave. thanks! yes i was wondering if there is a way that i could make my program when the new option is selected from the drop down menu automatically make a new folder in a certain folder on my computer. is there any way to do that. Like, HTML Quick Edit Bar 1.3 http://www.shareup.com/HTML_Quick_Ed...oad-28773.html ??? I would like a client of mine to easily update html content, but I don't have a clue where I would get such a software, free.. Html quick edit bar, has what I need, but I don't think it actually updates for some reason... Can anyone help with this? Thanks a lot guys... Hi. I am creating web service. But the problem must be somewhere on HTML page. When I submit form, the data send by web service (java program) to the page does not show up. If I do not submit form, then the program works; results appear on the page. The form is submitted invoking pushSubmit() javascript function. This method is invoked from setMessage() javascript function. I submit form cause in this way I discover what value is selected on drop down list. This is done using JSP code. Can I do it somehow else. Next action using retrieved data is to invoke Java class on server side. What might be the problem? This is the code: Code: <%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" pageEncoding="UTF-8" %> <%@ page import="mart.ebay.database.ReadsCategoryTable" %> <jsp:useBean id="categoryList" class="mart.ebay.database.ReadsCategoryTable" scope="request" /> <jsp:setProperty name="categoryList" property="*"/> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <title>eMart</title> </head> <body class="create"> <!-- shows items from that country by default --> <% // String strSiteId = "EBAY-GB"; // Object categoryList = session.getAttribute("items"); // receives result from servlet // out.println(categoryList + " result ++++++++++++++++++++++++++++"); // strSiteId = (String)session.getAttribute("siteId"); // strSiteId =(strSiteId == null)? "": strSiteId; // out.println(strSiteId+ " strSiteId +++++++++++++++"); %> <% String result= ""; String strSiteId = request.getParameter("siteId"); strSiteId =(strSiteId == null)? "": strSiteId; if(strSiteId.equals("")) { out.println(strSiteId+ " global ID is empty"); result= categoryList.readTable("EBAY-GB"); } else { out.println(strSiteId+ " this is global ID"); result= categoryList.readTable(strSiteId); } %> <div id="container"> <div id="header"> <h1>Header</h1> <!-- end of header--> </div> <div id="mainContent"> <h1>Main content</h1> <!-- onsubmit="run()" --> <form name="form" id="form1" action="index.jsp" method="post" > <table id="input" border="0" cellpadding="0" cellspacing="5"> <tr> <th align="left">Looking for</th> <th align="left">Location</th> <th align="left">Category</th> </tr> <tr> <td align="left"><label><input style="width: 230px" type="text" name="message" id="message" /></label> </td> <td> <select name="siteId" id="siteId" > <option <%=(strSiteId.equals("EBAY-AT"))?"selected":""%> value="EBAY-AT">Austria</option> <option <%=(strSiteId.equals("EBAY-AU"))?"selected":""%> value="EBAY-AU">Australia</option> <option <%=(strSiteId.equals("EBAY-CH"))?"selected":""%> value="EBAY-CH">Switzerland</option> <option <%=(strSiteId.equals("EBAY-DE"))?"selected":""%> value="EBAY-DE" >Germany</option> <option <%=(strSiteId.equals("EBAY-ES"))?"selected":""%> value="EBAY-ES">Spain</option> <option <%=(strSiteId.equals("EBAY-FR"))?"selected":""%> value="EBAY-FR">France</option> <option <%=(strSiteId.equals("EBAY-FRBE"))?"selected":""%> value="EBAY-FRBE">Belgium (French)</option> <option <%=(strSiteId.equals("EBAY-NLBE"))?"selected":""%> value="EBAY-NLBE">Belgium (Dutch)</option> <option <%=(strSiteId.equals("EBAY-FRCA"))?"selected":""%> value="EBAY-FRCA">Canada (French)</option> <option <%=(strSiteId.equals("EBAY-ENCA"))?"selected":""%> value="EBAY-ENCA" onclick="pushSubmit()" >Canada (English)</option> <option <%=(strSiteId.equals("EBAY-GB"))?"selected":""%> value="EBAY-GB" selected="true">United Kingdom</option> <!-- <option value="EBAY-HK">Hong Kong</option> --> <option <%=(strSiteId.equals("EBAY-IE"))?"selected":""%> value="EBAY-IE" onclick="pushSubmit()" >Ireland</option> <option <%=(strSiteId.equals("EBAY-IN"))?"selected":""%> value="EBAY-IN">India</option> <option <%=(strSiteId.equals("EBAY-IT"))?"selected":""%> value="EBAY-IT">Italy</option> <!-- <option value="EBAY-MOTOR">Motors</option> --> <option <%=(strSiteId.equals("EBAY-NL"))?"selected":""%> value="EBAY-NL">Netherlands</option> <option <%=(strSiteId.equals("EBAY-NLBE"))?"selected":""%> value="EBAY-NLBE">Belgium (Dutch)</option> <option <%=(strSiteId.equals("EBAY-PH"))?"selected":""%> value="EBAY-PH">Philippines</option> <option <%=(strSiteId.equals("EBAY-PL"))?"selected":""%> value="EBAY-PL">Poland</option> <option <%=(strSiteId.equals("EBAY-SG"))?"selected":""%> value="EBAY-SG">Singapore</option> <option <%=(strSiteId.equals("EBAY-SE"))?"selected":""%> value="EBAY-SE">Sweden</option> <option <%=(strSiteId.equals("EBAY-MY"))?"selected":""%> value="EBAY-MY">Malaysia</option> <option <%=(strSiteId.equals("EBAY-US"))?"selected":""%> value="EBAY-US">United States</option> </select> </td> <td> <select name="Category" > <option value="100" ><%= result%></option> </select> </td> <td> <label> <input type="button" value="Start" onclick="run()"/></label></td> </tr> </table> </form> </div> <div id="footer"> <p>Footer</p> </div> <!-- the end of container--></div> <script type="text/javascript"> function getXmlHttpRequest() { try { // Firefox, Opera 8.0+, Safari return new XMLHttpRequest(); } catch (e) { // Internet Explorer try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { alert("Your browser does not support AJAX!"); return null; } } } } function setLocation(location) { strSiteId = location; var xmlHttp = getXmlHttpRequest(); xmlHttp.open("GET","app/messages/location/" + location,true); xmlHttp.send(null); } function setCategory(category) { var xmlHttp = getXmlHttpRequest(); xmlHttp.open("GET","app/messages/category/" + category, true); xmlHttp.send(null); } function setMessage(index) { var xmlHttp = getXmlHttpRequest(); //alert(index) xmlHttp.onreadystatechange=function() { if(xmlHttp.readyState==4) { // document.write(xmlHttp.responseText.indexOf("<body>")); if(xmlHttp.responseText.indexOf("<body>") != -1) { s = xmlHttp.responseText.substring(xmlHttp.responseText.indexOf("<body>") + 6, xmlHttp.responseText.indexOf("</body>")) document.getElementById("output").innerHTML=s; } else { document.getElementById("output").innerHTML=xmlHttp.responseText; } pushSubmit() // submits form } } xmlHttp.open("GET","app/messages/" + index,true); xmlHttp.send(null); } function run(){ setCategory(document.form1.Category.value) setLocation(document.form1.siteId.value) setMessage(document.form1.message.value) alert(document.form1.Category.value+" "+document.form1.siteId.value+ " "+document.form1.message.value) } function pushSubmit() { document.getElementById('form1').submit(); } </script> <% // sessionObj = null; //arlItems = null; //session.removeAttribute("items"); //session.removeAttribute("siteId"); %> <h3>result</h3> <div id="output" style="border: 1px solid black; color: black; height: 18em; width: 100%"></div> </body> </html> Hi all, This is my first post and its so simple that i am a bit embarrassed to post it, I have created a page with a flash video on it, but the only problem is cant workout how to centre the video, some help would be greatly appreciated, Here is the code, http://www.ogeetek.com/dave_test/test.txt And here is the website http://www.ogeetek.com/dave_test/test.html Thanks in advance, Hey. So I'm pretty good at stuff in general, my problem is that I do not have extensive experience with HTML/CSS so I don't know the best way to do this, or where to look for a way to do this. Basically, I want my layout to be like this: http://people.virginia.edu/~eee2a/Welcome.html in that I want there to be gray space on the side and a middle that scrolls. super simple right? I just don't know how to do it, and I don't know the best keywords to use on google for it. Thanks. I'm trying to create something simple, I know how to do it in flash, but I can't get it in html, which is the way this needs to be done. I've attached a picture with an area in red. The area in red is the only area that needs to scroll, the rest of the image, the book area, needs to be static and not move. Can you help me? Hello tere. I have been coding in HTML for a long time, but I haven't done so in a year or so. I took a fat break from coding, since I found no use for it. Now I'm creating a website, and I seem to have forgotten all the easiest things I forgot how to move forms. I got a div that I call .content, how do I move it around so it for example is on the upper hand right corner instead of being below everything else? Ty I have a code i am making for my nan so she can get to all her sites easy. But i want to to show up in tabs and it always shows up in a new window. Can cha edit it for me? Code: <style><!--body{background: black url(http://www.minutecity.com/images-for-myspace/background1/clouds/clouds_4.gif) fixed}--></style> <p> <a href="http://webmail.aliant.net"> <font siZe="15" Color="white" face="Boopee" Target="_self" ><b>Webmail</b> </p> <p> <a href="http://facebook.com" Target="_popup" > <font size="15" color="white" face="Boopee"><b>Facebook</b> </a> </p> |