|
Post by rhondairv on Apr 25, 2010 14:57:09 GMT -8
I would like a code that when there is a new post it blinks in the circled areas on the home page where all the boards are and inside where all the sub boards are. When you click on the blinking area it takes you right to the newest post made. Thanks for the consideration
|
|
|
Post by Wormopolis on Apr 25, 2010 19:53:18 GMT -8
quick question... did it let you choose a posting icon somehow? That should have been disabled for you... wtf...
I think I can do this though...
|
|
|
Post by Wormopolis on Apr 25, 2010 20:51:35 GMT -8
<script type="text/javascript"> <!-- // last post new post redux // concept by rhondairv // coding by Wormopolis - www.wormocodes.com// do not repost - keep header intact var newPostRegardless=true; //if you want link to last post to go to actual last post regardless if new for (tds=document.getElementsByTagName('td'), f=0; f<tds.length; f++) { if (tds[f].width=='24%' && tds[f].className.match(/windowbg/) && tds[f].getElementsByTagName('a')[0]) { lstpst=(tds[f].getElementsByTagName('a')[tds[f].getElementsByTagName('a').length-1]); newpstchk=tds[f].previousSibling.previousSibling.previousSibling.previousSibling; newpstchk=(newpstchk.firstChild.alt=='[/li][li]'); if (newpstchk) lstpst.innerHTML="<span class='blinky'>"+lstpst.innerHTML+"</span>"; if (newpstchk || newPostRegardless) lstpst.href=lstpst.href.replace(/display/,'gotonewpost'); } } function blinker() { for (ff=document.getElementsByTagName('span'), ffb=0; ffb<ff.length; ffb++) { if (ff[ffb].className=='blinky') ff[ffb].style.visibility=(ff[ffb].style.visibility=='hidden' ? '' : 'hidden'); } } var blinkwork=self.setInterval("blinker()", 1000); // --> </script>
|
|
|
Post by tunescool on Apr 25, 2010 21:21:21 GMT -8
cool, i was just looking at a code like this in the request archives at pbs that didnt work. nice idea rhondairv
|
|
|
Post by Wormopolis on Apr 25, 2010 21:36:36 GMT -8
the hard part was getting blink to work. normal blink HTML doesnt work in IE, so I had to write something special.
|
|
|
Post by rhondairv on Apr 26, 2010 4:05:33 GMT -8
|
|
|
Post by Silly Test Account on Apr 26, 2010 6:36:26 GMT -8
it can only know what is "new" to your computer based on what number the PBS server has stored as the last post you looked at in that thread. If you havent been to that thread in a long time, then "new" might have been reset. click the link a second time and it should take you to the last post. if someone makes a new post after that, it will take you to the first new post from then on.
its just the first time you click it, on a thread you havent been in for a long time, will it consider the first post to be the newest. I cant do anything about that. You have to take that up with management.
|
|
|
Post by rhondairv on Apr 26, 2010 9:51:19 GMT -8
OK, i understand that. Thanks so much for explaining that. It makes sense to me and i can quit obsessing over it now. lol
|
|
|
Post by rhondairv on Jan 13, 2011 19:23:03 GMT -8
I redid my homepage and for some reason even when i make a new post i get the flashing as if someone else made a new post. WEIRD. It didn't do it til i redid my homepage. hookieshookup.proboards.com/index.cgi
|
|
|
Post by Wormopolis on Jan 13, 2011 22:51:47 GMT -8
if you make posts in a sub-board the main board will still register it as a new post on the main page. visit the main board (above the sub-boards) and it will clear it
|
|
|
Post by Wormopolis on Jan 13, 2011 22:53:21 GMT -8
what did you do to "redo your homepage"?
|
|
|
Post by rhondairv on Jan 13, 2011 23:11:43 GMT -8
Sub Boards galore lol So it is me that made it go weird.
|
|