Hi there,
I don't seem to be able to get to the bottom of a particular problem i have with using jquery in my themes (particularily rounded corners). The rounded corners don't display ... i must be overseeing sth. Here my code. I have downloaded and added jquery.curvycorners.packed.js (http://methvin.com/jquery/jq-corner.html) into a folder drupal/sites/all/scripts/
in page.tpl.php added following
<?php print $scripts ?>
in template.php added following
drupal_add_js('sites/all/scripts/jquery.curvycorners.packed.js');
drupal_add_js(
'$(document).ready(function() {
$("div.whois").corner("round 10px");
});',
'inline'
);
in style.css added following:
#whois {
background-color:#dcdcdc;
margin-top:10px;
padding:10px;
}
in block-user-3.tpl.php (the who is online block) added following:
<div id="whois">
<?php print $block->content; ?>
</div>
The result in the HTML output
in the header for the javascript looks like this: