<?xml version="1.0" encoding="utf-8"?>
		<feed xmlns="http://www.w3.org/2005/Atom">
		  <title type="text">SkillShare Forum - CSS Beauty - Image loaded by date</title>
		  <updated>2013-05-25T06:52:08-04:00</updated>
		  <id>http://cssbeauty.com/skillshare/</id>
		  <link rel="alternate" type="text/html" hreflang="en" href="http://cssbeauty.com/skillshare/discussion/?DiscussionID=984&amp;Focus=6308"/>
		  <link rel="self" type="application/atom+xml" href="http://cssbeauty.com/skillshare/discussion/?DiscussionID=984&amp;Focus=6308&amp;Feed=Atom"/>
		  <generator uri="http://getvanilla.com/" version="1.1.9">
			 Lussumo Vanilla
		  </generator>
		  <entry>
		<title>Image loaded by date</title>
		<link rel="alternate" href="http://cssbeauty.com/skillshare/discussion/984/?Focus=6308#Comment_6308" type="application/xhtml+xml" hreflang="en"/>
		<id>http://cssbeauty.com/skillshare/discussion/984/?Focus=6308#Comment_6308</id>
		<published>2006-08-16T12:44:32-04:00</published>
		<updated>2013-05-25T06:52:08-04:00</updated>
		<author>
			<name>4hero</name>
			<uri>http://cssbeauty.com/skillshare/account/1435/</uri>
		</author>
		<summary type="text" xml:lang="en">
			Hi guys, I am going on holiday for two weeks and am looking for some help.

My client has asked me to change an image this sunday and next sunday but as I'm on holiday, I can't. I don't do ...
		</summary>
		<content type="html">
			<![CDATA[Hi guys, I am going on holiday for two weeks and am looking for some help.<br /><br />My client has asked me to change an image this sunday and next sunday but as I'm on holiday, I can't. I don't do javascript but is there a way to display an image on a certain date? It's for a sale my client has on, the image currently says, "Summer Sale now on", this Sunday it will change to "Summer Sale ending soon" etc.. <br /><br />I have googled it but can't find much :(<br /><br />Any help would be much appreciated!<br /><br />Thanks in advance.]]>
		</content>
	</entry>
	<entry>
		<title>Image loaded by date</title>
		<link rel="alternate" href="http://cssbeauty.com/skillshare/discussion/984/?Focus=6309#Comment_6309" type="application/xhtml+xml" hreflang="en"/>
		<id>http://cssbeauty.com/skillshare/discussion/984/?Focus=6309#Comment_6309</id>
		<published>2006-08-16T13:08:01-04:00</published>
		<updated>2013-05-25T06:52:08-04:00</updated>
		<author>
			<name>JohnRiv</name>
			<uri>http://cssbeauty.com/skillshare/account/5/</uri>
		</author>
		<summary type="text" xml:lang="en">
			Ideally that should be handled with backend code, since JavaScript will reference the date and time of the user's computer (and the user could be in a different time zone than your client, or have ...
		</summary>
		<content type="html">
			<![CDATA[Ideally that should be handled with backend code, since JavaScript will reference the date and time of the user's computer (and the user could be in a different time zone than your client, or have their date set wrong for some crazy reason).<br /><br />I don't have time to write the code right now, but this page should give you some help with the JavaScript Date object (they even show you how to compare dates): <a href="http://www.w3schools.com/js/js_obj_date.asp" target="_blank" rel="nofollow">http://www.w3schools.com/js/js_obj_date.asp</a><br /><br />As far as inserting the image goes, do some searching for info on the JavaScript Image object the "src" property and you should be good to go. You'll basically want to start with a placeholder image and then replace that image if necessary once the page loads.]]>
		</content>
	</entry>
	<entry>
		<title>Image loaded by date</title>
		<link rel="alternate" href="http://cssbeauty.com/skillshare/discussion/984/?Focus=6356#Comment_6356" type="application/xhtml+xml" hreflang="en"/>
		<id>http://cssbeauty.com/skillshare/discussion/984/?Focus=6356#Comment_6356</id>
		<published>2006-08-18T02:49:38-04:00</published>
		<updated>2013-05-25T06:52:08-04:00</updated>
		<author>
			<name>n0n@m3</name>
			<uri>http://cssbeauty.com/skillshare/account/1574/</uri>
		</author>
		<summary type="text" xml:lang="en">
			If it is not too late, so you can try something like this :






var Date = new Date();
var Today = Date.getDate();

if(Date &gt; ...
		</summary>
		<content type="html">
			<![CDATA[If it is not too late, so you can try something like this :<br /><br />&lt;html&gt;<br />&lt;body&gt;<br /><br />&lt;script type="text/javascript"&gt;<br /><br />var Date = new Date();<br />var Today = Date.getDate();<br /><br />if(Date &gt; 21)<br />{<br />	document.write('&lt;img src="myFirstImg.jpg" alt="Summer Sale now on" /&gt;');<br />}<br />else<br />{<br />	document.write('&lt;img src="mySecondImg.jpg" alt="Summer Sale ending soon" /&gt;');<br />}<br />&lt;/script&gt;<br /><br />&lt;/body&gt;<br />&lt;/html&gt;<br /><br />P.s Good holiday  :)]]>
		</content>
	</entry>
	
		</feed>