vForums Support :: Programming & Coding :: Programming Discussion :: Need help with my ShoutOut code I made myself - View Topic
 |  |
| Aiken Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/me-yat.jpeg) Posts: 333 Status: Offline Gender: Male Location: In a very lonely place, the domain of despair Age: 35 Joined:
pmskypemsnyahooxfire | Need help with my ShoutOut code I made myself (23rd Sep 08 at 5:45pm UTC) | | Header:
 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>
Footer:
 Code: - <script>
-
- ShoutOut();
-
- </script>
| |
vF forums: Perfect World RP BLEACH Universe - Under Construction / Testing Phase Xen Qarna RP - Stage I Vyren Entar Battle Network RP - Under Construction / Maintenance Mode Enabled the Final Anime Hideout |
| dog199200 Guest | Re: Need help with my ShoutOut code I made myself (29th Sep 08 at 2:13am UTC) | | OK well first it would really be nice to know what is wrong with it But why are you doing it with JS, I'm not sure if it would comply right when trying to read for accounts, giving that they don't have to input there own name. So many questions, no where to start so can you please give usd an idea of what its suppose to do as like all the features and stuff | |
| |
 |  |
|