Ook Ook-I think it radiates both energy and visible light.
End of quote
I've not seen a reference to Jupiter radiating visible light, but Saturn does have a level of luminosity. One explanation I've seen is that this could be due to helium raining down into the core, but I'm uncertain as to how this works. The same mechanism could be at work in Jupiter.
The other thing to remember is that the core is believed to be extremely hot (12000K-20000K) due to gravitational compression. Heated material could account for some of the radiated light.
Interestingly, Saturn, Jupiter and Neptune all radiate more energy than they receive, but Uranus doesn't.
This is what keeps the gas together.
End of quote
It's cause and effect - the gaseous atmosphere itself isn't held in purely by the gravitational attraction of the solid core, it's the total gravity of the planet's mass. The core itself is believed to be about 10-15 Earth masses (compared to Jupiter's total of 318 Earth masses).If you think about it this way, the gas is kept there both by the gravitational attraction of the mass below it and the pressure of the mass above it.
The atmosphere does get denser and denser as you go further down, but it is believed that, as hydrogen doesn't change state suddenly under pressure, there aren't well defined layers. It eventually reaches a liquid/solid state near the core, and this probably accounts for the majority of the planet's mass.