Statistical concepts are quite abstract and difficult for students to understand, leading to high examination failure rates. This study investigated whether the use of decorative pictures during online learning could enhance learning performance or reduce cognitive load. Although many multimedia studies showed the negative influences of decorative pictures, the pictures enhanced learning if they induced learning‐relevant emotions and were integrated into the learning context. The purpose of this study was to examine the influence of decorative pictures on online statistical learning, using an online experiment during which students learned about nonparametric tests. The experiment included two sections, each with an emotional picture, learning materials, and questions. Retention and transfer tests were also carried out. Overall, 100 students participated in the experiment. A 2 × 2 between‐subjects design was used with the factors “picture in the first section” (positive vs. negative) and “picture in the second section” (positive vs. negative). The results showed that the first positive picture enhanced learning performance for the questions in the first section, while the second positive picture led to lower intrinsic and extraneous cognitive load; however, the experimental factors did not influence emotions, retention, or transfer. In summary, positive pictures in a learning context reduced cognitive load or enhanced learning, depending on their positions in the learning materials.