HTML - Code To Pick Jpg File By Date And Time
My new webcam server sends a jpg file to my website just fine. But the filename is numeric with a jpg file extension. The webcam server waits the required time and then sends another jpg to my website. The problem is that the numeric file name is different and does not overwrite the existing file like my old webcam server used to do. So I end up with a number if jpg files in the directory with numeric filenames with the jpg extension. I need some code that will load the "latest jpg file" by date and time into my html page. Here is how I used to do it when the pic.jpg file was sent to my site and it overwrote the existing file.
<head> <title>Mike's WebCam</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="Pragma" content="no-cache"> <script language="Javascript"> <!-- function refreshCam(){ rfsh = new Date() ; rfsh = "?"+rfsh.getTime() document.images["webcam"].src = "pic.jpg"+rfsh setTimeout("refreshCam()", 240000) } //--> </script> </head> <body bgcolor="#ffffff" text="#080000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <b><font size="3" face="Arial"><p align="center">Mike's Webcam</p></font></b> <center><img height="480" alt="The View" src="pic.jpg" width="640" border="0" name="webcam"></center> <script language="JavaScript"> <!-- if( document.images ) refreshCam(); //--> </script> </body> </html> I am hoping that there is a way to load the new numeric filename jpg into my html by selecting the "latest" jpg by date and time stamp. Thanks in advance Mike Similar TutorialsI have a website where I want to make a drop down menu that will bring you to different pages. It is a very basic, sort of old-fashioned website that relies entirely on html. What I'm trying to do is make a drop-down menu that will be used as navigation for a section of a website and I want to have it in each internally linked page in that section, but I'm going to be adding more pages to it over time so I want to be able to put the drop-down menu code in a separate text file and then substitute it into the pages that I make that the options in the menu link to and then just edit the code in the text file when I add another page so that I don't have to go back and edit the code every single individual page whenever I add a new one among them. Basically all I'm asking is how I can put html code in a text file and then substitute that code into an html page by referring to the file. Thanks in advance for any help. I've copied some html code which gives the time & date on my own website. The problem is, I can't seem to center it so it looks good on my homepage. Can anyone provide me with the code to center it? Here's the code I'm using: <iframe src="http://free.timeanddate.com/clock/i172f04w/n136/fs15/fc990/ftb/tt0/th2/ts1" frameborder="0" width="313" height="20"></iframe> 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 . Hi. Anyone know how to make a table that will display quotes randomly? This is free to use: http://www.tradelinksfree.com/htmleditor.htm What I have is a list of songs on page. I need to be able to have user ckeck mark the songs they want this list will need more then one check box but only submit the box's that are checked i have found many order forms but i don't need the total for this only what song titles they want can any one help or know of a topic i can look at? I use blogger for my blog. Unfortunately, it does not give me the option to post the time AND date on every post, only one or the other. I chose to post the date, but I also want to know if anyone knows of an HTML code that can show the date the post was posted. If needed, my blog is http://www.freebie-link.com/. Hi guys, got a question about a html issue. ill explain the situation, 2 persons publish htm files, this is automated, each html files is unique, so lets say person one creates indexa.htm and person two creates indexb.htm I need a general index who refer to either indexa or indexb, with the rule that it should pick the latest one changed or the newest one. Is this possible in pure html ?? Thanks in advance, Nim. Ok most of this will probably come out as gibberish but here goes. First a bit of background; I use DVDProfiler to catalogue my DVDs. I have trailers for most of my films stored on my pc. In DVDP there is a notes window that can contain HTML. The data stored in this field is stored along with the film data so I have the code below in there which launches the trailer. This is fine, however, I need to use the notes section for something else so I need another option. DVDP also allows the use of HTML windows but these are independent of the film profiles so it would have to have the ability to read the path from the notes section or some other bit of data that identifies the film (ie the title or UPC) Anyone have any idea how this could be done? HTML Code: <A HREF=F:\TRAILERS\2Fast_2Furious_720p23.976_51_6.5Mbps.wmv>Play Trailer</A> what is the HTML code to view an Excel or Word file on a webpage??? thanks, ### Hello there, I have a html page that has links to files on it,, when a user clicks on a file it comes up asking for them to save, open or cancel. is it at all possible to add code to this line <a href="ChainELinkClient\dotnetfx.exe" class="1">Install .NET Framework 1.1</a> to make it so it will automatically open,, instead of asking for those options? Hello, I just started working at a company and they have a website that was partially completed by someone else and have hired me to complete and make changes to it. It seems that most of the website was created in Wordpress, but some of it seems to be done by hand-coding. The website is at http://www.executivetravellink.com/ I was able to get the company's FTP information which shows me all of the files that are on the site and I can easily transfer over locally to work in say Dreamweaver for example. They want me to make some changes to the navigation bar up top where it has links to the Hotels, Flights, Cruises, etc. From looking at the code in the index.php file, which leads to other files, I wasn't able to figure out which file to open in order to make those changes. I'm not sure if this is possible, but from looking at the source code, would someone be able to know the answer to that? Any information that someone could give me would be certainly much appreciated. Thank You! I want to play streaming songs on my website. can anybody give me the html code so that I can play the songs randomly automatically.My two URL of asx files are http://www.playlist.com/playlist/17180213515/asx and http://www.playlist.com/playlist/17174690571/asx Each link is a playlist contains more than 200 mp3 songs. I want to play them such that songs in each link as well as links can shuffle automatically.please reply as soon as possible. Hi, When I open an HTML with my browser to see how it looks, instead of what the code should look like showing showing up, the code itself shows up. Sorry if this is a stupid question, I'm quite new to HTML. I use Dreamweaver CS5. This is the code I used: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html> I have this task as part of an HTML class project. It has to be done using the <embed> tag, and must repeat a wav file twice (playing it three times total). This is the code I'm using: <p> <embed src="background.wav" width="145" height="100" hidden="true" autostart="true" playcount="3" loop="3" /> </p> It doesn't loop at all in firefox, and in IE it loops constantly. If I remove the loop="3" attribute, it works properly in IE. Is there any way to get this working across browsers using the embed tag, or would a more complex method be needed? (such as javascript browser detection with browser specific code). I'm really stuck on this, any help would be really appreciated. Hi, I was trying to get the system date on a form and an excel spreadsheet, but with no success.I am new to the web concept.Any help will be appreciated. Thanks, The following common code is not working in Firefox (3.0.11). It works in Safari (4.02) and IE7. When I say not working, I mean that when I click the submit button, the address does not change to the form processing url: Code: <!-- The data encoding type, enctype, MUST be specified as below --> <form enctype="multipart/form-data" action="uploader.php" method="POST"> <!-- MAX_FILE_SIZE must precede the file input field --> <input type="hidden" name="MAX_FILE_SIZE" value="30000" /> <!-- Name of input element determines name in $_FILES array --> Send this file: <input name="mp3file" type="file" /> <input type="submit" name="submit" value="Send File" /> </form> The file uploader.php does nothing, it is blank, I'm merely trying to establish communication. Once again, the code functions in IE and Safari so I dont think this is PHP related. I have a project written in ASP.NET under Visual Studio 2005 with C#. I am also using Infragistics objects for .NET Advantage 2007. In my page to attach resources to a record I have written a browser and am displaying previously chosen resources here. But when I click the upload button the page opens a new window (which is not a dialog window, but a normal one) which is exactly the same as my dialog window. How can this possibly happen? Can anyone help me? Hi, Anybody have any idea how to convert a xml file to excel file.Actually i m working on visual studio and using C programming language.I have a xml file in the same directory where my programm is running.When i pressed a icon it will take the xml file automatically and convert to a excel file and show the outpt to the user.How can i achive this goal ??? Any help would be great. Thanks, Basanta |