I'm aware of one side of the equation, many millions of dynamic websites.
My wager would be that websites and web related stuff (also intranet) now makes up the bulk of the software written but that the money is still made on the other side.
> websites and web related stuff (also intranet) now makes up the bulk of the software written [...]
Are you going to measure by line or byte or syntax-tree node or similar? Are we going to include throw-away scripts? What about zeroth order functional programming (i.e. spreadsheets)?
Anyway, I'd also wager that there's more money made outside of the web. (Though, how do we classify, e.g. Apple app-store sales?) For the wager about for what the majority of software is written, we'd need some clearer vision of what we're talking about before.
Let's agree on some definitions (and an arbiter), then we can put up some odds and money.