HTML - Help On Generate Html Report
Similar TutorialsHey Guys, Firstly I'm very new to using HTML and "programming" general, so I'm sorry if I come across as dumb New to the forum also and signed up as I couldn't fine help elsewhere on this problem. I'm attempting to write a simple HTML form that will eventually print to a .txt file. The basics of it is d: <input type="text" name="hnmr_shift1" /> H's: <input type="text" name="h_s1" /> Multiplicity: <input type="text" name="multiplicity1" /> J coupling:<input type="text" name="j_coupling1" /> <br /> which is repeated and repeated over and over (about 25 times) I was wondering if there's a to have the user select how many of these they would like (in a drop down box or something along those lines) and it will pop up with x amount of rows of the above boxes. i.e if the user selects 3 you would see something like d : (box) H's : (box) Multiplicity : (box) J coupling : (box) d : (box) H's : (box) Multiplicity : (box) J coupling : (box) d : (box) H's : (box) Multiplicity : (box) J coupling : (box) I've seen similar things on forms were it asks you something like "how many people...." and when you select a number it will pop up with separate boxes for each persons name and details (first name, second name phone number etc.). was thinking of using javascript or something along those lines hope this makes sense. cheers Aaron ps. I want to avoid php as this form will be running on school computers and I cbf setting up a server etc. for it to run. the idea of the form is that it can be booted easily from a USBDrive without any problems or permission issues. I want a match report section on my site similar to these sites: sk-gaming and fnatic How would I go about this? I'm running my site off Wordpress by the way. Hello, Looking to simplify the process of reporting broken links. Is there a way to create a button/link that emails me specific information (url of broken link) when the user clicks it without having to fill out a form? Did I even make sense there? Thanks in advance Is there any way to use an xml file and create a link to a new page that has information based on a block of data in the xml file? hi there, my first post here. ok i haven't done development for awhile, and recently i'd designed a layout with adobe photoshop. was wondering what's the quickest way to create the code in html? which software is best and effecient? i usually hand code everything but i'm trying to save time. thanks a bunch!!! Is it possible to generate a form within a loop. As I want a page that will have 200 form fields so was going to use a javascript loop to generate all 200 but I can not get it to work. Is this possible? Code: <form action="rename_sensors.htm" method="post"> <table align="center" cellpadding="2"> <tr> <td><b>Sensor address</b></td><td><b>Current Name of Sensor</b></td><td><b>New Name for Sensor</b></td> </tr> <script type="text/javascript"> for(i=0;i<200;i++) { document.write("<tr>"); document.write("gfg"); document.write("<td>~address(0)~ </td>"); document.write("<td>~name(0)~</td>"); document.write("<td><input type="text" name="name[0]" maxlength="16" value="~name(0)~" size="20"></td>"); document.write("</tr>"); } </script> <tr> <td><input type="submit" value="Save"></td> </tr> </table> </form> the fields within ~and~ are got from a webserver dynamically. Many Thanks Hello, I am a newbie to HTML. I am trying to generate HTML code as a basis to an email. I wish to have a image at the top of the page (page wide 780 pixels) two lines in the sides (based on colored line image) and an image at the button. My problem is: how can I add an image to the left side and the left side of the body part and add text/tables/images etc. between them so it's length will dynamically shorten/lengthen according to the body number of lines ? Thank you for your help Hello. I'm a newbie here. I've been asked to design a web site for a club I'm involved with. Unfortunately they have purchased a cheap hosting package, so I have no Java/JSP, no PHP and no MySql. Pure static pages only. Sigh. I've found a nice looking template I can use - has nice drop down menus for navigation etc. It doesnt use frames. Now, since I want to navigate between half a dozen content pages, it seems that each of my pages has to contain all the common stuff - the menu, sidebars, etc. I'd kill for an <import src="..."/> tag :-) So, are there any design patterns that will allow me to achieve templating of all the menus and common code? Alternatively, are there any code-time coding tools that will generate run-time static pages based on templates? Any advice welcome. Thanks. imo. First of all, sorry, i didn't post it in english because i searched for a forum in my language . Second : I am trying to create a script, that will use the script you can see under this text and auto click a link that is generating itself randomly and changes position, color, letter order every time you want to click it again (the "fight again" link has to be clicked on order to get points by beating up the enemy. This link "fight again" is hard coded.. it even has a brother fake link that carries the same name but get's you elsewhere if you accidentally click it. green. bots2. net is the site... if anyone can help me out by enlightening me up a little, to tell me where I can start to be able to do a script that finds this link and click it repeatedly. Don't point to mouse auto-clickers since these are useless, like I said .. the link is changing color, position and link number: e.g good link : http://green.bots2.net/fight.php?ch_...r&pageid=36079 bad link : http://green.bots2.net/fight.php?ch_...r&pageid=36080 next fight: good link : http://green.bots2.net/fight.php?ch_...r&pageid=25191 bad link : http://green.bots2.net/fight.php?ch_...r&pageid=25190 Here is the site's frame source ======================================== <HTML><HEAD> <link rel="stylesheet" href="bots2.css"> </HEAD> <BODY BGCOLOR="#000000" TEXT="#00cc00" LINK="#99cc00" VLINK="#33cc00"> <CENTER> <H4>B.O.T.S. - The Battle</H4> <h4>Deus Ex Machina vs Petertjuh4</h4> </CENTER> <script> parent.header.fillInfo('Deus Ex Machina','#99aaaa',150,36494,7415,216,2109294,33568093468); </script> <HR size="1" noshade> <script> ah = new Array(); aattempts = 0; dattempts = 0; amaxhit = 0; dmaxhit = 0; amiss = 0; dmiss = 0; ablock = 0; dblock = 0; function fl(hitter, hit, hitweapon) { return parent.FightLine(hitter, hit, hitweapon); } function ShowHit(i,chid,opps,fid,nid,chlvl) { if (!ah) return; line = ah[i]; if (i<ah.length-1) { document.all('arena').innerHTML += line; document.all('endpage').scrollIntoView(true); i++; nexthit = 'ShowHit('+i+','+chid+',\''+opps+'\',\''+fid+'\',\''+nid+'\','+chlvl+')'; setTimeout(nexthit, 800); } else { if (ddamage>dmaxhp) { winner = a; } else { winner = d; } document.all('arena').innerHTML += line; if (aattempts+dattempts>0) { document.all('arena').innerHTML += parent.Report(); } document.all('arena').innerHTML += report; geel = '#' + (parseInt(Math.random()*150)+100).toString(16) + (parseInt(Math.random()*150)+100).toString(16) + (parseInt(Math.random()*150)+100).toString(16); if (parseInt(Math.random()*2)) { toright = '<font color="'+geel+'">></font>'; toleft = '<'; } else { toright = '<font color="'+geel+'">»</font>'; toleft = '«'; } fakeagain1 = '<p><font color="black">----</font><a href="fight.php?ch_id='+chid+'&opps='+opps+'&pageid='+fid+'"><span id="a1">Fight this bot again</span></a></p>'; fakeagain2 = '<p><font color="black">-</font><a href="fight.php?ch_id='+chid+'&opps='+opps+'&pageid='+fid+'"><span id="a2">Fight this ot again</span></a></p>'; fightagain1 = '<p><font color="black">---</font><a href="fight.php?ch_id='+chid+'&opps='+opps+'&pageid='+nid+'"><span id="a1">Fight this bot again</span></a>'; fightagain2 = '<p><font color="black"></font><a href="fight.php?ch_id='+chid+'&opps='+opps+'&pageid='+nid+'"><span id="a2">Fight this bot again</span></a>'; grijs = '#' + '0' + (parseInt(Math.random()*16)).toString(16) + '0' + (parseInt(Math.random()*16)).toString(16) + '0' + (parseInt(Math.random()*16)).toString(16); //geel = '#' + (parseInt(Math.random()*16)+188).toString(16) + (parseInt(Math.random()*16)+240).toString(16) + (parseInt(Math.random()*16)+86).toString(16); //groen = '#' + '0' + (parseInt(Math.random()*16)).toString(16) + (parseInt(Math.random()*16)+240).toString(16) + (parseInt(Math.random()*16)+86).toString(16); groen = geel; backlink = '<p><font color="black">-----</font><a href="fight_index.php?page='+chlvl+'&opps='+opps+'"><font color="'+groen+'"><span id="bl">Back to the fight list</span></font></a></p>'; if (parseInt(Math.random()*2)) { if (torape) { torape--; fightagain2 += ' ('+torape.toString()+' to rape limit)'; } fightagain2 += '</p>'; if (parseInt(Math.random()*2)) { fightagain = fakeagain1 + fightagain2 + backlink; } else { fightagain = fakeagain1 + backlink + fightagain2; } document.all('arena').innerHTML += fightagain; a1.style.color=grijs;a2.style.color=geel; } else { if (torape) { torape--; fightagain1 += ' ('+torape.toString()+' to rape limit)'; } fightagain1 += '</p>'; if (parseInt(Math.random()*2)) { fightagain = fightagain1 + backlink + fakeagain2; } else { fightagain = backlink + fightagain1 + fakeagain2; } document.all('arena').innerHTML += fightagain; a2.style.color=grijs;a1.style.color=geel; } a1.style.textDecoration='none';a2.style.textDecoration='none'; bl.style.textDecoration='none'; //document.all('arena').innerHTML += backlink; document.all('endpage').scrollIntoView(true); } } adamage = 0; ddamage = 0; amaxhp = 0; dmaxhp = 0; a='<font color="#99aaaa">Deus Ex Machina</font>';d='<font color="#aa11ff">Petertjuh4</font>';awr='doom maul';awl='doom maul';dwr='thunder hammer';dwl='thunder hammer';amaxhp=1250;dmaxhp=600;ah[0] = fl(d,92,dwr);ah[1] = fl(a,795,awr);ah[2] = fl(a,754,awl);torape=0;report = '<p>The battle is over. Petertjuh4 is destroyed.</p><p>The B.O.T.S. Union takes 1 kudos from Petertjuh4 and gives it to the winner, Deus Ex Machina.<br>You now have 2,109,295 kudos.</p><p>Your bot gains 11,617 experience points + 5,808 diplomacy bonus (2,202,699,269 xp to next level).</p><p>Auto-repair : No repair costs have been deducted. </p>';</script> <span id="arena" class="p"></span> <span id="endpage"></span> <script> ShowHit(0,188832,'war','94400','94399',150); //parent.ShowHit(0,188832,'war','94400','94399',150); </script> <p><font color="#cc4444"> </font></p> </BODY> </HTML> ========================================= Page info TYPE : text/html Render Mode : Quirks mode Encoding : ISO-8859-1 =========================================== THANK YOU FOR YOUR TIME! I just upgraded all my .HTML pages to .PHP . But now I noticed that when my pages pull up in the search engines like Google, Yahoo, and MSN. They still show the old .HTML links?? When they click on the webpages from the search engines results you get error 404 page cannot be found. How can I update the search engines or add code to my page so the search engines will reflect the new .PHP pages. Also it's been over a good week since I've update to .PHP Thank you all in advanced!! My html problem keeps failling, with all my image codes.. shown for 10 errors which are all for the images what's wrong? Here is the code: <!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" /> <!-- New Perspectives on HTML and XHTML 5th Edition Tutorial 2 Case 2 Fiddler Home Page Author: Date: 2-16-2011 Filename: home.htm Supporting files: fiddler.jpg --> <title>, ITSE 1411 Lab Project 2, Tutorial 2 Case 2, Due 02/23/2011</title> </head> <body> <div> <img src="fiddler.jpg" alt="Fiddler on the Roof" /> <hr /> <a href="home2.htm"><img src="home.jpg" alt="home" /></a> <a href="slide1txt.htm"<img src="start.jpg" alt="start" /></a> <a href="slide1txt.htm"<img src="back.jpg" alt="back" /></a> <a href="slide2txt.htm"<img src="forward.jpg" alt="forward" /></a> <a href="slide6txt.htm"<img src="end.jpg" alt="end" /></a> <br /> <a href="slide1txt.htm"<img src="thumb1.jpg" alt="slide1" style="border-width: 5" /></a> <a href="slide2txt.htm"<img src="thumb2.jpg" alt="slide2" style="border-width: 0" /></a> <a href="slide3txt.htm"<img src="thumb3.jpg" alt="slide3" style="border-width: 0" /></a> <a href="slide4txt.htm"<img src="thumb4.jpg" alt="slide4" style="border-width: 0" /></a> <a href="slide5txt.htm"<img src="thumb5.jpg" alt="slide5" style="border-width: 0" /></a> <a href="slide6txt.htm"<img src="thumb6.jpg" alt="slide6" style="border-width: 0" /></a> </div> <hr /> <div> <img src="slide1.jpg" alt="slide1" /> </div> <blockquote> <p><i>Do You Love Me?</i> sung by Deb Ingalls and Thomas Gates</p> </blockquote> </body> </html> As the title states I've been using Microsoft Word 2000 to create my web page but now want to make a simple no frills html HTML document. Is there a simple and quick way to do it ? I know I can simply create a new HTML document and then just copy and paste the links but is there a utility that can do this ? Many thanks Hi, so I'm trying to make this e-mail newsletter. It's entirely images, tables and text. So no javascript, just plain stuff. I tried attaching it as a signiture file and I had trouble sending it. It also didn't come out right. I'm trying to avoid using a software. Its basically just a block of HTML I need to show up as the only content in an email. If you just put HTML into a email text field, it just shows the HTML code in the email as text. Any ideas? Hi everyone, I've been searching around the web trying to find out how I can send using Outlook a html and text email newsletter automatically. I am quite happy creating html only newsletters, and text ones for that matter, but I have been digging and believe that by using multi-part code I can send to both and the recipients email client "allows" whichever version to be displayed - does this sound right? I'm hoping to simply create the html with the relevent mime references and boundaries (dont know what they are but have seen them on enough Google'd pages to know that they mean something!) and then copy and paste into Outlook - the newsletter is only going out to a few people at a time. Any suggestions or advice would be very greatly appreciated. Regards Allan i just started working on addicted2ally.com, and for some reason, my index.html is showing the text of the html instead of well, doing it lol helppp!? Hello Everyone, Please help in build the code for the site , the layout should be as the below layout , I need to submit this by today EOD. Image Link1: http://8648180184665331224-a-1802744...attredirects=0 Image Link 2: http://8648180184665331224-a-1802744...attredirects=0 Please mail me the code ASAP. Thanks and Regards, ceenuu2002@gmail.com I am still new to the web page world, but the website I originally created (in japanese) was passed on to a programmer. He did a lot of "upgrades" to the site so he says, but he left. Now I am in charge again of re-modeling the site. The problem is I am trying to figure out why there are so many dead links. I have looked up and down the server, but can't find anything. Ok before I confuse anyone else here is what I am talking about. For example this page that I originally made : Code: http://www.discoveryfirm.com/tokushu/index.html cannot be found but if I take of the end: http://www.discoveryfirm.com/tokushu/ the page is there. Now I am trying to fix a lot of dead links, but I cannot figure out what the programmer did to the site. I am still new to all the high-tech features in the web world. Could somebody please explain. hello i have a page 'gallery.html' that i want to show up when the URL www.site.com/gallery is requested. how do i achieve this? thanks in advance rlbw Hi everybody, I've invented a means of converting HTML to keywords. http://4nf.org/tool/ What do you think of it? Any kind of feedback is greatly appreciated! Thanks in advance and kind regards |