Question: I have a database, I mapped it via Ado.net entity model, now I want to expose a single class from my model via WCF service. How can it be achieved?

Answer: 
I like the CSS solution of A.Wolff best, but here's an alternative.

The changes are only made in your jQuery code.

```
$(function() {
    $("#example-one").append("<div id='slider'></div>");

    var $slider = $("#slider");

    $slider
        .width($(".current_page").width())
        .css("left", $(".current_page a").position().left)
        .data("origColor", $slider.css("background-color"))
        .data("origLeft", $slider.position().left)
        .data("origWidth", $slider.width());

    $("#example-one div").find("a").hover(function() {
        $el = $(this);
        elColor = $el.css("color");
        leftPos = $el.position().left;
        newWidth = $el.parent().width();

        $slider.stop().animate({
            left: leftPos,
            width: newWidth
        }).css('background-color', $el.css("color"));
    }, function() {
        $slider.stop().animate({
            left: $slider.data("origLeft"),
            width: $slider.data("origWidth")
        }).css('background-color', $slider.data("origColor"));;    
    });
});

```

Check your [**updated Fiddle**](http://jsfiddle.net/GJQA5/8/).
Here is the update code:

**new CSS**

```
#slider.blue { 
background-color: blue; 
}

#slider.orange { 
background-color: orange; 
}

#slider.yellow { 
background-color: yellow; 
}

#slider.lime { 
background-color: lime; 
}

```

**JS COde**

```
$(function() {
    $("#example-one").append("<div id='slider'></div>");

    var $slider = $("#slider");

    $slider
        .width($(".current_page").width())
        .css("left", $(".current_page a").position().left)
        .data("origLeft", $slider.position().left)
        .data("origWidth", $slider.width());

    $("#example-one div").find("a").hover(function() {
        $el = $(this);
        leftPos = $el.position().left;
        newWidth = $el.parent().width();

        $slider.stop().animate({
            left: leftPos,
            width: newWidth,
        }).addClass($(this).parent().attr('class'));
    }, function() {
        $slider.stop().animate({
            left: $slider.data("origLeft"),
            width: $slider.data("origWidth")
        }).removeAttr('class');    
    });
});

```

[**Updated Fiddle**](http://jsfiddle.net/GJQA5/6/)