
Originally Posted by
SeK612
Well Ajax seems pretty comprehensive so I guess it would (it's what's used when you click to edit a post on the forum and by companies like Google, where you can drag stuff freely around the page).
Dragging stuff around isn't ajax, you're right about the quick edit and quick post tho.
Ajax is loading stuff from the server to the page without it actually reloading the page (does it in the background).
Now that I think about it you can probably do this without even using ajax.
Just a javascript function like:
HTML Code:
<script type="text/javascript">
function changeCSS(cssname)
{
if (cssname=='style1')
{
document.getElementById('pagecss').value = 'the css goes here, not including <style></style> tags. ex: h1{ font-weight:bold; }';
}
else if (cssname=='style2')
{
document.getElementById('pagecss').value = 'the css goes here, not including <style></style> tags. ex: h1{ font-weight:bold; }';
}
}
</script>
On a page like:
HTML Code:
<html>
<head>
<style id="pagecss" type="text/css">
default style goes here :/
</style>
</head>
<body>
<a href="#" onclick="changeCSS('style1');">Change to style 1</a>
<a href="#" onclick="changeCSS('style2');">Change to style 2</a>
</body>
</html>
Bookmarks