Menu
Hi, i’m new here and hope i can explain myself clearly,
i have a ezboard and want to use java script to put my name in the who’s online section even when i’m offline,
that way when members come to the board they think i’m actually there when i’m not,
i would appreciate any help, thanxx Amanda
>my idea for the script would be, if whoseonline is empty or does not include/display your username, the script writes your username within the whoseonline as if you are online, if whoseonline has your username in, do nothing.
<td bgcolor="#F5F5DC">
<div id="usersonline">
· <A HREF=http://pub39.ezboard.com/ufayevalentine930.showPublicProfile><FONT FACE="Verdana,Arial" SIZE=1>Faye Valentine930</FONT></A></div>
</td>
<script type="text/javascript">
function getUsers() {
online = document.getElementById("usersonline"); //get the reference to the <div>
if (!/Amanda360/.test(online.innerHTML)) { //test if your username is not in the <div>
online.innerHTML += " . <A HREF=http://pub39.ezboard.com/uamanda360.showPublicProfile><FONT FACE="Verdana,Arial" SIZE=1>Amanda360</FONT></A>"; //if not, append it to the end
}
}
window.onload = getUsers; //after page has loaded, run this getUsers function.
</script>
Note that you have to put a <div> around the contents of the users online with an id of "usersonline". The user that I have in there, are just the first one that was on when I visited that page... just to test it, and show you where the users need to go in the above code.<td bgcolor="#F5F5DC">
· <A HREF=http://pub39.ezboard.com/uandroidz1617181920.showPublicProfile><FONT FACE="Verdana,Arial" SIZE=1>Androidz1617181920</FONT></A> · <A HREF=http://pub39.ezboard.com/bhoshossurfshop.showLocalUserPublicProfile?login=animal2020><FONT FACE="Verdana,Arial" SIZE=1>Animal2020</FONT></A> · <A HREF=http://pub39.ezboard.com/uamanda360.showPublicProfile><FONT FACE="Verdana,Arial" SIZE=1>Amanda360</FONT></A>
</td>
<br> </font>
<font style="FONT-SIZE: 8pt" face="Arial">
<font color="#00CCFF"><span style="font-weight: 700">
</span***></font></font>
<font style="FONT-SIZE: 6pt" face="Arial" color="#980517">
</font><font style="FONT-SIZE: 12pt" face="Arial" color="#00CCFF"><br><br> </font>
<font style="FONT-SIZE: 9pt" face="Tahoma" color="#ffffff">
<marquee onmouseover="this.stop()" style="FILTER: Alpha(Opacity=100, FinishOpacity=0, Style=1, StartX=0, StartY=40, FinishX=0, FinishY=0)" onmouseout="this.start()" scrollAmount="1" scrollDelay="75" direction="up" width="116" height="61"><right><u></u><br><b>1.Discussion<br>1504<br><br>2.Mollusk<br>674<br><br>3.Kaworukun<br>481<br><br>4.Music<br>416<br><br>5.Anime RPG<br>303<br><br>6.Fantasy RPG<br>277<br><br>7.Wataru<br>221<br><br>8.Clancy Mcpretzel<br>203<br><br></right></marquee></font></span></p>
</td>
</table>
</center>
</div>
</td>
<td width="184" height="87" background="http://www.msnusers.com/_Secure/0RgAkA1QTl5Bq6M7jR*o0YrL*yQok3fo7ffjBU5*BrXQ9Zl7YaUKOThtV8!LP70AcLxiK6cWmNKerjvmvJF!jNivYn0sjsbObQS!HtEVDIC8/aba4.JPG?dc=4675422976502780378">
<div align="center">
<center>
<table width="179" height="10" cellspacing="1" style="border-collapse: collapse">
<tr>
<td width="12" height="11" bgcolor="#043D6A" align="center">
<span class="sidebartext">
<font face="Arial" style="font-size: 8pt" color="#FFFFFF">
</font>
<font style="FONT-SIZE: 8pt" face="Arial" color="#ffffff">
<br> </font>
<font style="FONT-SIZE: 8pt" face="Arial">
<font color="#00CCFF"><span style="font-weight: 700">
</span></font></font>
<font style="FONT-SIZE: 6pt" face="Arial" color="#980517">
</font><font style="FONT-SIZE: 12pt" face="Arial" color="#00CCFF"><br><br> </font>
<font style="FONT-SIZE: 9pt" face="Tahoma" color="#ffffff">
<marquee onmouseover="this.stop()" style="FILTER: Alpha(Opacity=100, FinishOpacity=0, Style=1, StartX=0, StartY=40, FinishX=0, FinishY=0)" onmouseout="this.start()" scrollAmount="1" scrollDelay="75" direction="up" width="116" height="61"><right><u></u><br><br> 1.Mollusk<br>24752<br><br>2.Clam mucus<br>22768<br><br>3.Kaworukun<br>2411<br><br>4.Wataru<br>1628<br><br>5.Sexy Amanda<br>1132<br><br>6.Clancy Mcpretzel<br>795<br><br>7.Rocker luke<br>397<br><br>8.Knives999<br>383<br><br>9.Twisted in Hell<br>307<br><br></right></marquee></font></span></p>
</td>
</table>
</center>
</div>
</td>
<td width="185" height="87" background="http://www.msnusers.com/_Secure/0RgDiAlUT2JBzJI02DLarvMy1UiYOcCaHVjGQSDaGNrD7ryqFAPG0rFaGAaUQcaUc1rVsbYS3mtWxdK22JhrW*nOBwhXBRaAePx4LX4ptiKk/aba5.JPG?dc=4675422976504768789" valign="top">
<div align="center">
<center>
<table width="178" cellspacing="1" style="border-collapse: collapse">
<tr>
<td width="165" height="24" align="left" valign="top">
<span class="sidebartext">
<font face="Arial" style="font-size: 8pt" color="#FFFFFF">
</font>
<font style="FONT-SIZE: 8pt" face="Arial" color="#ffffff">
<br> </font>
<font style="FONT-SIZE: 8pt" face="Arial">
<font color="#00CCFF"><span style="font-weight: 700">
</span></font></font>
<font style="FONT-SIZE: 6pt" face="Arial" color="#980517">
</font><font style="FONT-SIZE: 12pt" face="Arial" color="#00CCFF"><br><br> </font>
<font style="FONT-SIZE: 9pt" face="Tahoma" color="#ffffff">
<marquee onmouseover="this.stop()" style="FILTER: Alpha(Opacity=100, FinishOpacity=0, Style=1, StartX=0, StartY=40, FinishX=0, FinishY=0)" onmouseout="this.start()" scrollAmount="1" scrollDelay="75" direction="up" width="116" height="61"><right><u>MONDAY JUNE 16</u><br><br>1 YEAR ANNIVERSARY! -Melissa and i have been together for 1 entire year -i love her more now than i did then -i love you melissa -HAPPY 1 YEAR ANNIVERSARY</right></marquee></font></span></p>
</tr>
<tr>
<td width="165" height="10" align="left" valign="top">
</td>
</tr>
<tr>
<td width="165" height="4" align="left" valign="top">
</td>
</tr>
</table>
</center>
</div>
</td>
</tr>
</table>
</center>
</div>
</td>
<td><td width="165" height="128"< align="center"><!-- BEGIN WEBSIDESTORY CODE -->
</td>
</tr>
[i]Originally posted by pyro [/i]
[B]Well, I hate to tell you this, but you are going to have to go into the code that is running ez board and make the changes. I'm not familiar with ez board, so I can't tell you where that would be. [/B][/QUOTE]
0.1.9 — BETA 5.27