Building space cooling load affected by lots of factors,was transient, multi-dimensional and highly interactive. A model of online least squares support vector machine (LS-SVM) was established to forecast the space cooling load of building, and correlation analysis was used to find out the main influencing factors, such as, dry-bulb temperature, solar irradiance, and so on. As an example, the hourly space cooling load of an office building in shanghai was investigated. The hourly space cooling load was firstly calculated by the simulation software of DEST, and then, an online LS-SVM model was presented to forecast the load. The simulation results showed that the online LS-SVM model was effective for space cooling load prediction.