Jump to content

timed adrotator


marclacroix

Recommended Posts

Hi, here you have an image contained into a cell that will change every hour, you would need 24 fotos to use it.What is the time period you need?

<%@ Language=VBScript %><%Dim timeHour, imageCelltime = hour(now)Select Case timeHour	Case 0  imageCell = "image_0.gif"	Case 1  imageCell = "image_1.gif"	Case 2  imageCell = "image_2.gif"	'...	Case 23  imageCell = "image_23.gif"End Select%><html><body><table border>	<tr>  <td background="<%=imageCell%>"></td>	</tr></body></table></html>

Link to comment
Share on other sites

Hi, here you have an image contained into a cell that will change every hour, you would need 24 fotos to use it.What is the time period you need?
<%@ Language=VBScript %><%Dim timeHour, imageCelltime = hour(now)Select Case timeHour	Case 0  imageCell = "image_0.gif"	Case 1  imageCell = "image_1.gif"	Case 2  imageCell = "image_2.gif"	'...	Case 23  imageCell = "image_23.gif"End Select%><html><body><table border>	<tr>  <td background="<%=imageCell%>"></td>	</tr></body></table></html>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...