Question: Code example 11-2 A plugin that highlights items in a menu (function($){ $.fn.highlightMenu = function(options) { var defaults = $.extend({ bgColor : #000000, color :

Code example 11-2 A plugin that highlights items in a menu (function($){ $.fn.highlightMenu = function(options) { var defaults = $.extend({ "bgColor" : "#000000", "color" : "#ffffff", "hoverBgColor" : "#cccccc", "hoverColor" : "#000000", "linkWidth" : "125px", }, options); return this.each(function() { var items = $("li a"); var o = defaults; items.css("font-family", "arial, helvetica, sans-serif") .css("font-weight", "bold") .css("text-decoration", "none") .css("background-color", o.bgColor) .css("color", o.color) .css("width", o.linkWidth); items.mouseover(function() { $(this).css("background-color", o.hoverBgColor) .css("color", o.hoverColor); }); items.mouseout(function() { $(this).css("background-color", o.bgColor) .css("color", o.color);; }); }); } })(jQuery);

(Refer to code example 11-2) If this plugin is used with a menu that contains 10 items, how many objects will the plugin return?

a.

1

b.

0

c.

30

d.

10

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!