15-01-2004, 16:08
|
#1
|
|
Inactive
Join Date: Jun 2003
Location: Essex
Age: 38
Services: Sky multiroom (Sky Q)
Sky Fibre Unlimited
Sky Landline
Posts: 8,851
|
Javascript
Hi, i want to add a link so that people can chat to me via MSN Messenger. I want to add this link on my website but only know basic coding. I don't know how to write javascript in html.
Can someone please help me?
Thanks
WNA
|
|
|
15-01-2004, 16:44
|
#2
|
|
Inactive
Join Date: Jun 2003
Location: Warrington ntl:81304 Altitude: 12m (and falling)
Posts: 4,499
|
Re: Javascript
Try this
Code:
<a href="javascript:MsgrApp.LaunchIMUI('wayneaustin96@hotmail.com')">Click this</a>
...but without those underscores
|
|
|
15-01-2004, 16:50
|
#3
|
|
Inactive
Join Date: Jul 2003
Location: Eglinton, Co. Derry
Posts: 7,640
|
Re: Javascript
Quote:
|
Originally Posted by altis
Try this
Code:
<a href="javascript:MsgrApp.LaunchIMUI('wayneaustin96@hotmail.com')">Click this</a>
...but without those underscores 
|
That's not going to work on it's own, it'll just throw up javascript errors, my IE is going spastic at the moment so this isn't working for me, but if someone else could test it.
Code:
<html>
<body>
<object classid="clsid:F3A614DC-ABE0-11d2-A441-00C04F795683"
codebase="#Version=2,0,0,83" codetype=application/x-oleobject id=MsgrObj
width=0 height=0>
</object>
<OBJECT classid="clsid:FB7199AB-79BF-11d2-8D94-0000F875C541"
codeType=application/x-oleobject id=MsgrApp width=0
height=0></OBJECT>
<font face="Arial" size="2"><b>
<SCRIPT LANGUAGE="JavaScript">
<!--
function stopError() { return true; }
window.onerror = stopError;
// -->
</script>
<a href=javascript:MsgrApp.LaunchAddContactUI("youremailaddresshere")>
Click here to add this user to your msn</a>
<a id=â€ÂÂÂlll†href=javascript:MsgrApp.LaunchIMUI("youremailaddresshere")>
Click here to chat to this user on msn</a>
</body>
</html>
|
|
|
15-01-2004, 17:04
|
#4
|
|
Inactive
Join Date: Jun 2003
Location: Essex
Age: 38
Services: Sky multiroom (Sky Q)
Sky Fibre Unlimited
Sky Landline
Posts: 8,851
|
Re: Javascript
Quote:
|
Originally Posted by Bifta
That's not going to work on it's own, it'll just throw up javascript errors, my IE is going spastic at the moment so this isn't working for me, but if someone else could test it.
Code:
<html>
<body>
<object classid="clsid:F3A614DC-ABE0-11d2-A441-00C04F795683"
codebase="#Version=2,0,0,83" codetype=application/x-oleobject id=MsgrObj
width=0 height=0>
</object>
<OBJECT classid="clsid:FB7199AB-79BF-11d2-8D94-0000F875C541"
codeType=application/x-oleobject id=MsgrApp width=0
height=0></OBJECT>
<font face="Arial" size="2"><b>
<SCRIPT LANGUAGE="JavaScript">
<!--
function stopError() { return true; }
window.onerror = stopError;
// -->
</script>
<a href=java_script_:MsgrApp.LaunchAddContactUI("youremailaddresshere")>
Click here to add this user to your msn</a>
<a id=â€ÂÂÂlll†href=java_script_:MsgrApp.LaunchIMUI("youremailaddresshere")>
Click here to chat to this user on msn</a>
</body>
</html>
|
do i need to insert this on a fresh page?
|
|
|
15-01-2004, 17:06
|
#5
|
|
Inactive
Join Date: Jul 2003
Location: Eglinton, Co. Derry
Posts: 7,640
|
Re: Javascript
just stick whatever's between the body tags wherever you need it.
|
|
|
15-01-2004, 17:08
|
#6
|
|
Inactive
Join Date: Oct 2003
Location: Manchester
Age: 49
Services: VM: 120M Broadband,
TV + Landline
Posts: 471
|
Re: Javascript
|
|
|
15-01-2004, 17:16
|
#7
|
|
Inactive
Join Date: Jun 2003
Location: Essex
Age: 38
Services: Sky multiroom (Sky Q)
Sky Fibre Unlimited
Sky Landline
Posts: 8,851
|
Re: Javascript
Quote:
|
Originally Posted by Fawkes
|
That site was confusing and i have googled as well, with no luck.
|
|
|
15-01-2004, 17:24
|
#8
|
|
Inactive
Join Date: Oct 2003
Location: Manchester
Age: 49
Services: VM: 120M Broadband,
TV + Landline
Posts: 471
|
Re: Javascript
you could always nick to source code for this out of vBulletin or PM a mod and beg (did I say that out loud!  )
|
|
|
15-01-2004, 17:33
|
#9
|
|
Inactive
Join Date: Jun 2003
Location: Warrington ntl:81304 Altitude: 12m (and falling)
Posts: 4,499
|
Re: Javascript
Quote:
|
Originally Posted by Fawkes
you could always nick to source code for this out of vBulletin or PM a mod and beg (did I say that out loud!  )
|
...or click on your Messanger icon, right-click on the pop-up and then select 'View Source'. You'll just need to work out which bits you need and which you can leave out.
The 'View Source' facility is very useful for learning HTML.
|
|
|
15-01-2004, 17:42
|
#10
|
|
Inactive
Join Date: Oct 2003
Location: Manchester
Age: 49
Services: VM: 120M Broadband,
TV + Landline
Posts: 471
|
Re: Javascript
Yes but it's not very good for PHP.
|
|
|
15-01-2004, 19:49
|
#11
|
|
Inactive
Join Date: Jul 2003
Location: Eglinton, Co. Derry
Posts: 7,640
|
Re: Javascript
Quote:
|
Originally Posted by Fawkes
Yes but it's not very good for PHP.
|
As far as I know the PHP only populates the email address from the forum database.
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 18:04.
|