I would like to place a field on my front page where one would just enter the date and month (no year) and click on it to see what happened in history that day. I will have 365 individual html files, one for each day of the year. Each file would be between 300 and 800 KB. I would have a titled line such as: Today in History. Below that I would have another line that says: Enter date and month (no year). I would like a field below that to input that date & month. Then if one clicks on that field, (or even better when it is finally entered) up would come the history html file I created. How can I do this?
Reply from Alex Hedley:
If the files already exist and are static you could build the URL dynamically,
<script language="javascript" type="text/javascript"> function generatelink() { var day = document.getElementById("Day").value; var month = document.getElementById("Month").value; //alert(BaseURL); //http://yourserver.com/1_12.html var link = "http://yourserver.com/" + Day + "_" + Month + ".html"; var a = document.getElementById("link"); a.href = link; a.textContent = link; } </script>
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Microsoft FrontPage Forum.
The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.