Toggle navigation
Free!
AjaxNewsTicker
AjaxCountDown
Ajax Poll Script
php Infinite Scroll
Link Obfuscator
CSS Obfuscator
Scripts
Text Ad Script
Ajax Likes Script
pkShortURL
Fade-In Slideshow
Ajax Poll Admin
Ajax Poll DBV
Support
Contact Us
Ask a pre-sales question
Submit a support ticket
Free estimate request form
AjaxNewsTicker
AjaxCountDown
php Infinite Scroll
Fade-In Slideshow
Text Ad Script
Link Obfuscator
CSS Obfuscator
Ajax Likes Script
pkShortURL
Ajax Poll Admin
Ajax Poll DBV
Ajax Poll Script
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.
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>