Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Adding multiple javascripts in one page Re: Adding multiple javascripts in one page

#123036
Paulie_D
Member

All you have to do it copy the script text (without any script tags)…and paste it into the box.

THEN select it all and hit the Quote item on top of the box. It should indent all the text and there you are:

function retrieveComputedStyle(element, styleProperty)
{
var computedStyle = null;

if (typeof element.currentStyle != “undefined”)
{
computedStyle = element.currentStyle;
}
else
{
computedStyle = document.defaultView.getComputedStyle(element, null);
}
return computedStyle[styleProperty];
}

See?