inherit
143665
wildgoosespeeder wildgoosespeeder wildgoosespeeder
0
Jun 14, 2018 5:59:55 GMT -8
wildgoosespeeder
ProBoards V5 be trippin'. I'm disoriented. :P
4,393
August 2009
wildgoosespeeder
|
Post by wildgoosespeeder on Apr 14, 2010 13:56:12 GMT -8
When hovering over the board icon with your mouse, it displays "[/li][li]" for new posts and "[ ]" for no new posts. This simple code aims to fix that. Also works for sub-boards. Text is customizable in red. PreviewGlobal Footer (Preferably below all other codes and HTML in the Global Footer) <script language="javascript"> /*Board Icon Alt/Title Fix by wildgoosespeeder*/ //Customization var newPosts = "New Posts"; var noNewPosts = "No New Posts";
//Don't edit below var td = document.body.getElementsByTagName("td"); for(t = 0; t < td.length; t++) { if(td[t].width == "8%" && td[t+1].width == "66%" && td[t+1].getElementsByTagName("a")[0].href.match(/board=/i)) { if(td[t].getElementsByTagName("img")[0].alt == " [/li][li]" || td[t].getElementsByTagName("img")[0].title == "[/li][li]") { td[t].getElementsByTagName("img")[0].alt = newPosts; td[t].getElementsByTagName("img")[0].title = newPosts; } if(td[t].getElementsByTagName("img")[0].alt == "[ ]" || td[t].getElementsByTagName("img")[0].title == "[ ]") { td[t].getElementsByTagName("img")[0].alt = noNewPosts; td[t].getElementsByTagName("img")[0].title = noNewPosts; } } } </script>[/tt][/pre]
|
|