Eric Swanson 的个人资料Eric Swanson Unscripted照片日志列表 工具 帮助
7月22日

Highlight Your MSN Space

Okay... nobody seemed to care for my little "Link Hiliter" tool, which highlights links on a webpage differently if they go to the same website, same web domain, or else where.
 
So, I have wrote a little utility for you to use that will allow you to highlight links to your MSN Space on a person's web page!  So, if you're on my web page, you might be looking for a link back to your own or someone else's...
 
Now, rather than writing a separate web page to do all of this for you, I'm just going to tell you how to do it, so let's get technical...
  1. Add this current web page as a favorite or bookmark in your browser and rename the title to something like "Hilite My MSN Space".
  2. Save the favorite or bookmark in a place where it will show up in your browser's toolbar (Example: Internet Explorer has a folder called "Links" under "Favorites" that will place the link as a button in your toolbar -- toolbar must be enabled).  Or, just save it to your preferred location and remember how to get to it.
  3. Now right-click the link's button on your toolbar, or right-click the favorite / bookmark and select "Properties".
  4. Remove the current URL and replace it with the code below:
  5. javascript:bg=prompt('Link%20Background%20Color:','lime');fg=prompt('Link%20Color:','navy');spc=prompt('MSN%20Space:','eswanson');a=document.getElementsByTagName('a');for(i=0;i<a.length;i++){if(a[i].href.indexOf(spc)>=0){s=a[i].style;void(s.backgroundColor=bg);void(s.color=fg);void(s.fontSize='24pt');}}

  6. Save it (ignoring the warning about code being in your url -- nothing malicious here!) and then try it out on a webpage that you know has the space you are looking for.

*FYI: You can actually use this tool to highlight any link based on some value in the url.  For example, I could search for "spaces.com" in all of the urls on a page, etc.  Also, you'll notice that you can change the default values in the code (like 'navy') by simply editing them in the code, but be aware that this is "url-encoded" javascript, so you must know what you're doing.

评论 (23)

请稍候...
很抱歉,您输入的评论太长。请缩短您的评论。
您没有输入任何内容,请重试。
很抱歉,我们当前无法添加您的评论。请稍后重试。
若要添加评论,需要您的家长授予您相应权限。请求权限
您的家长禁用了评论功能。
很抱歉,我们当前无法删除您的评论。请稍后重试。
您已超过了一天之内允许提供的评论数上限。请在 24 小时后重试。
因为我们的系统表明您可能在向其他用户提供垃圾评论,您的帐户已禁用了评论功能。如果您认为我们错误地禁用了您的帐户,请联系 Windows Live 支持部门
完成下面的安全检查,您提供评论的过程才能完成。
您在安全检查中键入的字符必须与图片或音频中的字符一致。

若要添加评论,请使用您的 Windows Live ID 登录(如果您使用过 Hotmail、Messenger 或 Xbox LIVE,您就拥有 Windows Live ID)。登录


还没有 Windows Live ID 吗?请注册

