|
|
Line 2: |
Line 2: |
| <head> | | <head> |
| <script type="text/javascript" language="javascript"> | | <script type="text/javascript" language="javascript"> |
- | <!-- | + | |
- | function current(actual,banner){
| + | |
- | document.getElementById(actual).setAttribute("class", "current");
| + | |
- | document.getElementById("headerBanner").setAttribute("src",banner);
| + | |
- | document.getElementById("linkHeaderBanner").setAttribute("href",banner);
| + | |
- | }
| + | |
- | | + | |
- | function showTweets(){
| + | |
- | var twitter = document.getElementById("twitter");
| + | |
- | twitter.setAttribute("onclick","closeTweets()");
| + | |
- | | + | |
- | var twitterContent = document.createElement("div");
| + | |
- |
| + | |
- | twitterContent.setAttribute("id","twitter_content");
| + | |
- | var twitter_list = document.createElement("ul");
| + | |
- | twitter_list.setAttribute("id","twitter_update_list");
| + | |
- |
| + | |
- | twitterContent.appendChild(twitter_list);
| + | |
- | | + | |
- | var script1 = document.createElement("script");
| + | |
- | script1.setAttribute("id","script1");
| + | |
- | script1.setAttribute("type","text/javascript");
| + | |
- | script1.setAttribute("src","http://twitter.com/javascripts/blogger.js");
| + | |
- | | + | |
- | var script2 = document.createElement("script");
| + | |
- | script2.setAttribute("id","script2");
| + | |
- | script2.setAttribute("type","text/javascript");
| + | |
- | script2.setAttribute("src","http://twitter.com/statuses/user_timeline/iGEMupoSevilla.json?callback=twitterCallback2&count=5");
| + | |
- | | + | |
- | twitter.appendChild(twitterContent);
| + | |
- | twitter.appendChild(script1);
| + | |
- | twitter.appendChild(script2);
| + | |
- | }
| + | |
- | | + | |
- | function closeTweets(){
| + | |
- | var twitter = document.getElementById("twitter");
| + | |
- | var twitterContent = document.getElementById("twitter_content");
| + | |
- | var script1 = document.getElementById("script1");
| + | |
- | var script2 = document.getElementById("script2");
| + | |
- | twitter.setAttribute("onclick","showTweets()");
| + | |
- | twitter.removeChild(twitterContent);
| + | |
- | twitter.removeChild(script1);
| + | |
- | twitter.removeChild(script2);
| + | |
- | | + | |
- | }
| + | |
- | -->
| + | |
| </script> | | </script> |
| <style type="text/css"> | | <style type="text/css"> |
Line 190: |
Line 145: |
| <div class="header"> | | <div class="header"> |
| | | |
- | <img id="logo" class="logo" src="http://4.bp.blogspot.com/_nLZy6cZ8AJw/RcNk2vYMbHI/AAAAAAAAAKg/yGu6hnPhKC4/s320/heart3.jpg" alt="Bacterial Crowding Logo" /></a> | + | <img id="logo" class="logo" src="http://4.bp.blogspot.com/_nLZy6cZ8AJw/RcNk2vYMbHI/AAAAAAAAAKg/yGu6hnPhKC4/s320/heart3.jpg"></a> |
| <a id="linkHeaderBanner" href=""><img id="headerBanner" class="headerBanner" src="" alt="Home Banner" /></a> | | <a id="linkHeaderBanner" href=""><img id="headerBanner" class="headerBanner" src="" alt="Home Banner" /></a> |
| | | |