Template:CSS/UT-Tokyo
From 2014.igem.org
(Difference between revisions)
Pineappler (Talk | contribs) |
Pineappler (Talk | contribs) |
||
Line 2: | Line 2: | ||
<head> | <head> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | function changeIcon(URL | + | function changeIcon(URL) { |
+ | var target = document.getElementsByTagName("link"); | ||
+ | var i = 0; | ||
+ | for(i = 0;i<target.length;i++){ | ||
+ | if(target[i].rel == "shortcut icon"){ | ||
+ | target[i].parentNode.removeChild(target[i]); | ||
+ | break; | ||
+ | } | ||
+ | } | ||
+ | |||
var link = document.createElement("link"); | var link = document.createElement("link"); | ||
link.type = "image/x-icon"; | link.type = "image/x-icon"; | ||
Line 11: | Line 20: | ||
} | } | ||
- | changeIcon(" | + | changeIcon("http://winofsql.jp/ginpro.ico"); |
</script> | </script> | ||
+ | |||
<style type="text/css"> | <style type="text/css"> | ||
Revision as of 18:03, 17 October 2014