top

[HTML-Tutorial]Picture Gallery

 
Creaza un subiect nou   Raspunde la subiect    Pagina de start a forumului webdesign.MyForum.ro -> Tutoriale html
Autor Mesaj
Chip
Founder
Founder
Chip

Data inscrierii: 29/Sep/2007
Mesaje: 19

MesajTrimis: 29/09/2007 15:46    Titlul subiectului: [HTML-Tutorial]Picture Gallery Raspunde cu citat (quote)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<!-- Created by Chip -->
<!-- Posted in the webdesign.myforum.ro -->
<!-- Brewed on 29/09/2007 15:46:21 PM -->
<head>
<title>Picture Gallery</title>
<!--this is the CSS for the thumbnails picture-->
<style>
body{background-color:}
#small_img{width:290px;height:600px;float:left;overflow:scroll;text-align:center;background-color:06AEFF;}
img {border:none;}
</style>

<script>

/*Add more Picture in the ARRAY */
var photo = new Array();
photo[0]="IMG_1689.JPG"/*put the location of the picture or th name if it is in the same folder*/
photo[1]="IMG_1692.JPG"
photo[2]="IMG_1693.JPG"
photo[3]="IMG_1694.JPG"
photo[4]="IMG_1696.JPG"
photo[5]="IMG_1698.JPG"




function ff(code)
{
document.images.home.src=photo[code];/*the code in the Array is from the function ff(#####)number of picture in the web site*/

}
</script>
</head>
<body>
<div id="small_img">
<a href ="#" onclick="ff(0)"><img src="IMG_1689.JPG" alt="" height="200"></a><br>
<a href ="#" onclick="ff(1)"><img src="IMG_1692.JPG" alt="" height="200"></a><br>
<a href ="#" onclick="ff(2)"><img src="IMG_1693.JPG" alt="" height="200"></a><br>
<a href ="#" onclick="ff(3)"><img src="IMG_1694.JPG" alt="" height="200"></a><br>
<a href ="#" onclick="ff(4)"><img src="IMG_1696.JPG" alt="" height="200"></a><br>
<a href ="#" onclick="ff(5)"><img src="IMG_1698.JPG" alt="" height="200"></a><br>
</div>
<div>
<img name="home" src="IMG_1694.JPG" height="600"/><br>
</div>
</body>
</html>
Sus
Vezi profilul utilizatorului Trimite mesaj privat
Afiseaza mesajele pentru a le previzualiza:    Subiectul anterior : Subiectul urmator  
Creaza un subiect nou   Raspunde la subiect    Pagina de start a forumului webdesign.MyForum.ro -> Tutoriale html Ora este GMT + 3 ore
Pagina 1 din 1

 
Mergi direct la:  
Nu puteti crea un subiect nou in acest forum
Nu puteti raspunde in subiectele acestui forum
Nu puteti modifica mesajele proprii din acest forum
Nu puteti sterge mesajele proprii din acest forum
Nu puteti vota in chestionarele din acest forum

Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro