OpenBC UserImages MouseOver

By louis Last update Jun 6, 2007 — Installed 2,409 times.

More img urls

in
Subscribe to More img urls 1 post, 1 voice

IzzySoft Scriptwright

I just noticed that a lot of imgs do not work. Here is an example:

small: https://www.xing.com/img/users/1/e/4/fb0105000....
big: https://www.xing.com/img/users/1/e/4/fb0105000....

as you can see, there is an additional ",\d" introduced. To make the script finding those, too:

var s = imgName.search(/\/img\/users\/.+\_s(1|2|3)?(\,\d|)\.(jpg|gif|png)$/);

and:

newImg.src=this.src.replace(/\_s(1|2|3)?/, "");

With these two changes, it seems to work fine here. Though you might want to improve the second change to be more precise (including the possible ",\d" addition as a back-reference - I'm not that good in it). Just to be on the safe side ;)

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel