marclacroix Posted November 16, 2005 Share Posted November 16, 2005 How do I proceed to change the content of a frame or a cell table on a time basis? Like ContentRotator does when loading or refreshing a page. Link to comment Share on other sites More sharing options...
Jerome Posted November 16, 2005 Share Posted November 16, 2005 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 More sharing options...
marclacroix Posted November 17, 2005 Author Share Posted November 17, 2005 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> <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now