0

I am using jquery round corner plugin in lifray theme in order to add round corner functionality in all kind of browsers, including IE6 to IE8. i have included the jquery round corner plugin in portla_normal.vm like this :-

<head>
    <title>$the_title - $company_name</title>

    <script type="text/javascript" src="/html/js/jquery/jquery.js"></script>                    
    <script type="text/javascript" src="$javascript_folder/jquery_roundcorner.js"></script>
    <script type="text/javascript" src="$javascript_folder/jquery.corner.js"></script>

        $theme.include($top_head_include)

 </head>

This is my jquery_roundcorner.js file, when i see on console of the browser getting the error in this file like below.

$(document).ready(function()    {
    $('#navigation li').corner("round 6px");
    $('#navigation a').corner("round 6px");
});

I am geting following error on browser console:

Uncaught TypeError: Object #<Object> has no method 'corner'.

Can any one help me how to resolve this?


If the last carry is -1, then it means you have to add -1 * 10^(number of digits) to the answer.

 01
-10
---
 91

And Carry = -1. Hence you have to add -100 to 91 to get the actual answer.

The solution is simply to subtract the smaller number from the larger number and then add the sign accordingly.

4

2 に答える 2

1
<head>
   <title>$the_title - $company_name</title>
   <script type="text/javascript" src="/html/js/jquery/jquery.js"></script>
   <script type="text/javascript" src="$javascript_folder/jquery.corner.js"></script>             
   <script type="text/javascript" src="$javascript_folder/jquery_roundcorner.js"></script>
   $theme.include($top_head_include)
</head>

JavaScript の読み込み順序を変更してください!

jquery プラグインが最初にロードされていることを確認する必要があります。

于 2014-01-21T06:06:23.123 に答える
0

私の jquery_roundcorner.js では、上記のコードを次のコードに置き換えました。実際には速度ファイルでも $ が使用されているため、競合が発生する可能性があります。最後に私はこれを試しましたが、現在は機能しています。

var jq=$.noConflict();
jq(document).ready(function(){
    alert('hello alert1 ');
    jq('#navigation li').corner("round 6px");
    jq('#navigation a').corner("round 6px");
    alert('hello alert3 ');
});
于 2014-01-21T09:47:27.280 に答える