HTML - Trying To Calculate Time Changes!!
I am currently deployed to Afghanistan and part of my job requires me to convert times from the local Afghanistan time to Zulu time. Normally this would be easy but Afghanistan is one of the handful of countries that are off set from zulu (GMT) by 4 hours and 30 minutes. I end up spending a lot of time second guessing my calculations therefore wasting my time when there is a better way to make sure they are right. Here is what I am looking to do:
I would like to create a very simple calculator that allows the user to put in a time and click a button and it will kick out the results. I would like to make it so that it will calculate both to zulu (GMT) and from zulu to local time. Something that I would like to do with this but isn't really required is that I would like to put a drop-down list that would have all of the different time offsets listed and that way you could select the offset and it would calculate the time for anywhere in the world. I really have no idea where to start with this project. I would prefer this calculator to align to the top left side of a page so that it will fit on the page that I plan on putting it on. Any help that anyone could be able to give would be awesome. I have been searching the internet for the information and I haven't been able to find much of anything. Similar TutorialsHello, I am using this script http://www.frontiernet.net/~bambam00.../tooltip_e.htm to have some text appear on top of my images at: http://www.greekconcierge.com/group.php I need a function which can correctly calculate the coordinates in the "FIX" element of that script so that the tooltips are positioned correctly for different screen resolutions. I suppose the function will need to find the center of the screen and then use relative positioning. any ideas? thanks, Andy I made my own local page and it's for a game's stats (Wins:Losses record), on which I have a fields with numbers. What code should I add if I want to make calculations like: Let's I have I have a field for Wins: and a field for Losses:. On another place in the page I have Total Wins, Total Losses, Win % (win:losses ratio). I dont know how to make typeable fields, so I have to type the numbers manually in TXT format, to edit the HTML code. But still, even if I have to type the numbers for fields Wins: and Losses: I want the Total fields to automatically calculate so: Total Wins = Wins (whatever number I type in Wins it appears in Total Wins) Total Losses = Losses (whatever number I type in Losses it appears in Total Losses) Win% = Total Wins/((Total wins + Total losses)/100)) Say I type 12 wins and 5 losses in the first fields. Thus, when opening the page, the same numbers should show for Total Wins = 12 and Total Losses = 5 without me having to type them in TXT format for the 'Total' fields. Win% would be 12/((12+5)/100)) = 12/0.17 =~ 70% In other words, to clarify in HTML, there where Total Wins and Total Losses have some numbers to be typed, instead of me writing manually the numbers e.g 12 and 5, can I instead write these formulas and how should they look in HTML? im not so familiar with html editing. i want to make a page (html) in my forum to calculate a formula. the user need to input only 1 value . the value is numerical type ( its from 1 to 50). Should be a submit button , so after the user click submit button, the value will be inserted in the formula , calculate it, then a popup box should appear and tell the answer. can someone show me an example of this? the formula will be something like (value + b) + value/c = x. the popup window should return the x ty Hello! I've found on w3schools.com an example on creating simple animations, using xhtml: (3 lines of text appear and disappear continuously) Code: <html xmlns:t="urn:schemas-microsoft-com:time"> <head> <?import namespace="t" implementation="#default#time2"> <style>.t {behavior: url(#default#time2)}</style> </head> <body> <t:seq repeatCount="indefinite"> <h2 class="t" dur="1s">I will display for one second</h2> <h2 class="t" dur="2s">I will display for two seconds</h2> <h2 class="t" dur="3s">I will display for three seconds</h2> </t:seq> </body> </html> If I try this code with Internet Explorer, under Windows XP it works, but if I try it under Linux(Ubuntu 9.04), with FireFox or Opera, it does not. Should I install something or activate an option? and, furthermore, is there anything to be used as a time namespace instead of urn:schemas-microsoft-com:time? something not from microsoft, beacause that may be the problem... thank you in advance! okay so i have tables built with images set as the background property of the table sections to created a rounded graphical appearance to the tables. the problem is that when the page loads without being cached on the clients end for the first time it builds the site in a choppy method. you see each image come up one at a time and it builds the tables, after its cached that goes away until you dump your cache in your browser. so what im wanting to know is, is there a way (other than server side compression) to reduce or remove this choppy load time, so its just like.. blank page then BAM! full page, like a way to force precaching or make it so fast that you cant visually see the tables being built before they are cached? www.wiffleague.com/main.php so heres some things i tried: - making the images as small as i know how (they could be smaller i guess, im not sure how to do that though) - reducing the amount of images to the bare minimum required to render the tables properly - removing redundant html code from the tables such as 'width="100%"' from some of the td fields when a prior row already has the width set properly, thus the columns still align properly but there is less code to process some things that are not suitable solutions: - get a faster server - put less content data on the page - only use _____ browser - use apache's gzip compression to force the images even smaller than they already are during transmission then the browser decompresses and renders them OK this is the first time I've tried playing around with HTML, and obviously my first time using an HTML forum. If I mess this post up please understand. Basically I have text that is being cut off early (white text on blue, blue ends and white text is lost in the white next to it) and I wanted to know if there is a way to get the text to move to a new line instead of being cut off early. This way it will remain in the blue background. I have removed what I believe is the important stuff Basically it looks like this: Code: <body background="path_to_background.jpg"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td><div class="wh">Some_Sort_of_Title</div></td> </tr> <tr> <td height="100" valign="top"> <br><font color="white">THIS IS THE TEXT THAT GETS CUT OFF AND THAT I NEED TO FIX BECAUSE IT IS TOO LONG </font> </td> </tr> <tr> <td align="right"> <some unimportant stuff for downloading a pdf a></a> </td> </tr> </table> </body> So as you can see it is that <font> </font> section that I'm trying to rectify as my background is not the width of a full page. Even if you just refer me to a beginners guide of some sort that could help me out that would be awesome. Thanks guys Hello everyone, I have my first pancake here Link. I tried it on various browsers and versions. When I open it from different computers for the first time it opens wrongly, the white center thing doesn't fit in the screen. After few times pressing refresh or browsing in the site and coming back I have normal look I should have. When I open the my web page from the same computer again ( lets say other day ) it opens ok. Just the first time it opens wrongly.. any clues why? I've experienced that with IE 6.something (6.2 I guess) I was wondering if there was a simple way or script out there that anyone knows that can change a picture at a certian time? I am doing a website for a diner and they close at 3:00pm and I was thinking about putting a sign on the website that would simply say "Open" when the diner is open and "Closed" when its obviously closed. Thanks in advanced I want to ask you ,guys that already know this things . How much time does it take to learn ? -html -css -javascript -php -mysql . Each of them ,and another question ,what else should i learn to be able to create any website that i want ? I would like four divs to be loaded, but for only one to show at a time. The firt one says welcome with a few pictures, and the other three appear when certain links are hovered over. Possible? Hello, I am designing a site for a friend at: www.vintageparlor.com I am fairly new to HTML, but I know FTP and how hosting works. Something I have noticed is that the site seems to load a bit sluggish... I am guessing that this is due to the images on the page, specifically the background image. What should I do? Or is that not the problem? Thanks! -Jordan Hello, I'm creating my very first website, using notepad. For some reason my images do not display in Firefox, and in Internet Explorer the middle column is pushed way down into the page but the images DO display. My website seems to work just fine in Chrome and Safari. Can anyone take a look at the code and tell me what I did wrong? http://www.moorestock.com Thank you The new iGoogle uses a time based image where the color of the sky corresponds to the time of day eg. it is bright when it is light out and dark when it is dark out. I want to make a image for a business website that displays open when it is between certain hours and closed when it is not those hours. Any guidance on where to look or how to approach this? I have a client whose browser times out when loading a page that takes a while (20 minutes?) to generate. I could not file a response header that identifies this issue, can anyone help me with this? I am using PHP if that is a factor... I am trying to create a simple html page that when opened and whilst viewing has a running clock...is that possible..? If so, what coding is required...? hmm is there a way to do this so i have a text link <input type=button onClick="show()" value="hide"> when the user clicks on the button it calls some javascript which shows a div (not relevant!!). is there a way so that you click on the same button again it calls some different javascript e.g. hide() ?? I know about onFocus, onBlur etc but this is not what i need. Hi, I'm starting a site that'll need to be updated a few times a week and updated extensively at least once a week. It's around 90% text-based, with a sprinkling of images, and is intended to grow to a large size - many hundreds of pages, if all goes to plan - within six months. (As you might be able to deduce from the virtual life story that I'm about to post here, it's going to be a site for people who don't mind reading things on their computer screens...) The short version of my question is: how can it be any way time-effective to update a Tables-based website?! I work full-time, and have several other things going on in my life that need attention. How can a large Tables-based website be thoroughly updated with new content in less than, oh, a day or two?! I might have missed something that should be completely obvious, so there's a long version: I started learning HTML and CSS a month ago, from a completely 'cold' start (no previous experience with coding at all, unless being proficient with BASIC in the 1980s counts). So, I quickly happened upon the Frames chapters of the books I'm using. I know now that all the issues with Frames are real and serious and I was a wicked, evil person to try to start a website in this day and age using them, but I was kind of gleeful at just how useful they are. All you have to do to start an easily maintainable website is create a homepage with a Frameset for a header, a navigation column, and a main content space. Updating it is then as easy as adding new content pages to be viewed in the content space, and adjusting the links on the navigation html document only. Italics are because I've decided that I have to shift my site away from using Frames and the prospect of using Tables is - bluntly - doing my head in. I've looked at, and shuddered at, all the issues surrounding CSS compatibility across various browsers. I've read up in depth on all the issues and think I have no choice but to use Tables if I want the site to be visible to the broadest range of search engines and Bookmark-friendly to visitors and all the rest of it. I took down my Frames-based site yesterday and started re-doing it in Tables. I created a Homepage and a couple of other pages. I published them - then when I finished the fourth page I realised that I had to change the first three pages to link up with the fourth. Doing this took half an hour, and it was only four pages! By now I'd learned my lesson, and saw that I had to build the entire site, offline, before publishing the pages en masse. Which I'm currently in the middle of doing, and it's now nearly 3 a.m. on Sunday night. I'm nowhere near the end, and it's only a 20-page website. Looking to the future, what will happen if/when the site's at 100+ pages, and I add a new section that has to be linked to in the navigation bar on every single one of those 100+ pages?! Yes, I'm making extensive use of CSS for formatting - there's no need for me to mass-update pages to alter paragraph indentation or anything like that. Just a tweak here or there on the stylesheet (love it!). What's driving me crazy is the sheer amount of time I'm spending linking all the Tables pages together, when it was effortless using Frames: just the one html file had to be changed and that was that. So I'm kind of wondering if I've missed something. How do websites that use Tables with persistent navigation bars or columns on every page get updated in anything less than a week of intensive work? I've only been doing this for a month. Maybe I'm being stupid. I've Googled a lot on the subject and cannot find anyone else griping about this issue, so I think I am missing something. I'd like to know what it is, as I'd love to get back to work on the site. Just as long as I know I won't be spending whole weekends in months to come manually updating hundreds of webpages because I add an FAQ to my site or something. Is there a code that only first time visitors can see (it can tell by tracking cookies?) and that can show a delete-able message? If there is one, can you share it with me (is there any CSS involved?). Also, if you don't know of such a code, please tell me so I don't waste my time searching . |