In a recent article in the New York Times, the Spanish chef José Andrés discusses the Spanish way to fry an egg. Basically, Spaniards fry their eggs in hot olive oil so that the whites get slightly caramelized and crispy. I much prefer them cooked this way to the simmering them in butter.
The article includes a slide show with step-by-step instructions on how to fry an egg the Spanish way.
José Pizarro's Seasonal Spanish Food: 125 Simple Recipes to Bring Home the Flavors of Spain also covers the basics of Spanish-style egg frying.
Serve the fried eggs over patatas fritas (Spanish-style French fries) and you have a famous Spanish dish, huevos estrellados.