View Single Post
Old 05-29-2012, 09:54 PM   PM User | #3
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,249
Thanks: 59
Thanked 3,999 Times in 3,968 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
Anyway, show us the link (I assume you mean an <a href="..."> link) that you want to change.

And when you say you want it to show /tagged/DAY-10/ do you mean that the 10 is just the day of the month?

Actually, if that's all you want, it's easy:
Code:
<html>
<body>
<a id="DAYLINK" href="/tagged/DAY-1/"> Today's link </a>

<script type="text/javascript">
var now = new Date();
document.getElementById("DAYLINK").href = "/tagged/DAY-" + now.getDate() + "/";
</script>
</body>
</html>
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote