inherit
37852
0
Oct 29, 2007 21:32:58 GMT -8
♥Maygan♥
1,266
February 2005
zangoose
|
Post by ♥Maygan♥ on Jun 19, 2005 9:06:30 GMT -8
In the coding database, there is ths code:
<script type="text/javascript"> <!--
// New/No new PM button in menu
// Image to show there are new private messages var newiM = "http://img./v638/Fugyuby/newpms.gif";
// Image to show there are no new private messages var noiM = "http://img./v638/Fugyuby/none.gif";
var imLink = document.createElement("a"); var imImg = document.createElement("img"); var imCell = document.getElementsByTagName("td").item(2).innerHTML;
imLink.href = "index.cgi?action=im"; imImg.border = "0";
if(imCell.match(/you have <.+?>, (\d+) /i)){ switch(RegExp.$1){ case "0" : imImg.src = noiM; imImg.title = "You have no new private messages."; break; case "1" : imImg.src = newiM; imImg.title = "You have 1 new private message."; break; default : imImg.src = newiM; imImg.title = "You have " + RegExp.$1 + " new private messages."; } imLink.appendChild(imImg); document.getElementsByTagName("td").item(5).appendChild(imLink); }
//--> </script>
As you can see, I tried to change all the PMs to iMs, but the code still is not working. It is supposed to create a button for checking pms. Can someone help?
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Jun 19, 2005 12:37:52 GMT -8
Grab the code again, all you need to change are the first 2 variables in the top of the script. No need to alter the name of the variables, you just need to add the 2 urls of the images
|
|
inherit
37852
0
Oct 29, 2007 21:32:58 GMT -8
♥Maygan♥
1,266
February 2005
zangoose
|
Post by ♥Maygan♥ on Jun 19, 2005 15:31:13 GMT -8
Thanks!
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Jun 19, 2005 15:32:46 GMT -8
No problem
|
|