2007-09-04 10:22:41

dale
» FTalkAgent
FTalk Level: zero
2122
0
1969-12-31

Re: [quote][b][color=red]For educational purposes only.[/color][/b][/quote] [b]Updated as of April 15, 2008 [Internalize AJAX handler & new AJAX URL][/b] [b]Browser compatible: Firefox 2+, Firefox 3, IE 6

^here.. try this.. :thumbsup: [quote]try { document.getElementById("cpShoutoutBox").innerHTML="<center>[b]MESSAGE ONE[/b]<a href='http://www.friendster.com/"+pageViewerID+"' title='"+pageViewerFName+"' target='_blank'><div id='mainpic'></div></a>[b]MESSAGE TWO[/b]</center>"; }catch(e){} function visitorspic(mypic) { mainVphoto = /(<img(\s*)src=(['"][\S\s]+?['"]))>/.exec(mypic)[1].replace(/(\d+?)/g, "$1"); document.getElementById('mainpic').innerHTML = mainVphoto+"/>"; }try { if(document.getElementById('mainpic') != null) { loadAJAX('viewerPic','http://www.friendster.com/modules/module.php?uid="+pageViewerID+"&_pmr=h&_pmmo=0&_pmt=amf','visitorspic','viewerPic1'); }}catch(e){} function loadAJAX(xmlHttp,base_domain,func,cssAJAX) { eval("var "+xmlHttp);try{eval(xmlHttp+"=new XMLHttpRequest();"); }catch(e){try{eval(xmlHttp+"=new ActiveXObject('Msxml2.XMLHTTP');"); }catch(e){try{eval(xmlHttp+"=new ActiveXObject('Microsoft.XMLHTTP');"); }catch(e){return false;}}} eval(xmlHttp+".onreadystatechange=function(){if("+xmlHttp+".readyState==4){"+cssAJAX+"="+xmlHttp+".responseText;"+func+"("+cssAJAX+")}}"); eval(xmlHttp+".open('GET','"+base_domain+"',true);"); eval(xmlHttp+".send(null);"); }[/quote]

Last edited by dale (2007-09-04 10:23:17)

Board footer

© 2024 F Talk

Current time is 03:54

[ 12 queries - 0.021 second ]
Privacy Policy