Template:CalgaryHeader2

From 2009.igem.org

(Difference between revisions)
(New page: <html> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <title>University of Calgary</title> </head> <style> body{ background-color: #222222; font: 11px ...)
Line 91: Line 91:
</div>
</div>
-
<img src="http://i1001.photobucket.com/albums/af132/igemcalgary/header/1.png" width="965px" height="293px">
+
<script language="JavaScript">
 +
// Copyright 1996, Infohiway, Inc. (http://www.infohiway.com)
 +
// Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/
 +
<!--
 +
function adArray() {
 +
for (i=0; i*2<adArray.arguments.length; i++) {
 +
  this[i] = new Object();
 +
  this[i].src = adArray.arguments[i*2];
 +
  this[i].href = adArray.arguments[i*2+1];
 +
}
 +
this.length = i;
 +
}
 +
function getAdNum() {
 +
dat = new Date();
 +
dat = (dat.getTime()+"").charAt(8);
 +
if (dat.length == 1)
 +
  ad_num = dat%ads.length;
 +
else
 +
  ad_num = 0;
 +
return ad_num;
 +
}
 +
var ads = new adArray(
 +
"http://wcmprod2.ucalgary.ca/wcmsupport/files/wcmsupport/images/autumnnorman-b1.jpg",
 +
"http://wcmprod2.ucalgary.ca/wcmsupport/files/wcmsupport/images/autumn10norman-b1.jpg",
 +
"http://wcmprod2.ucalgary.ca/wcmsupport/files/wcmsupport/images/skyline.jpg",);
 +
var ad_num = getAdNum();
 +
document.write('');
 +
link_num = document.links.length-1;
 +
function rotateSponsor() {
 +
if (document.images) {
 +
  ad_num = (ad_num+1)%ads.length;
 +
  document.js_ad.src = ads[ad_num].src;
 +
  document.links[link_num].href = ads[ad_num].href;
 +
  setTimeout("rotateSponsor()",5000);
 +
}
 +
}
 +
setTimeout("rotateSponsor()",5000);
 +
// -->
 +
</script>
</div>
</div>

Revision as of 08:06, 18 September 2009

University of Calgary

UNIVERSITY OF CALGARY