Training, Open Source computer languages
PerlPHPPythonMySQLApache / TomcatTclRubyJavaC and C++LinuxCSS 
Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
 
For 2023 (and 2024 ...) - we are now fully retired from IT training.
We have made many, many friends over 25 years of teaching about Python, Tcl, Perl, PHP, Lua, Java, C and C++ - and MySQL, Linux and Solaris/SunOS too. Our training notes are now very much out of date, but due to upward compatability most of our examples remain operational and even relevant ad you are welcome to make us if them "as seen" and at your own risk.

Lisa and I (Graham) now live in what was our training centre in Melksham - happy to meet with former delegates here - but do check ahead before coming round. We are far from inactive - rather, enjoying the times that we are retired but still healthy enough in mind and body to be active!

I am also active in many other area and still look after a lot of web sites - you can find an index ((here))
Status bar links display

Posted by TedH (TedH), 8 June 2007
Hi Graham, have a question about the status bar. A domain has been mapped to a blog system. The domain is okay in the address bar, but when a link is hovered over the blog system subdomain appears in the status bar, instead of the actual domain.

I.E. - http://mydomain.com/myfile.html reads in status bar as, http://subdomain.blogsystem.com/myfile.html

The CNAME on the registrar has been set correctly according to their instructions and the blog system has been set to the domain as it should.

I would have thought this to be common enough situaton that I'd find something on it but haven't.

Is there a right way to show the correct links in the status bar?

Hope you can help - thanks, Ted

Posted by admin (Graham Ellis), 9 June 2007
I would tend to use onhover ... I think.  Not something I've done but I came across Ed's Link Cloaker which seems to go in the right direction for you.  You probably want to un it once and learn from what it comes back with.

Perhaps yo could follow up here with your further research

Thanks!

Posted by TedH (TedH), 9 June 2007
Hi Graham, the domain mapping had not resolved fully and I was getting a false reading. It's fine now.

Tested out the Ed's program and thought I'd do a little write up on it.

Ed's Link Cloaker
This is a little program that builds a link using javascript to alter the text shown in the status bar. You have to type in the link on your site, add the link you want to display in the status bar and a description. Then copy and paste it all into your HTML document. You need to do this for every link on your site.

Code:
<html>
<head>
<title>Change Status Bar Links</title>
</head>
<body style="font-family: Verdana, sans-serif; font-size:11px;">
Simple Javascript changes link display in the status bar during the mouseover and mouseout.
<br> <br>
<a rel="nofollow" href="http://ted-hawkins.com" onMouseOver="window.status='http://www.wellho.net/cgi-bin/opentalk/YaBB.pl'; return true;" onMouseOut="window.status=''; return true;">This is a link</a>
</body>
</html>

This could upset people (indeed, there are forum rants about altering status bar displays using these methods).

You see the "nofollow" bit in the code? This probably will stop a search engine from following the link. The could mess up your SEO something fierce. Because of this, I do not like the method.

When Javascript is turned off this will not work.

A better use of Javascript would be a simple little JS file, called on every page. It simply hides the mouseover altogether. The URL still shows when clicked though. Using this method is more honest and shouldn't mess up how search engines pick up the links on your site.

hidestat.js*
Code:
<!-- Begin
function hidestatus(){
window.status=''
return true
}
if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
document.onmouseover=hidestatus
document.onmouseout=hidestatus
//  End -->


The HTML:
Code:
<html>
<head>
<title>Hide Status Bar Links</title>
<script language="JavaScript" src="hidestat.js"></script>
</head>
<body style="font-family: Verdana, sans-serif; font-size:11px;">
Simple Javascript library file hides links in the status bar during the mouseover and mouseout.
<br> <br>
<a href="http://ted-hawkins.com">This is a link</a>
</body>
</html>


In the case of a domain being mapped to a blog system like Blogger, WordPress or TypePad etc., the mapping will solve the problem and the correct URL will show in the status bar. You may have to wait a while before this resolves depending on the registrar and host (I've just learned that the hard way).

* This code is freely available from a number of sources on the net.



Posted by admin (Graham Ellis), 9 June 2007
Thanks, Ted ....

I'll give that a shot when I get half a chance.

[Note to search engines ... keywords STATUS BAR, URL, HTML, HIDE, REDIRECT, LINKS]

Posted by TedH (TedH), 9 June 2007
You're welcome Graham, enjoy.

- Ted



This page is a thread posted to the opentalk forum at www.opentalk.org.uk and archived here for reference. To jump to the archive index please follow this link.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2024: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho