Subjugating the federal judiciary to elections puts them in the same position as the legislature as far as being subject to the whim of popular opinion (or in the case of marriage equality, a very loud but not so popular opinion).
You, and Ted Cruise seem to be advocating that we change our entire system of governance from a constitutional republic to an absolute democracy where majority rules regardless of the implications on civil rights.
I'm not sure you are following your assertions to their logical conclusions. If we remove the judicial branch from the system of checks and balances, what will replace it? The will of the people? That would be an absolute democracy. In this case, why even bother with judges at all, just put everything up to popular vote and to heck with restraint.
As has been pointed out, it's highly likely that such a move would backfire on those who propose it. Taking recent polls into account, how do you think the nation as a whole would vote on marriage equality today?