Hi,
I just created a simple page where I tried to emulate ajax with CSS. For doing that, I wanted to create invisible radio-buttons with visible labels, an external CSS-file should be loaded as soon as the user clicks on a label. There is just one problem: Tags are printed out as plain text inside the class. Is there a way to handle that?
-Felix
edit: As requested, my code:
<!doctype html>
<html><head>
<title>Demo: Ajax without JS</title>
<style type="text/css">
#loader:checked:after{
content:'<link class="sheet" rel="stylesheet" type="text/css" href="external.css"/>';
}
</style>
</head><body>
<div class="rad"><input type="radio" id="loader"/><label for="loader">Loader</label></div>
</body></html>
Yes, it is as simple as possible.