| | |
|
|
|
auto-link certain words.... |
| message from spamsnolk on 22 Jul 2004 |
Is it possible to make dreamweaver automatically link a certain words to a
certain page?
Lets say that i want the word "dog" to, always, link to a page containing info
about dogs.
I would be greatful for any help.
|
| Murray *TMM* replied to spamsnolk on 22 Jul 2004 |
No.
|
| Mick White replied to spamsnolk on 23 Jul 2004 |
<html>
<head>
<title>Dogs</title>
<script type="text/JavaScript">
onload= function(){
regex=/dog/g;
expr="<a href='http://dog.com' dog</a>";
document.body.innerHTML=document.body.innerHTML.replace(regex,expr);
}
</script>
</head>
<body>
<p> The dog</p>
<p> The dog</p>
<p> The dog</p>
<p> The dog</p>
</body>
</html>
spamsnolk wrote:
|
| :. Nadia .: replied to spamsnolk on 23 Jul 2004 |
This won't happen automatically as you suggest, you need to insert the
anchors yourself.
Look at the help files (F1) and do a search for 'named anchors'. This is
linking one word to another section of a page.
You can link a word dog to a section on a page with an anchor of #dog but
not to every page named dog.
|
| Kevin Davis replied to :. Nadia .: on 22 Jul 2004 |
There are contextual content management programs out there that will do that
based on a db of preset words and links, but they aren't cheap. Most sites
use these for glossary terms and stuff like that.
KD
":. Nadia .:" <forums@-ozzie-perrelink.com.au> wrote in message
news:cdoign$c2$1@forums.macromedia.com...
http://groups.google.com/advanced_group_search?q=+group:macromedia.dreamweaver
|
| spamsnolk replied to Kevin Davis on 22 Jul 2004 |
ok, thanks for quick replies!
|
| Mick White replied to spamsnolk on 23 Jul 2004 |
onload= function(){
regex=/ dog /g;
expr="<a href='http://dog.com' dog </a>"
document.body.innerHTML.replace(regex,expr)
}
May need some tweaking
Mick
spamsnolk wrote:
|
|
Archived message: auto-link certain words.... (Macromedia Dreamweaver Web Design)