Welcome to WebmasterWorld Guest from 18.104.22.168
Forum Moderators: open
External behavoirs seem like the ideal solution for this since they wouldn't dilute the relevant links on the page with a bunch of links googlebot would see.
Anyone know of a script that could be easily adapted to this purpose?
There's info on Microsoft's developer site and others, but no ready made scripts.
For anyone who wants to learn a bit, this page [msdn.microsoft.com] offers a pretty good overview.
I'll second Tedsters sentiments, since these are IE only I can't go near them - it would cut out a percentage of users and that would be unacceptable to my clients.
Your glossary.htc file:
<PUBLIC:ATTACH event="onclick" handler="goClick" />
//change this to document.location.href = ... etc.
alert("glossary.asp#" + this.innerText );
Your HTML file:
<title>My First Behaviour</title>
<span class="toGlossary">a glossary word</span>
I'm sure you'll get the idea and be able to manipulate the above to make it work for you. Be warned I have run into some odd behavior with behaviors (like form elements not resetting), though they were really quite complex behaviours. A simple script like the above will be fine.
[edited by: joshie76 at 1:34 pm (utc) on July 31, 2002]