15-01-2004, 16:08
|
#1
|
|
Eva Longoria Fan
Join Date: Jun 2003
Location: Essex
Age: 20
Services: BT,
Sky multiroom (Sky+ & HD),
UKOnline 8MB ADSL
Posts: 6,139
|
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
Last edited by MadGamer; 15-01-2004 at 16:25.
|
|
|
15-01-2004, 16:44
|
#2
|
|
the terminator
Join Date: Jun 2003
Location: Warrington ntl:81304 Altitude: 12m (and falling)
Posts: 3,698
|
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
|
|
cf.mega poster
Join Date: Jul 2003
Location: Derry
Posts: 7,597
|
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
|
|
Eva Longoria Fan
Join Date: Jun 2003
Location: Essex
Age: 20
Services: BT,
Sky multiroom (Sky+ & HD),
UKOnline 8MB ADSL
Posts: 6,139
|
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
|
|
cf.mega poster
Join Date: Jul 2003
Location: Derry
Posts: 7,597
|
Re: Javascript
just stick whatever's between the body tags wherever you need it.
|
|
|
15-01-2004, 17:08
|
#6
|
|
cf.addict
Join Date: Oct 2003
Location: Manchester
Age: 31
Services: VM: Landline, TV, 10MB....4MB....1MB...56K [depending on time of day]
Posts: 278
|
Re: Javascript
__________________
:: UK*CLAN :: 'It's only when you look at an ant through a magnifying glass on a sunny day that you realise how often they burst into flames.' -Harry Hill ::
|
|
|
15-01-2004, 17:16
|
#7
|
|
Eva Longoria Fan
Join Date: Jun 2003
Location: Essex
Age: 20
Services: BT,
Sky multiroom (Sky+ & HD),
UKOnline 8MB ADSL
Posts: 6,139
|
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
|
|
cf.addict
Join Date: Oct 2003
Location: Manchester
Age: 31
Services: VM: Landline, TV, 10MB....4MB....1MB...56K [depending on time of day]
Posts: 278
|
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!  )
__________________
:: UK*CLAN :: 'It's only when you look at an ant through a magnifying glass on a sunny day that you realise how often they burst into flames.' -Harry Hill ::
|
|
|
15-01-2004, 17:33
|
#9
|
|
the terminator
Join Date: Jun 2003
Location: Warrington ntl:81304 Altitude: 12m (and falling)
Posts: 3,698
|
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
|
|
cf.addict
Join Date: Oct 2003
Location: Manchester
Age: 31
Services: VM: Landline, TV, 10MB....4MB....1MB...56K [depending on time of day]
Posts: 278
|
Re: Javascript
Yes but it's not very good for PHP.
__________________
:: UK*CLAN :: 'It's only when you look at an ant through a magnifying glass on a sunny day that you realise how often they burst into flames.' -Harry Hill ::
|
|
|
15-01-2004, 19:49
|
#11
|
|
cf.mega poster
Join Date: Jul 2003
Location: Derry
Posts: 7,597
|
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.
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
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 +1. The time now is 15:36.
|