The council at the first regular meeting after the newly elected councilmen have taken office following each election shall elect from its membership a mayor pro tempore for a term of one year. In the event that no mayor pro tempore is elected at such first regular meeting, or within five ballots taken within ten days following the first meeting, the councilman who received the highest number of votes when he was last elected shall become mayor pro tempore. The mayor pro tempore shall perform the duties of the mayor during his absence or his inability to act, and shall act as mayor until the next regular election for the office of mayor, in which case a new mayor pro tempore shall be elected by a majority of votes of the council.