
Code:
- <script>
-
- var recent = '5';
- var ShoutOutmin = 0;
-
- var g = 0
- var ShoutOutList = []
- //SoutOutList[g++] = ["username","display name","message"];
- ShoutOutList[g++] = ["admin","IonFortuna","ShoutOuts will be posted here"];
-
- function ShoutOutButton(){
-
- var SObutton = document.createElement('a');
-
- SObutton.onclick = function(){
-
- get('ShoutOutTop','id').style.display = (get('ShoutOutTop','id').style.display=='none')? '' : 'none';
- get('ShoutOuts','id').style.display = (get('ShoutOuts','id').style.display=='none')? '' : 'none';
-
- };
-
- SObutton.href = 'javascript: void(0);';
- SObutton.appendChild(document.createTextNode('ShoutOuts'));
- get('pms','id').firstChild.insertBefore(document.createTextNode(' :: '),get('pms','id').firstChild.firstChild);
- get('pms','id').firstChild.insertBefore(SObutton,get('pms','id').firstChild.firstChild);
-
- }
-
- function ShoutOut(){
-
- var ShoutOut = "<table border='0' class='border' align='center' cellspacing='1' >";
- ShoutOut += "<tr>";
- ShoutOut += "<td class='title1' align='center'>Poster</td>";
- ShoutOut += "<td class='title1' align='center'>Message</td>";
- ShoutOut += "</tr>";
- ShoutOut += "<tr>";
-
- ShoutOutDisplay();
-
- ShoutOut += "</tr>";
- ShoutOut += "<tr>";
- ShoutOut += "<td cols='2'>";
-
- if (SOmin > 0){
-
- ShoutOut += "<a href='javascript: void(0)' onclick='ShoutOutUpdate(-1)'>Up</a>";
-
- } else {
-
- ShoutOut += "Up";
-
- }
-
- ShoutOut += " - ";
-
- if (Somin+5 < g){
-
- ShoutOut += "<a href='javascript: void(0)' onclick='ShoutOutUpdate(1)'>Down</a>";
-
- } else {
-
- ShoutOut += "Down";
-
- }
-
- ShoutOut += "</td>";
- ShoutOut += "</tr>";
- ShoutOut += "</table>";
-
- getElementById("ShoutOuts").innerHTML = ShoutOut;
-
- }
-
- function ShoutOutDisplay(){
-
- ShoutOut += "<td class='window1' align='right'><a href='http://theanimehideout.vforums.co.uk/action/view_profile/user/admin'>IonFortuna</a></td>";
- ShoutOut += "<td class='window1' align='left'>ShoutOuts will be posted here</td>";
-
- }
-
-
- function ShoutOutDisplayEdit(){
-
- for(i=ShoutOutmin+recent;i>ShoutOutmin;i--){
-
- ShoutOut += "<td class='window1' align='right'><a href='/action/view_profile/user/" +ShoutOutList[i][0]+ "'>" +ShoutOutList[i][1]+ "</a></td>";
- ShoutOut += "<td class='window1' align='left'>" +ShoutOutList[i][2]+ "</td>";
-
- }
-
- }
-
- function ShoutOutUpdate(ShoutOutdir){
-
- ShoutOutmin += ShoutOutdir;
- ShoutOut();
-
- }
-
- </script>