I'm trying to develop some "featured posts" thingys. And I would like them to change when you mouseover()
them. I guess this will be done with jQuery, I tried to get started but I'm quite sucky with it so I thought I'd ask here.
I've come up with this jQuery code:
$(document).ready(function)
{
$("#f_post_long").mouseover(function)
{
$("#f_post_long").append("<div class="hello">hello</div>");
});
});
I thought .appending a new div class with the same class I've got styled in my CSS was needed(?) not sure there though.
CSS looks like this:
#f_post_long
{
width:500px;
height:500px;
background-color:red;
text-align:center;
}
.hello
{
background-color:blue;
width:200px;
height:200px;
}
HTML just contains the element #f_post_long
.
Am I on the right track or am I completely screwed here? I don't want the perfect solution just some pointers in the right directions on what would be easiest against the server and in amount of code written!