Reply
Old 07-01-2007, 02:39 PM Im links
dansgalaxy's Avatar
Eat, Sleep, Code

Posts: 6,174
Name: Dan
Location: Swindon
hi,

im planning to use some direct IM links on my page.

Ill show a couple of example so u no what i mean.
Add me to their messenger link:
Code:
a href="msnim:add?contact=dansgalaxy@hotmail.co.uk">Add me on MSN </a>
Add me to their messenger for Yahoo
Code:
<a href="ymsgr:addfriend?dansgalaxy@hotmail.co.uk">Add me on Yahoo Messenger</a>
when i just did a page, i noticed that the msn worked but th yahoo didnt, because idony have yahoo messenge installed.

So how would i have a lil javsscript pop up come up and saying You dont have yahoo/msn messenger installed.
if they dont haveit?

because if they dont it goes to page cannot be displayed...

so i basically want to e this.

Thanks,
dan
__________________
Personal UK Webhosting
Get 25% of ANY shared package for life ~ Promo: webmaster-talk (only for members!)
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
When You Register, These Ads Go Away!
Old 07-01-2007, 03:20 PM Re: Im links
Riane's Avatar
Super Talker

Posts: 149
Name: Jordan
Location: Chicago, IL
If they don't have MSN/Yahoo installed, most people with common sense would know that clicking on those links would do nothing.

Why not just have a text notation on your site, versus javascript? "If you do not have either of those programs installed, the links will not work."
Riane is offline
Reply With Quote
View Public Profile Visit Riane's homepage!
 
Old 07-01-2007, 03:22 PM Re: Im links
dansgalaxy's Avatar
Eat, Sleep, Code

Posts: 6,174
Name: Dan
Location: Swindon
I know and i will have that.

its just for stupid people.
__________________
Personal UK Webhosting
Get 25% of ANY shared package for life ~ Promo: webmaster-talk (only for members!)
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Old 07-01-2007, 03:45 PM Re: Im links
Mooofasa's Avatar
Defies a Status

Posts: 1,612
Name: Michael (mik) Land
Location: England
Quote:
Originally Posted by dansgalaxy View Post
I know and i will have that.

its just for stupid people.
Even stupid people will realise.
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Old 07-01-2007, 06:56 PM Re: Im links
dansgalaxy's Avatar
Eat, Sleep, Code

Posts: 6,174
Name: Dan
Location: Swindon
OK! Lol... but CAN it be done...
__________________
Personal UK Webhosting
Get 25% of ANY shared package for life ~ Promo: webmaster-talk (only for members!)
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Old 07-02-2007, 05:15 PM Re: Im links
PC Catastrophe's Avatar
Super Talker

Latest Blog Post:
Google Chrome Release
Posts: 113
Name: Brandy
Location: Indiana
I do not know about the javascript, but since it is for "stupid people"...
How about a redirect to an installation page? It would encourage people to install it.
PC Catastrophe is offline
Reply With Quote
View Public Profile Visit PC Catastrophe's homepage!
 
Old 07-02-2007, 05:38 PM Re: Im links
dansgalaxy's Avatar
Eat, Sleep, Code

Posts: 6,174
Name: Dan
Location: Swindon
yea thinking about it that would be much better... ok then...

(i only said javscript because i guessed tahst what u would use..)

right ok. so heres what im thinking

somehow detect if they have the program (somehow test if a link which has the protical of msnim returns true and it gets a page or false it returns a cant be found thing.)

then do a if else on the link? so soemthing like
PHP Code:
$software "what ever code/script to see if they have the software...";
 
if (
$software == TRUE)
{
echo 
'<a href="msnim:add?contact=dansgalaxy@hotmail.co.uk">Add me on MSN </a>';
}
 
else {
echo 
'<a href=http://dansgalaxy.co.uk/getmsn.php title="it appears you don have msn im installed... click here to get it">Get MSN IM</a>';

ok... so anyideas on how to detect if they have it?...
is there a way to "test" the protacal (without any user display...).

Thanks for help
Dan
__________________
Personal UK Webhosting
Get 25% of ANY shared package for life ~ Promo: webmaster-talk (only for members!)
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Reply     « Reply to Im links
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.25535 seconds with 12 queries