Cable Forum

Cable Forum (https://www.cableforum.uk/board/index.php)
-   Internet Discussion (https://www.cableforum.uk/board/forumdisplay.php?f=25)
-   -   Javascript (https://www.cableforum.uk/board/showthread.php?t=6430)

MadGamer 15-01-2004 16:08

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

altis 15-01-2004 16:44

Re: Javascript
 
Try this

Code:

<a href="javascript:MsgrApp.LaunchIMUI('wayneaustin96@hotmail.com')">Click this</a>
...but without those underscores ;)

Bifta 15-01-2004 16:50

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>


MadGamer 15-01-2004 17:04

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?

Bifta 15-01-2004 17:06

Re: Javascript
 
just stick whatever's between the body tags wherever you need it.

Fawkes 15-01-2004 17:08

Re: Javascript
 
its a no go for me Bifta. WNA, take a look here: http://forums.devshed.com/archive/1/2003/3/3/55839

MadGamer 15-01-2004 17:16

Re: Javascript
 
Quote:

Originally Posted by Fawkes
its a no go for me Bifta. WNA, take a look here: http://forums.devshed.com/archive/1/2003/3/3/55839

That site was confusing and i have googled as well, with no luck.

Fawkes 15-01-2004 17:24

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! :angel: )

altis 15-01-2004 17:33

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! :angel: )

...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.

Fawkes 15-01-2004 17:42

Re: Javascript
 
Yes but it's not very good for PHP.

Bifta 15-01-2004 19:49

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.


All times are GMT. The time now is 17:38.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum