is there a way to include the current date in a URL in a menu? I can't seem to get it to work correctly
Here is my code:
aI("text=My Appointments;url=Calendar.asp?WeekID="Document.Write(now)";");
The date format should be mm/dd/yyyy
Current date in URL?
Code: Select all
<SCRIPT>
now = new Date();
today = (now.getMonth()+1) + "/" + now.getDate() + "/" + now.getFullYear();
....
....
aI("text=Item1;url=/somedir/somepage.asp?query1=" + today + ";");
....
</SCRIPT>
Dave Hergert
Software Engineer
"Helping to make the menu better, one at a time."
Software Engineer
"Helping to make the menu better, one at a time."
Hot dang! I think that brings my total of working scripts to like 2, maybe 3! Yahoo! Glad it worked! As I said, I didnt test it...so it makes it more interesting to see what you say afterwards! Best of luck with the Milonic DHTML Menu!!
Dave Hergert
Software Engineer
"Helping to make the menu better, one at a time."
Software Engineer
"Helping to make the menu better, one at a time."