Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
$( function(){
	var area = $("area");			
	area.on('mouseover', ville);
	area.on('mouseout', cacheville);
});
function ville(event){
	var value = event.target+"";
	var v = value.substring( value.lastIndexOf("#")+1, value.length );
	$(this).after( '<span id="'+v+'">'+v+'</span>' );
}
function cacheville(){
	$('map span').html('');
}