rilpoint_mw113

Template:Tech Events

(Difference between revisions)
Line 44: Line 44:
function customizePage(){
function customizePage(){
-
alert(".net");
 
var headingsArray = document.getElementsByTagName('h3');
var headingsArray = document.getElementsByTagName('h3');
var pageType=document.getElementsByClassName('justToExtractPageType');
var pageType=document.getElementsByClassName('justToExtractPageType');
Line 51: Line 50:
var eventHeadingColor="#000000";
var eventHeadingColor="#000000";
-
if(pType=="Biotechnology")
+
if(pType=="Biotechnology"){
-
eventHeadingColor='#017A37';
+
eventHeadingColor='#017A37';}
-
if(pType=="Food Processing")
+
if(pType=="Food Processing"){
-
eventHeadingColor='#AF9736';
+
eventHeadingColor='#AF9736';}
-
if(pType=="Non-conventional Energy")
+
if(pType=="Non-conventional Energy"){
-
eventHeadingColor='#B02C51';
+
eventHeadingColor='#B02C51';}
-
if(pType=="Ozone Layer Protection")
+
if(pType=="Ozone Layer Protection"){
-
eventHeadingColor='#2388BF';
+
eventHeadingColor='#2388BF';}
-
if(pType=="Waste Management")
+
if(pType=="Waste Management"){
-
eventHeadingColor='#9F4627';
+
eventHeadingColor='#9F4627';}
alert(eventHeadingColor);
alert(eventHeadingColor);
Line 80: Line 79:
the page has already been loaded */
the page has already been loaded */
function addLoadEvent(func) {
function addLoadEvent(func) {
-
alert("Tech");
 
   var oldonload = window.onload;
   var oldonload = window.onload;
   if (typeof window.onload != 'function') {
   if (typeof window.onload != 'function') {
Line 93: Line 91:
   }
   }
}
}
-
alert("Monitor");
 
addLoadEvent(customizePage);
addLoadEvent(customizePage);
</script></html>
</script></html>

Revision as of 06:11, 29 September 2010

[[_Tech_Events_Archive_}}}|Archive }}}]]
[[Category:]]

[[Category:]]