<html>
<head>
<title></title>
<style type="text/css">
/*
Do not forget that expression
behavior: url(...)
requires absolute path
*/
body
{
background: white;
color: black;
behavior: url('../../etc/reformator/i/vlalek.htc');
}
.png
{
//background-image: none ! important;
behavior: url('../../etc/reformator/i/vlalek.htc');
}
h1:hover, a:hover { color: red ! important; }
h1:hover code { color: blue; }
h1 code:hover { color: green; }
p b:first-child,
p b.first-child /* for IE */
{ color: green; }
p:after,
p.after
{ content: '.'; }
p#paragraph:before,
p#paragraph.before
{
content: '\2014\a0'; /* this format doesn't work in IE 5.x */
//content: '— '; /* and this one in FireFox */
}
/* be careful using such expressions,
as this may in some cases cause Windows to freeze really badly */
b:first-child+b+b { color: red; } /* it's better not to put spaces around + due to IE 5.0 */
/* replace + with 'plus' for IE, do not use comma */
b.first-child plus b plus b { color: red; }
form { float: left; padding: 0.25em; }
form + p { clear: left; }
form plus p { clear: left; }
p:hover+form { background: yellow; }
p:hover plus form { background: yellow; }
input { border-width: 2px; }
input:active,
input:focus,
input.focus
{ border-color: green; border-style: solid; }
input:active { border-color: red; }
</style>
<body>
<h1>Heading in pseudo-class <code>:hover</code></h1>
<p>#" onclick="return false;">Link pseudo-class</a>
stays the same. Pseudo-class <code>:after</code>
applies to paragraphs and puts full stops at the end.</p>
<p id="paragraph"><b>First bold item</b>,
<b>next item</b>, and <b>the third item</b> is red.
And this paragraph is in pseudo-class
<code>:before</code> that adds a dash before text</p>
<p>And this button is in pseudo-classes <code>:focus</code>
and <code>:active</code>. If you hover the cursor
over this paragraph, you’ll see the form highlighted</p>
<form onsubmit="return false;">
<input
type="button"
value="Create new first item in the next paragraph"
onclick="Insert_first_child()"
/>
</form>
<p>Image in pseudo-class ../png_in_ie/" target="_top">png</a></p>
<img
src="../png_in_ie/logo.gif"
style="background-image: url('../png_in_ie/logo.png');"
class="png"
width="175"
height="135"
alt="Knorr ®"
/>
<script type="text/javascript">
var eP = document.getElementById( 'paragraph' );
function Insert_first_child(){
var eB = document.createElement('b');
eB.innerHTML = 'New, ';
eP.insertBefore( eB, eP.firstChild );
eP.className += ' '; /* для Firefox */
}
</script>
</body>
</html>