User:TheObliviousWhale/global.js

var catDiv = document.getElementById('catDiv'); catDiv.onmouseover = function {catOver};

catDiv.style = "background: blue";

function catOver { catDiv.style = "background: blue"; }

var test = document.getElementById('example'); test.innerHTML = 'example text';

test.onmouseover = function {mouseOver}; test.onmouseout = function {mouseOut};

// Function definitions

function mouseOver { test.style = "font-size:30px"; }

function mouseOut { test.style = "font-size:20px"; }