Quite a few motherboards are like the one in the picture you posted, and actually a have a legend printed on to the board next to where the jumpers are. If yours doesn't then read the manual that came with it. If you bought it without a manual, you will need to figure out the model number or it's very hard to help you.
edit: Also, HP do have a tech support forum. I'm sure they can help you identify your motherboard.
The image was posted to represent the pins i have. I have connected then appropriately but i still get error.
By pins i mean the plastic sqare thing that goes onto pin(gnd, data+, data-, 5v)