I just upgraded my jquery.corner.js from v1.7 to v1.92 and it's
working great. I found 1.92 here:

http://jqueryjs.googlecode.com/svn/trunk/plugins/corner/jquery.corner.js
(via http://www.malsup.com/jquery/corner)

My question is this: I want to get nested corner elements in place on
a drupal 5.7 site to create a border around my rounded sidebars.

Screenshot: http://i31.tinypic.com/2diiumx.png

I made a rather pitiful attempt today and Drupal freaked out ("Parse
error: syntax error, unexpected T_STRING in /my-path/template.php on
line 312").

The modification I made to my code isbelow (works fine without the
text starting with ".parent" on the fifth line of code):

    drupal_add_js('scripts/jquery.corner.js');

    drupal_add_js(
    '$(document).ready(function() {
    $("div#sidebar-left").corner("round 8px").parent().css('padding',
'4px').corner("round 10px");
    });',
    'inline'
    );

Can anyone help me out? My JS skills are pretty weak at this point and
I haven't yet turned anything up in my searches.  I suspect it's
something embarrassingly simple and obvious.

Reply via email to