html picture question

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
Post Reply
Joey

html picture question

Post by Joey »

i making a web site for my friends band in html. so far i was able to make everything they wanted, but there is one thing i need to know how to do. i am going to create a separate page, and on it i want to know the code to do the following:

there will be a picture displayed, and then back and next below it, and if you click next it shows the next picture, if you hit back is shows the previous.

thanks.
AGI1122

Re:html picture question

Post by AGI1122 »

<img src="image_url_here">
<br>
<a href="back_url_here"></a> <a href="forward_url_here"></a>
Curufir

Re:html picture question

Post by Curufir »

Alternatively use javascript to change the src value appropriately when the button is clicked.
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re:html picture question

Post by Candy »

Curufir wrote: Alternatively use javascript to change the src value appropriately when the button is clicked.
which of course doesn't work when javascript is disabled. The first one works on more platforms.
Curufir

Re:html picture question

Post by Curufir »

Hardly a problem. That's why the tags for no script exist.
Eero Ränik

Re:html picture question

Post by Eero Ränik »

For example, I have JavaScript disabled for security reasons. And he could use PHP, which is as good as just putting those links in the files manually, but more comfortable in case of large galleries.
Joey

Re:html picture question

Post by Joey »

im waiting for my friend to send me the pictures so i can put them online. once he does ill try the code out.
Post Reply