Add to favourites code

Lawrence Lee Manila-Newbies@userland.com
Mon, 15 Dec 2003 10:02:11 -0800


This is a multi-part message in MIME format.

------=_NextPart_000_0194_01C3C2F2.846F32A0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Have you tried pasting it into the JavaScript box on the Advanced
Preferences page?
 
Lawrence


  _____  

From: manila-newbies-admin@userland.com
[mailto:manila-newbies-admin@userland.com] On Behalf Of Lee Baker
Sent: December 14, 2003 11:37 PM
To: Manila-Newbies@userland.com
Subject: Add to favourites code



I have some code (Javascript) for an "Add to Favourites" link which I wish
to add to my Manila site at http://astonvilla.blogfootball.com/lions/ but it
refuses to work! Could some one please advise me? The curly brackets in the
original code get converted to &#123 and &#125 plus I get an 'error on
page'.
 
Code:
 
 
<!--This is one of many scripts which are available at: *---
//--http://www.JavaScript.nu?javascript *---
//--This script is FREE, but you MUST let these lines *---
//--remain if you steal this script. *---
function bookmark(url, description)
&#123;
//***---This text will be shown to the visitor if it has Netscape.
netscape="First push OK and then hit CTRL+D to add a bookmark to this site."
 
if (navigator.appName=='Microsoft Internet Explorer')
&#123;
window.external.AddFavorite(url, description);
&#125;
else if (navigator.appName=='Netscape')
&#123;
alert(netscape);
&#125;
&#125;
//-->
 
</SCRIPT>
 
 
<B><A
HREF="javascript:bookmark('http://astonvilla.blogfootball.com/lions/','Lions
Blog');">Add Lions Blog to Your Favourites (STILL NOT WORKING....DO NOT
CLICK!)</A></B>

 
 
I also have this code which will not even show up!! (Again, the curly
brackets get changed to &#123 and &#125 in the template):
 
<!-- ADD TO BOOKMARKS FAVOURITES -->
<font STYLE="font-family:VERDANA; font-size:8PT;">
<script language="JavaScript">
var message = "Add to favourites";
var url = "HTTP://astonvilla.blogfootball.com/Lions/";
var title = "Lions Blog";
if (document.all) {
document.write("<a href=\"javascript:window.external.AddFavorite(url,
title)\">" + message +"</a>");
} else {
document.write("Lions Blog");
if (document.layers) {
document.write(" (Press CTRL+D)");
}
}
</script>
 
<!-- END BOOKMARKS SCRIPT -->
 
 
PLEASE help. It's driving me nuts!!

Cheers
Lee
 
 
 <http://www.leebaker.freeserve.co.uk>  


------=_NextPart_000_0194_01C3C2F2.846F32A0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2800.1276" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV dir=3Dltr align=3Dleft><FONT face=3DArial color=3D#0000ff =
size=3D2><SPAN=20
class=3D507130118-15122003>Have you tried pasting it into the JavaScript =
box on=20
the Advanced Preferences page?</SPAN></FONT></DIV>
<DIV dir=3Dltr align=3Dleft><FONT face=3DArial color=3D#0000ff=20
size=3D2></FONT>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D507130118-15122003><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>Lawrence</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
  <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft>
  <HR tabIndex=3D-1>
  <FONT face=3DTahoma size=3D2><B>From:</B> =
manila-newbies-admin@userland.com=20
  [mailto:manila-newbies-admin@userland.com] <B>On Behalf Of </B>Lee=20
  Baker<BR><B>Sent:</B> December 14, 2003 11:37 PM<BR><B>To:</B>=20
  Manila-Newbies@userland.com<BR><B>Subject:</B> Add to favourites=20
  code<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV><FONT face=3DArial size=3D2>
  <DIV><FONT face=3DArial size=3D2>I have some code (Javascript) for an =
"Add to=20
  Favourites" link which I wish to add to my Manila site at <A=20
  =
href=3D"http://astonvilla.blogfootball.com/lions/">http://astonvilla.blog=
football.com/lions/</A>=20
  but it refuses to work! Could some one please advise me? The curly =
brackets in=20
  the original code get converted to &amp;#123 and &amp;#125 plus I get =
an=20
  'error on page'.</FONT></DIV>
  <DIV><FONT face=3DArial color=3D#0000ff size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Code:</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>&lt;!--This is one of many scripts =
which are=20
  available at: *---<BR>//--http://www.JavaScript.nu?javascript =
*---<BR>//--This=20
  script is FREE, but you MUST let these lines *---<BR>//--remain if you =
steal=20
  this script. *---<BR>function bookmark(url,=20
  description)<BR>&amp;#123;<BR>//***---This text will be shown to the =
visitor=20
  if it has Netscape.<BR>netscape=3D"First push OK and then hit CTRL+D =
to add a=20
  bookmark to this site."</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>if (navigator.appName=3D=3D'Microsoft =
Internet=20
  Explorer')<BR>&amp;#123;<BR>window.external.AddFavorite(url,=20
  description);<BR>&amp;#125;<BR>else if=20
  =
(navigator.appName=3D=3D'Netscape')<BR>&amp;#123;<BR>alert(netscape);<BR>=
&amp;#125;<BR>&amp;#125;<BR>//--&gt;</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial =
size=3D2>&lt;/SCRIPT&gt;<BR>&nbsp;</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>&lt;B&gt;&lt;A=20
  =
HREF=3D"javascript:bookmark('http://astonvilla.blogfootball.com/lions/','=
Lions=20
  Blog');"&gt;Add Lions Blog to Your Favourites (STILL NOT WORKING....DO =
NOT=20
  CLICK!)&lt;/A&gt;&lt;/B&gt;<BR></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>I also have this code which will not =
even show=20
  up!! (Again, the curly brackets get changed to &amp;#123 and &amp;#125 =
in the=20
  template):</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>&lt;!-- ADD TO BOOKMARKS FAVOURITES=20
  --&gt;<BR>&lt;font STYLE=3D"font-family:VERDANA;=20
  font-size:8PT;"&gt;<BR>&lt;script language=3D"JavaScript"&gt;<BR>var =
message =3D=20
  "Add to favourites";<BR>var url =3D "<A=20
  =
href=3D"http://astonvilla.blogfootball.com/Lions/">HTTP://astonvilla.blog=
football.com/Lions/</A>";<BR>var=20
  title =3D "Lions Blog";<BR>if (document.all) =
{<BR>document.write("&lt;a=20
  href=3D\"javascript:window.external.AddFavorite(url, title)\"&gt;" + =
message=20
  +"&lt;/a&gt;");<BR>} else {<BR>document.write("Lions Blog");<BR>if=20
  (document.layers) {<BR>document.write(" (Press=20
  CTRL+D)");<BR>}<BR>}<BR>&lt;/script&gt;</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>&lt;!-- END BOOKMARKS SCRIPT =
--&gt;</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>PLEASE help. It's driving me=20
  nuts!!<BR><BR>Cheers<BR>Lee</DIV></FONT>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></FONT></DIV>
  <DIV><FONT face=3DArial color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial color=3D#000000 size=3D2><A=20
  href=3D"http://www.leebaker.freeserve.co.uk"></A></FONT><FONT =
face=3DArial=20
  size=3D2></FONT>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0194_01C3C2F2.846F32A0--