Please login or register. Welcome to the Studio, guest!


Quick Links:



hpmad

hpmad Avatar



858


September 2005
Therefore, "window" :P

I wonder if there's a document.name....

hpmad

hpmad Avatar



858


September 2005
Just uses window.name :P 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

hpmad

hpmad Avatar



858


September 2005
Nice, I didn't even know there was a moveRow function.

hpmad

hpmad Avatar



858


September 2005
hey said:
hpmad said:
:P 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. :P


lol That's okay :D

hpmad

hpmad Avatar



858


September 2005
:P 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

hpmad

hpmad Avatar



858


September 2005
crazyj said:
good job hp_mad :P



:P I never thought you would say that.

hpmad

hpmad Avatar



858


September 2005
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.

Variables
totalTopics - 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

hpmad

hpmad Avatar



858


September 2005
g0alieb0y said:
Yeah. How hard was it to make?

BTW: hp.mad_, check your PMs at CF. :P


Ummm not to get off topic here, but: I don't have any new pms :-/ if you send me something, resend it lol.

hpmad

hpmad Avatar



858


September 2005
O_o That is nice!!! I like the opacity thing.s

hpmad

hpmad Avatar



858


September 2005
Pretty cool :D IE sucks, like I said before, Mozilla should take over the internet and make Firefox the main browser :P

hpmad

hpmad Avatar



858


September 2005
Nice one :D I never knew there wasn't a getElementByClassName O_o

hpmad

hpmad Avatar



858


September 2005
Nice :D Could be useful for image slides for projects of something...

hpmad

hpmad Avatar



858


September 2005
Nice... :D

hpmad

hpmad Avatar



858


September 2005
AEWSOMENESS w00t!!!!! XD funny funny funny

i hate goldfish too but thatt convo made me want tto eat some XD

hpmad

hpmad Avatar



858


September 2005
guide to spamming? AWESOMENESS!!!!!!!!!!