|
Therefore, "window" I wonder if there's a document.name....
|
|
|
|
Just uses window.name Unfortunately, it only works until you close the tab (in FF) or the window. I open most of my links in new tabs so if it was used for something else, it wouldn't work for me XD. Nice job though... I think ;P
|
|
|
|
Nice, I didn't even know there was a moveRow function.
|
|
|
|
I said that you helped me but if you really want to, I can take it out. Oops, didn't read that line. Never mind then. lol That's okay
|
|
|
|
I said that you helped me but if you really want to, I can take it out.
Last Edit: Nov 6, 2005 4:30:52 GMT by hpmad
|
|
|
|
good job hp_mad I never thought you would say that.
|
|
|
|
This code can be useful for making info center hacks. Each one of these loops grab a certain info from the info center. You can use innerHTML to replace this info in the info center. <script type="text/javascript"> var td = document.getElementsByTagName('td');
//Total Topics for(t=0;t<td.length;t++){ if(td[t].className.match(/catbg/i) && td[t].innerHTML.match(/Forum Statistics/i)){ var totalTopics = (td[t+2].innerHTML.match(/Total Topics: (\d+)(,\d+)? &/i)) ? RegExp.$1+RegExp.$2: ''; }}
//Total Posts for(t=0;t<td.length;t++){ if(td[t].className.match(/catbg/i) && td[t].innerHTML.match(/Forum Statistics/i)){ var totalPosts = (td[t+2].innerHTML.match(/Total Posts: (\d+)(,\d+)?<br/i)) ? RegExp.$1+RegExp.$2: ''; }}
//Last Post for(h=0;h<td.length;h++){ if(td[h].align=="left" && td[h].vAlign=="top" && td[h].width=="60%" && td[h].innerHTML.match(/Total Topics:/)){ var splitLPost = td[h].innerHTML.split("Last Updated Topic: ")[1]; var splitLPost2 = splitLPost.split("<br>")[0]; var lastPost = splitLPost2.split("\(")[0]; }}
//Total Members for(t=0;t<td.length;t++){ if(td[t].className.match(/catbg/i) && td[t].innerHTML.match(/Forum Statistics/i)){ var totalMembers = (td[t+2].innerHTML.match(/Total Members: (.+?)<br/i)) ? RegExp.$1:''; var newMember = (td[t+2].innerHTML.match(/Newest Member: (.+?)<\/a>/i)) ? RegExp.$1:''; }}
//Newest Member for(t=0;t<td.length;t++){ if(td[t].className.match(/catbg/i) && td[t].innerHTML.match(/Forum Statistics/i)){ var newMember = (td[t+2].innerHTML.match(/Newest Member: (.+?)<\/a>/i)) ? RegExp.$1: ''; }}
//Users Online for(t=0;t<td.length;t++){ if(td[t].className.match(/catbg/i) && td[t].innerHTML.match(/Users Online/i)){ var SusersOn = td[t+2].innerHTML.split(/<br>/i)[1]; var usersOn = SusersOn.split(/<\/td>/i)[0]; var membersOn = (td[t+2].innerHTML.match(/(\d+) Member/i)) ? RegExp.$1: ''; var guestsOn = (td[t+2].innerHTML.match(/(\d+) Guest/i)) ? RegExp.$1: ''; var staffOn = (td[t+2].innerHTML.match(/(\d+) Staff/i)) ? RegExp.$1: ''; }} </script>Well I was making an info center code for nooki and I had some problems so hey helped out quite a bit. VariablestotalTopics - total topics totalPosts - total posts totalMembers - total members newMember - newest member lastPost - last post membersOn - # of members online guestsOn - # of guests online StaffOn - # of staff online usersOn - list of users online
Last Edit: Mar 12, 2006 23:52:59 GMT by hpmad
|
|
|
|
Yeah. How hard was it to make? BTW: hp.mad_, check your PMs at CF. Ummm not to get off topic here, but: I don't have any new pms if you send me something, resend it lol.
|
|
|
|
That is nice!!! I like the opacity thing.s
|
|
|
|
Pretty cool IE sucks, like I said before, Mozilla should take over the internet and make Firefox the main browser
|
|
|
|
Nice one I never knew there wasn't a getElementByClassName
|
|
|
|
Nice Could be useful for image slides for projects of something...
|
|
|
|
Nice...
|
|
|
|
AEWSOMENESS w00t!!!!! XD funny funny funny
i hate goldfish too but thatt convo made me want tto eat some XD
|
|
|
|
guide to spamming? AWESOMENESS!!!!!!!!!!
|
|
|