Romm Posted January 11, 2008 Posted January 11, 2008 (edited) Ok here it is: expandcollapse popup<body> <table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0"><tr><td valign="middle"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td height="57" colspan="3" valign="bottom" style="background: url('images/ui/ftop.gif') no-repeat center bottom" align="center"> <table cellpadding="0" cellspacing="0" border="0"><tr valign="top" nowrap> <td ><img src="images/int/tab02.gif" width="35" height="32" alt=""><br></td> <td class="tab2">Romm</td> <td ><img src="images/int/tab20.gif" width="35" height="32" alt=""><br></td> </tr></table> </td> </tr> <tr> <td _width="40%" class="fbgl" valign="top"> <div style="background: url('images/ui/bg-lt1.gif') no-repeat right top"><img src="images/d.gif" width="36" height="100" alt=""><br></div> </td><td width="603" rowspan="2" style="background: url('images/sand4.gif')" valign="top"> <table width="603" cellpadding="0" cellspacing="0" border="0"> <tr style="background: url('images/sand4.gif')"> <td width="300" valign="top"> <div style="height: 54px; background: url('/images/ui/zav.gif') no-repeat top"> <img src="images/d.gif" width="1" height="16" alt="" border="0"><br> <div class="artslot0" style="margin-left: 1px;"><img src="/images/d.gif" border=0></a><br></div><div class="artslot0" style="margin-left: 1px;"><img src="/images/d.gif" border=0></a><br></div><div class="artslot0" style="margin-left: 1px;"><img src="/images/d.gif" border=0></a><br></div><div class="artslot0" style="margin-left: 1px;"><img src="/images/d.gif" border=0></a><br></div><div class="artslot0" style="margin-left: 1px;"><img src="/images/d.gif" border=0></a><br></div><div class="artslot0" style="margin-left: 1px;"><img src="/images/d.gif" border=0></a><br></div><div class="artslot0" style="margin-left: 1px;"><img src="/images/d.gif" border=0></a><br></div><div class="artslot0" style="margin-left: 1px;"><img src="/images/d.gif" border=0></a><br></div></div> <script> AC_FL_RunContent( 'id','ui', 'name','ui', 'allowScriptAccess','always', 'codebase','http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0', 'width','300', 'height','428', 'src','images/swf/userinfo.swf?ux=1193218726', 'movie','images/swf/userinfo.swf?ux=1193218726', 'wmode','transparent', 'flashvars','PkPath=images%2Fswf%2Fpacks_sh%2F&SkPath=images%2Fswf%2Fskeletons%2F&MtPath=images%2Fswf%2Fmounts%2F&gender=1&lvl=3&const=501&sk=3&mount=0&[b]hp=69&hpMax=69&hpT=0&mp=69&mpMax=69[/b]&mpT=0 So what i want. Script must find hp, hpmax, mp, mpmax value. For example if hp=69&hpMax=69&hpT=0&mp=69&mpMax=69 (in html) I get $hp = 69 $hpmax = 69 $mp=69 $mpmax = 69 Edited January 11, 2008 by Romm
Bert Posted January 11, 2008 Posted January 11, 2008 I did this to get what I needed: $read = HTML code $sttc = StringInStr($read, '>Comments</font></u', 0);Marker in front of area of string I need - Needs to be unique! $Stringcutleft = StringTrimLeft($read, $sttc) $sttc2 = StringInStr($Stringcutleft, '</font>', 0, 3);Marker after the string I need - Needs to be unique or first occurance! $Stringcutleft2 = StringTrimLeft($Stringcutleft, $sttc2 + 6); Cuts the left side to the beginning of the string I need. $sttc3 = StringInStr($Stringcutleft2, '<FONT', 0) $stringlenth = StringLen($Stringcutleft2) $Stringcutright = StringTrimRight($Stringcutleft2, $stringlenth - ($sttc3 - 1))Cuts the right side to the end of the string I need. $Stringcutright is the string I needed Someone may have a better method, but this works. The Vollatran project My blog: http://www.vollysinterestingshit.com/
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now