Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reload only pictures and text without reloading background

Status
Not open for further replies.

giggi

Programmer
Mar 10, 2004
2
0
0
SE
I would like to do a "simple to maintain and create" site very quickly and fast: but it rely mainly in pictures...I made a trip in Australia: I have 250 days to describe and 1000 pictures to show.
My idea is shown at this site:
they are 3 pictures per day and a brief text to show.
Every click on next and previous must shown the day after or before. Possibility to choose a day with a text box. The background will always be the same: my main idea is to avoid it to reload at every next and previous, but only load the pictures and the text.
As I'm a newbie and never created any line in javascript, is there any manner to do it ? May I use frames (the template is really hard to shown as frames...). The idea is to put a name for every file like this:
day1: image1_0001.jpg, image2_0001.jpg, image3_0001.jpg, text_0001.txt
day125: image1_0125.jpg, image2-0125.jpg, image3_0125.jpg, text_0125.jpg.

if pushedbutton = next then
day = day + 1
else
if pushedButton = previous then
day = day-1

function show()
loadImageInplace1("image1_" + (fillWithzeros(day)) + Str(day));
loadImageInplace2(....

something like this (I come from Delphi...)...so could anybody help me...

Many thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top