<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="ru" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<title></title>
<meta name="description" content="" />
<meta name="keywords" content="" />
<style type="text/css" media="all">
/* =DEFAULT
------------------------------ */
* {
padding:0;
margin:0;
background: transparent;
}
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, cite, code,
em, img, sub, sup, tt, var,
dl, dt, dd, ol, ul, li, fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
border: 0;
vertical-align: baseline;
}
a {
cursor:pointer;
}
body {
font-family:Arial, Helvetica, Verdana, sans-serif;
font-variant:normal;
font-weight:normal;
font-size:100%;
}
.red {
background: red;
}
.blue {
background:blue;
padding:30px;
}
.blue2 {
padding:30px;
}
</style>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#someid').addClass('red');
});
</script>
</head>
<body>
<div class="some" id="someid">Click here
<div><p class="good">retret t</p></div>
<p>retret t</p>
</div>
<div class="some">Click here
<p class="good">retret t</p>
<p>retret t</p>
</div>
<div>to iterate through</div>
<div>these divs. <p>werwer</p></div>
</body>
</html> |