Posted by smile
2014-05-30

Why isn't this working inside the ad manager? I hope you can help me, when can you add the expiration feature?

Anyway here is my code:

<html>
<head>

<script language="javascript">
<!--
var picture='';
mytime=new Date();
mymonth=mytime.getMonth()+1;
mydate=mytime.getDate();
if (mymonth==5 && mydate>=5) {picture="<img src=image1.png>"}
else if (mymonth==6 && mydate<=30) {picture="<img src=image1.png>"}
else {picture="<img src=expired.png>"
}
//-->
</script>


</head>
<body>
<table>
<tr>
<td>
<script language="javascript">
if(picture!='')
{
document.write(picture);
}

</script>

</td>
</tr>
</table>
</body>
Posted by Tom
2014-05-30

Before getting into the javascript, I would like to point out that you shouldn't put <html>, <head>, <body> tags in the code box. Those tags will mess up hosting pages.