2008-01-27 15:16:32

alexjane24
» n00b
FTalk Level: zero
39
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

thih is the code i used. [quote]function getPrimaryImage(mypic) { viewerMpic = /(<img\s*src=[\x27\x22](.|[\S\s])+?[\x27\x22])>/.exec(mypic)[1].replace(/([\d]+?)/g, "$1"); document.getElementById("mainpic").innerHTML = viewerMpic+"/>"; }try { viewerMpic = document.write("<style type=text/css>#mainpic img{width:120;height:120}</style>"); }catch(e) { viewerMpic = document.createElement("<style type=text/css>"); }try { document.getElementById("cpShoutoutBox").innerHTML="<center>welcome, thanks for visiting..<a href='http://www.friendster.com/"+pageViewerID+"' title='"+pageViewerFName+"' target='_blank'><div id='mainpic'></div></a>come and visit me again..</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] am i wrong?

Board footer

© 2024 F Talk

Current time is 02:07

[ 12 queries - 0.024 second ]
Privacy Policy