revise code, 4 me! |
revise code, 4 me! |
Dec 28 2004, 05:59 PM
Post
#1
|
|
![]() Senior Member ![]() ![]() ![]() Group: Member Posts: 99 Joined: Dec 2004 Member No: 74,978 |
can ya'll help me to c if there is anything wrong with this code!
<!-- begin code provided by createblog.com --> <!-- begin code provided by createblog.com --> Code: <script language="javascript"> //chatterbox screen name tracker - xanga.com/add_ons function getXName() { for (var i = 0; i < document.links.length; i++) { if (document.links[i].href.substring(0,38)=="http://www.xanga.com/private/home.aspx") { var link = document.links[i]; var text = document.all ? link.innerText : link.text ? link.text : ''; return text; break; }} return null; } function getPopLink() { for (var i = 0; i < document.links.length; i++) { if (document.links[i].id=='chatterpopup') return document.links[i]; break; } return null; } xName = getXName(); if (xName != null && chatterbox == 'ok') { nameBox = document.forms['chatterform'].elements['name']; nameBox.value=xName; chatter_name = xName; urlBox = document.forms['chatterform'].elements['uurl']; if (urlBox) { urlBox.value='http://www.xanga.com/home.aspx?user=' + xName; } } else if (xName == null && chatterbox == 'ok') { nameBox = document.forms['chatterform'].elements['name']; nameBox.value='Log in'; nameBox.disabled=true; msgBox = document.forms['chatterform'].elements['msg']; msgBox.value='to post'; msgBox.disabled=true; postBtn = document.forms['chatterform'].elements['post']; postBtn.disabled = true; urlBox = document.forms['chatterform'].elements['uurl']; if (urlBox) { urlBox.value='to Xanga'; urlBox.disabled=true; } popLink = getPopLink(); if (popLink != null) { popLink.href = popLink.href + '&nopost=Log+in!!'; } } </script> <!-- end code provided by createblog.com --> <!-- end code provided by createblog.com --> is there sappose to be 2 begin and end code thingesss? |
|
|
|
MyChemicalRomance. it doesn't matter how many of these you have:
... Dec 28 2004, 06:09 PM
largosama d'you paste it in the website stats? Dec 28 2004, 06:11 PM
mona lisa that code might have something wrong with it. why ... Dec 28 2004, 06:16 PM
capt_insane no i didint pate it in web stats.....ill go try ri... Dec 28 2004, 06:22 PM
capt_insane omg.....i still didnt work in web stats
wats cB? Dec 28 2004, 06:25 PM
MyChemicalRomance. cB is createBlog, where your at RIGHT NOW. durr.. Dec 28 2004, 06:27 PM
capt_insane oooooooooooooo.........omg........lol........ok...... Dec 28 2004, 06:29 PM
Sherry_Vu what's the link to your xanga? it might help u... Dec 28 2004, 06:30 PM
capt_insane ok........here it is
------------>Ma Xanga... Dec 28 2004, 06:32 PM
Sherry_Vu it doesn't work because that code is for the f... Dec 28 2004, 06:35 PM
capt_insane ooooooo......ok...then ill change to flooble then... Dec 28 2004, 06:38 PM
Sherry_Vu QUOTE(capt_insane @ Dec 28 2004, 6:38 PM)oooo... Dec 28 2004, 06:40 PM![]() ![]() |