User:Ciencia Al Poder-fduser/WeatherWidget.js

//See w:Forum:HTML code on pages? Trying to get weather widget to work

function weatherWidget{ if (!$('sidebar_1')) return; if (! $('901_wg')){ var wDd = $T.create('dl', {'class':'widget WidgetWeather', id:'901_wg'},[			$T.create('dt', {'class':'color1 widget_title', id:'901_header'}, [ $T.create('div', {'class':'widgetToolbox'}), document.createTextNode('Weather') ]),			$T.create('dd', {'class':'shadow widget_contents', id:'901_content'}, [ $T.create('iframe', {marginheight:'0', marginwidth:'0', name:'wxButtonFrame', id:'wxButtonFrame', src:'http://btn.weather.ca/weatherbuttons/template7.php?placeCode=CAON1907&category0=Attractions&containerWidth=180&btnNo=&backgroundColor=blue&multipleCity=0&citySearch=0&celsiusF=C', align:'top', frameborder:'0', width:'180', scrolling:'no'}) ])		]);		$('sidebar_1').insertBefore(wDd, $('sidebar_1').firstChild); new YAHOO.wikia.ddObject(wDd.id); } }

$E.onDOMReady(weatherWidget);