Computing.Net > Forums > Programming > autochange image in website

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

autochange image in website

Reply to Message Icon

Name: Johanovitch
Date: October 18, 2001 at 14:44:14 Pacific
Comment:

I was wondering if this is possible:
Let's say, I have a website, and in a subfolder, I place a bunch of images.
I want to accomplish that I see only 1 image at a time, but that I see another image each week (or after a few days or even 1 day, whatever).

Can it be done with html? Java? other
solutions?

Anything appreciated.
Thanks in advance
Johan



Sponsored Link
Ads by Google

Response Number 1
Name: Mik
Date: October 19, 2001 at 00:51:51 Pacific
Reply:

You could do that in many different ways. You could make a CGI program which creates the page modifying the URL to the picture according to the date.

You could also add some simple javascript in your page which would load a picture. If the names of your pictures correspond to the date then it would be simple. You would just construct the url out of the date. Ex. picName = "picture" + dayofmonth + ".jpg"

If you wanna get big you could create a Java applet to retrieve a random picture.

Mik


0

Response Number 2
Name: Johanovitch
Date: October 19, 2001 at 02:30:36 Pacific
Reply:

Thanks
I looked for a javascript and found what I was looking for.

Johan


0

Response Number 3
Name: Unknown
Date: October 21, 2001 at 01:41:31 Pacific
Reply:

Yes this can be done useing JavaScript. I am new to JavaScript but it is very posible. try www.webmonkey.com and look for a tutorial from Thau. He is good.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Mod: Where are the older ... Visual c++ 6.0



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: autochange image in website

Background image in HTML www.computing.net/answers/programming/background-image-in-html/8726.html

opening an image in python www.computing.net/answers/programming/opening-an-image-in-python/14922.html

Images in VB6 www.computing.net/answers/programming/images-in-vb6/11633.html