-
Notifications
You must be signed in to change notification settings - Fork 0
/
20.multimedia.html
49 lines (47 loc) · 1.7 KB
/
20.multimedia.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Multimedia</title>
</head>
<body>
<p>Cea mai rapida metoda de a adauga muzica, video in pagina este cu ajutorul tagului <strong>embed</strong></p>
<code>
<embed src="/html/yourfile.mid" width="100%" height="60"> <br>
<noembed><img src="yourimage.gif" alt="Alternative Media"></noembed> <br>
</embed>
</code>
<embed src="/html/yourfile.mid" width="100%" height="60">
<noembed><img src="yourimage.gif" alt="Alternative Media"></noembed>
</embed>
<h5>Lista de atribute pentru embed:</h5>
<ul>
<li>align - invechit</li>
<li>autostart - invechit</li>
<li>loop - sunetul va rula continuu</li>
<li>playcount - de cate ori va rula un sunet</li>
<li>hidden - specifica daca obiectul multimedia va aparea in pagina</li>
<li>width - latimea obiectului, in pixeli</li>
<li>height - inaltimea obiectului, in pixeli</li>
<li>name - nume de referinta pt obiect</li>
<li>src - URL-ul obiectului</li>
<li>volume - conrollere de volum</li>
</ul>
<h5>HTML Object - tag</h5>
<p>Folosit pt includrea obj in pagina</p>
<p>Embeded docuemnt html</p>
<code>
<object data="data/test.html" type="text/html" width="300" height="200"> <br>
alt : <a href="data/test.html">test.htm</a> <br>
</object>
</code>
<p>PDF embeded in HTML</p>
<code>
<object data="data/test.pdf" type="application/pdf" width="300" height="200"> <br>
alt : <a href="data/test.pdf">test.htm</a> <br>
</object>
</code>
</body>
</html>