• Non ci sono risultati.

Capitolo 5adding images to your web pages

N/A
N/A
Protected

Academic year: 2021

Condividi "Capitolo 5adding images to your web pages"

Copied!
17
0
0

Testo completo

(1)

Capitolo 5

adding images to your web pages

(2)

2

JPEG

(3)

GIF

(4)

4

Sono usate per immagini con molti colori, come le fotografie

JPEG vs GIF

Sono usate per immagini con pochi colori e a tinte piatte, come i loghi

(5)

Possono rappresentare immagini con al massimo di 16 milioni di colori

JPEG vs GIF

Possono rappresentare immagini con “solo” 256 colori

(6)

6

Non supportano la trasparenza

JPEG vs GIF

Supportano la trasparenza

(7)

Attributi di <img>

<img src=“images/pencil.gif”

alt=“Pencil line 35 miles long” />

<img src=“images/drinks.gif”

width=“48” height=“100” />

width height

(8)

8

Esercizio: myPod (1)

mypod

photos

seattle.jpg

index2.html index2.html

http://www.sci.unich.it/~bista/didattica/tecnologie-web/

materiale2007-08/hfhtml-esercizi/HFHTML_ch05/mypod/

(9)

<html>

<head>

<title>myPod</title>

<style type="text/css">

body { background-color: #eaf3da; } </style>

</head>

<body>

<h1>Welcome to myPod</h1>

<p>Welcome to the place to show off your iPod, wherever you might be. Wanna join the fun? All you need is any iPod, from the early classic iPod to the latest iPod Nano, the smallest iPod Shuffle to the largest iPod Photo, and a digital camera. Just take a

snapshot of your iPod in your favorite location and we'll be glad to post it on myPod. So, what are you waiting for?

</p>

<h2>Seattle, Washington</h2>

<p>Me and my iPod in Seattle! You can see rain clouds and the Space Needle. You can't see the 628 coffee shops.

</p>

</body>

</html>

Esercizio: myPod (1) index2.html

Aggiungere l’immagine seattle.jpg

(10)

10

Ridimensionamento immagini

11

22

33

(11)

Esercizio: myPod (2)

photos thumbnails index2.html mypod

seattle_med.jpg seattle_shuffle.jpg seattle_downtown.jpg

(12)

12

Creazione di anteprime

Vedi ridimensionamento immagine

600px

400px 150px

100px

seattle_med.jpg

seattle_downtown.jpg

seattle_shuffle.jpg

(13)

Esercizio: myPod (2)

index2.html

seattle_downtown.html

seattle_med.html seattle_shuffle.html

(14)

14

Esercizio: myPod (2)

photos thumbnails index2.html

mypod

html

seattle_med.html seattle_shuffle.html seattle_downtown.html

(15)

Esercizio: myPod (2)

<html>

<head>

<title>myPod: Seattle Ferry</title>

<style type="text/css">

body { background-color: #eaf3da; } </style>

</head>

<body>

<h1>Seattle Ferry</h1>

<p>

<img src="../photos/seattle_med.jpg"

alt="An iPod on the Seattle ferry“ />

</p>

</body>

</html>

seattle_med.html

photos thumbnails index2.html

mypod

html

(16)

16

Esercizio: myPod

photos thumbnails index2.html

mypod

html

(17)

Esercizio: myPod

<p>

<a href="html/seattle_med.html">

<img src=“thumbnails/seattle_med.jpg"

alt="My iPod in Seattle, WA“ />

</a>

</p>

index2.html

Riferimenti

Documenti correlati

Based on a previous study [8] , and on the recent up- date of the core mechanism of the CRECK kinetic framework, the detailed model of aldehyde low- temperature oxidation was lumped

L’azione del vento su un edificio a torre può es- sere vista come somma di due contributi: da un lato “un’azione locale” che può essere schematiz- zata valutando i picchi

In order to achieve so, the unique approach of SAPUSS is the concurrent measurements of aerosols with multiple techniques occurring simultaneously in six moni- toring sites around

Each sensitive element of the sensor (known as pixel) is sensitive to one color component only. This is obtained through the deposition of color filters on top of a monochrome

THE …...EST OF THE FAMILY (complete with adjectives like sweet, kind, nice, cool, smart, strong, young, ). YOU ARE MY STAR YOU ARE MY SUN I LOVE YOU MUM, YOU ARE THE ONE

Temperature Programmed Surface Reaction experiments using ammonia well agree with the catalytic activity results, indicating that high H 2 and N 2 desorption are obtained only if

An extremely naïve assumption has crumbled before our eyes: some used to believe science communication was a transfer of information between those who know (scientists) and those