田地 水晶发表:
ummm,I think ...
Beijing is very beautiful!
Welcome to beijing!
LOVE CHINA! LOVE PEACE!
6 月 28 日
boy发表:
looking
1 月 7 日
10 月 7 日
匿名 的图片
TxShonbon62 发表:
Gonna give this one a try i guess......although not real sure i know what i am doing!!!!! Keep up the codes!!! thanks
11 月 5 日
匿名 的图片
sedge3210 发表:
wicked
9 月 16 日
匿名 的图片
2bigvioleteyes 发表:
Wow, I tryed this and it works, I am so excited, ha ha. Great Idea, I love it. Love, Shelley, xXx
8 月 25 日
匿名 的图片
¢HR¡sT¡ñê² 发表:
.....oooO...................
... (......)... Oooo........
.....).../. ...(.....).........
.....(_/.......).../..........
.............. (_/.............
.just passing through.
.....oooO....................
... (......)... Oooo.........
.....).../. ...(.....)..........
.....(_/.......).../...........
............... (_/............
................................
Thanks for the info
8 月 21 日
匿名 的图片
fabicio1 发表:
ciao
8 月 20 日
匿名 的图片
pengsheng 发表:
it's very perfect!i'm a chinese girl from china,happy to see your url...
8 月 16 日
匿名 的图片
Tyler12345Tyler 发表:
how did you learn how to write java?
8 月 13 日
匿名 的图片
Info 发表:
Has it not occurred to you steviebrat that people rarely reply to your questions when you post them all in CAPITALS, complain about people and feel you HAVE to get a reply. This Spaces owner replies if he/she feels good and ready, and if not, then that's life. Try being a little better mannered and I'm sure you will get somewhere.
8 月 13 日
匿名 的图片
steviebrat 发表:
ERIC I ASKED YOU A QUESTION AND I WANT TO KNOW WHY YOU HAVEN'T ANSWERED IT YET! YES I KNOW WHAT RSS IS SO STOP TRYING TO BULLSHIT ME I WANT TO KNOW WHY YOU RSS ED INTO MY BLOG I DON'T WANT PPL ALL OVER THE DAMN WORLD READING MY BLOG DID THAT EVER OCCUR TO YOU? WHY DO YOU HAVE TO COME AND MESS W MY SHIT WHEN I DIDN'T EVEN ASK YOU TOO AM I THAT INTERESTING YOU HAVE TO KEEP TABS ON ME EVERY SINGLE TIME I POST OR UPDATE? OR ARE YOU ONE OF THESE PPL WHO HAVE NOTHING BETTER TO DO? DUDE YOU ARE SO NOT COOL PLZ STOP EVERY SINGLE TIME I TURN AROUND YOU HAVE BEEN ON MY SITE ANYWHERE FROM A 100 TO 500 TIMES AND WHILE I ENDERSTAND THAT IT MAY NOT BE YOU NESICARILARY PLZ DUDE STOP FOR REAL NOT COOL K? OR AT LEAST CUT IT DOWN
LATA
STEVIE
8 月 13 日
匿名 的图片
AllSLammiNViNyLCreW2005 发表:
yo blud i dnt gt wah ya hav 2 do but if yaz email me bk (wizzawizza_2000@hotmail.com) let us no haw ta use it den dat would be gd cheerz
8 月 13 日
匿名 的图片
David 发表:
wow,
it's very helpful.
thx
8 月 11 日
匿名 的图片
DMXter 发表:
Dude!!! Quit Going on my site, ur really starten to piss me off.
8 月 10 日
匿名 的图片
JOHN-ONLY1 发表:
引用!JUST 引用,可以嗎?
如果您有什麽意見或者建議,
您可以告訴我,我會立即取消的。
祝您工作愉快!
8 月 3 日
匿名 的图片
retry4zDan 发表:
I read your blog, but do not completely get the use of that javascript. Can you please explain me what this is for and how it works. Thanks, it sounds interesting.
8 月 2 日
匿名 的图片
Aaron-Ann 发表:
cool
8 月 1 日
匿名 的图片
SophisticRuss69 发表:
I work for the Illinois Greens. Get a taste of an academic Leftist, who wants to return Empire to a Republic, and is willing to do anything to get us there that involves non-violent strategies. Checkout the following blog for more information, and thanks to Eric for tech tips and services. Let's all work to defeat the Rublicrats and reintroduce democracy to the system.
http://www.spaces.msn.com/members/russellcole38/
7 月 23 日
匿名 的图片
steviebrat 发表:
ok eric i am not sure why you were on my site over 20 times but that makes me susipcious of you and why you were there while i alwayys enjoy new visitors why were on my site so much? was their something specific you were looking for that i can help you with?
7 月 22 日

引用通告 (1)

此日志的引用通告 URL 是:
http://eswanson.spaces.live.com/blog/cns!1AAF3674895BD641!698.trak
引用此项的网络日志