Welcome to WebmasterWorld Guest from 176.9.127.69
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:COMPONENT id="bhvGlossary">
<PUBLIC:ATTACH event="onclick" handler="goClick" /><script type="text/javascript">
function goClick()
{
//change this to document.location.href = ... etc.
alert("glossary.asp#" + this.innerText );
}
</script>
</PUBLIC:COMPONENT>
Your HTML file:
<html>
<head>
<title>My First Behaviour</title>
<style>
.toGlossary
{
behavior:url(glossary.htc)
}
</style>
</head><body>
<span class="toGlossary">a glossary word</span>
</body>
</html>
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.
J
[edited by: joshie76 at 1:34 pm (utc) on July 31, 2002]
Next step:
Google Web API's + Microsoft SOAP Behavior :-)
[google.com...]
[msdn.microsoft.com...]
Too bad this never caught on:
[w3.org...]