-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathej1-introduccion.html
45 lines (37 loc) · 1.1 KB
/
ej1-introduccion.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
<!DOCTYPE html>
<html>
<head>
<title>Ejemplo jQuery</title>
<style>
#micapa{
font-size: 1.5em;
font-weight: bold;
}
.error{
color: red;
background: #fcc;
padding: 20px;
}
</style>
</head>
<body>
<div id="micapa">Hola mundo!!!</div>
contenido............................
<P class="parrafo">dfsdfsdf</P>
<P>sdfsdf</P>
<P class="parrafo">sdfsdf</P>
<P>sdfsdfsdf sdf dsf </P>
<P class="parrafo">sd fdssdfsdf</P>
<div class="parrafo">efefertertgegergtrrthty thth etyj</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
//onload ejcutar después que la página termina de cargar!!!! imagenes, frames, iframes, css, etc.
$(document).ready(function(){
//codigo a ejecutar cuando tu navegador esté listo
//JQUERY
$("#micapa").addClass('error');
$("p.parrafo").css("color", "#0f0");
});
</script>
</body>
</html>