Header
From Bloggerhacks
(Difference between revisions)
Singpolyma (Talk | contribs) |
Singpolyma (Talk | contribs) |
||
Line 25: | Line 25: | ||
var links = document.getElementsByTagName('a'); | var links = document.getElementsByTagName('a'); | ||
for(var i in links) { | for(var i in links) { | ||
- | if(links[i].href == 'http://editthis.info/bloggerhacks/FreshTags:Hack') | + | if(typeof(links[i]) == 'object' && links[i].href == 'http://editthis.info/bloggerhacks/FreshTags:Hack') |
links[i].parentNode.innerHTML = '<div id="freshtags_tags"><i>Loading...<\\/i><\\/div><div id="freshtags_items"><\\/div>'; | links[i].parentNode.innerHTML = '<div id="freshtags_tags"><i>Loading...<\\/i><\\/div><div id="freshtags_items"><\\/div>'; | ||
}//end for i in links | }//end for i in links |
Revision as of 19:12, 16 January 2007
<link rel="shortcut icon" href="" />
<style type="text/css"> /* Notes: -You must log as admin to edit this page -Whatever you enter in this page will be added to the html in the header after the standard style sheet, so you can override styles. -if you want your code to look nice on this page, put a space at the beginning of each line -This is the default style sheet that you can override : http://editthis.info/wiki/skins/monobook/main.css For example uncomment this next section to turn all the text green: */ /* body { color: green; } */ </style>
<script type="text/javascript"> //<![CDATA[
function freshtags_mediawiki_hack() { var links = document.getElementsByTagName('a'); for(var i in links) { if(typeof(links[i]) == 'object' && links[i].href == 'http://editthis.info/bloggerhacks/FreshTags:Hack')links[i].parentNode.innerHTML = '