Потребител:Edikk
от Уикипедия, свободната енциклопедия
<html>
<head><title>Test</title>
<style type="text/css">
h2 {background-color: lightblue; width: 100%}
a {font-size: larger; background-color: goldenrod}
a:hover {background-color: gold}
#example1 {display: none; margin: 3%; padding: 4%; background-color: limegreen}
</style>
<script type="text/javascript"> </script> </head> <body>
[редактиране] How to use a DOM function
<a href="javascript:changeDisplayState('example1')">Show example</a>
This is the example. (Additional information, which is only displayed on request)..............
The general text continues ....
</body> </html>

