Filehost.ro - gazduire fisiere
Free php scripts.
scripturi pentru webmasteri - free web tools - copie si lipeste scripts pentru situl tau sute de scripturi Daca vrei sa ai acces la baza de date trebuie sa te inregistrezi. Succes. Omae
Nou pe simpatie:
Laura Petrei pe Simpatie
Femeie
24 ani
Braila
cauta Barbat
27 - 65 ani
Free php scripts.ReguliInregistrareLoginPozeNu sunteti logat. Lista Forumurilor Pe Tematici
Free php scripts. / ::.SCRIPTURI COPY&PASTE- AVATARE /

In-line Image Viewer

Pagini: 1 Moderat de SIGN, daniel, kayisATG-, ozzykris, tibilica
#1
omaebazooka
Administrator
Postari: 1105
This script shows how to display different images without going to another page, visitors can click links to change the displayed image in the current page.

The changeImage function - this is responsible for changing the image in the image tag, you should include this code in the head section of your html page.

<script>
function changeImage(filename)
{
   document.mainimage.src = filename;
}
</script>

The links - each image needs its own link to allow your visitors to select it, you can include the links in any part of the body section of you html page and there is no limit to haw many links you can include. The image names are case sensitive so be careful when your typing them in.

<a href="javascript:changeImage('image1.jpg')">Image 1</a>
<a href="javascript:changeImage('image2.jpg')">Image 2</a>
<a href="javascript:changeImage('image3.jpg')">Image 3</a>
<a href="javascript:changeImage('image4.jpg')">Image 4</a>

The image tag - this is the tag that displays the images, you should include it somewhere in the body section of your page, you only need one img tag.

<img name="mainimage" src="blank.jpg">


_______________________________________
http://2012en.wordpress.com/  "Living mistery"
http://mergi.la/RoTop69        "RoTop69"
www.cramanobless.ro                  "Producator vinuri nobile" - Paunesti,Vrancea, mail : info-at-cramanobless.ro
http://www.erepublik.com/en/referrer/HEXAGON+Omae Intra in lumea EREPUBLIK

 
   
Pagini: 1  
Mergi la