View Full Version : Bookmarks in HTML e-mail??
sgreen0
09-11-2002, 01:10 PM
I've created an HTML newsletter in FrontPage (2002) that I load into Outlook
(2000) for sending. I sent it to myself for testing. I've got the graphics
uploaded to the web so everything looks right. But the Bookmarks keep
opening a browser window looking for the address "outbind://5/".
How can I get the bookmarks to refer to the HTML e-mail being read??
Thanks.
Stephen
GWDGuy
09-11-2002, 01:24 PM
where do you have the bookmark? in the HTMl email? if so that is where it is going to bookmark.. most java scripts that allow bookmarking let you name what page you want them to bok mark.. I think this is what you are asking for??
put this in the HTMl and set the URL to where you want them to be bookmarked.. of course it will have to be an actual URL
<script LANGUAGE="JavaScript">
<!-- Begin
<!-- Begin
var expDays = 45;
url = "http://www.yourdomain.com";
title = "Site Name";
// Cookie code from The JavaScript Source
function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}
function SetCookie (name, value) {
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;
document.cookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");
}
function DeleteCookie (name) {
var exp = new Date();
exp.setTime (exp.getTime() - 1);
var cval = GetCookie (name);
document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}
var exp = new Date();
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));
function amt(){
var count = GetCookie('count')
if(count == null) {
SetCookie('count','1')
return 1
}
else {
var newcount = parseInt(count) + 1;
DeleteCookie('count')
SetCookie('count',newcount,exp)
return count
}
}
function getCookieVal(offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function checkCount() {
var count = GetCookie('count');
if (count == null) {
count=1;
SetCookie('count', count, exp);
if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
window.external.AddFavorite (url,title);
}
else {
var msg = "Bookmark us now! You may need us later!";
if(navigator.appName == "Netscape") msg += " (CTRL-D)";
alert(msg);
}
}
else {
count++;
SetCookie('count', count, exp);
}
}
checkCount();
// End -->
</script>
Robert
sgreen0
09-11-2002, 01:39 PM
Robert!
Thanks for such a detailed suggestion.
What I actually need to accomplish is bookmark to a place in the same document - in this case the e-mail being read.
Even a #Top bookmark causes a browser window to open as I described.
Any ideas?
Thanks again.
Stephen
justjay
09-11-2002, 03:13 PM
Set up your newsletter as if it were a page that was going to be viewed online. Then highlight the text that you want to be the bookmark on that page...hit CTRL+G then call what ever you want the bookmark to be called...
Now all you have to do is HYPERLINK to it...and seeing your #Top comment you know what you need to do...
Not sure how you are sending your newsletter then (with Outlook 2000) but are you using <<FILE>> <<SEND>> from within FP...if so - thats good....
sgreen0
09-11-2002, 03:23 PM
justjay!
Thanks for the reply. In fact, all the bookmarks work fine when previewed in FrontPage (2002).
Your suggestion, however, to use <<FILE>> <<SEND>> from within FP did the trick!
I was using "Insert as Text" from within Outlook 2000. This seems to be what causes the problem, even though everything else works fine that way (web links and e-mail, for example).
One thing, though. When sending directly from FP, I get a horizontal line at the top of the resulting e-mail that isn't in the page in FP.
Any idea what's causing that??
Thanks again.
Stephen
justjay
09-11-2002, 03:28 PM
What is causing that is Outlook giving you space to add your note to the email..just click in there and hit delete 3 times if memory serves me correctly.
How often do you send this newsletter? How big is your distribution list?
sgreen0
09-11-2002, 03:41 PM
justjay!
Thanks. You're right. I deleted the line and spaces.
I'm not sure, but I think this newsletter will be bi-monthly or quarterly. I also don't know the size of our list - maybe 50 or more...
We'll have other Newsletters that will be distributed to a larger list.
Thanks again.
Stephen
justjay
09-11-2002, 06:49 PM
I could recommend some software for your mailing lists, if you were interested...that I use that makes my life a lot easier....
sgreen0
09-12-2002, 09:59 AM
justjay!
What software would you recommend? We might be able to use it soon.
Thanks.
Stephen
BTW, I noticed you're from Montreal. I went to Mcgill in the 70's!
Powered by vBulletin® Version 4.1.12 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.