Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to link anchors to scrolling text?

Status
Not open for further replies.

kippie

Technical User
Joined
Nov 8, 2001
Messages
158
In the HTML below I want to link the anchors "to2" in button "Enneagram als management-model" and anchor "to3" in button "Leiderschap ..." to different places in the scrolling text in window "layer3". So that by pressing the second button the text scrolls automatically to "Enneagram als management-model" (where I placed anchor "to2') and by pressing the third button the text scroll automatically to "Leiderschap .." in the text where I placed anchor "to3". But apparently I do something completely wrong because it does not work. Can someone help?

This is the HTML:

<html>
<head>
<meta http-equiv=&quot;content-type&quot; content=&quot;text/html;charset=iso-8859-1&quot;>
<meta name=&quot;generator&quot; content=&quot;Adobe GoLive 4&quot;>
<style type=&quot;text/css&quot;><!--
#layer3 { background-color: #fff; position: absolute; z-index: 21; top: 7px; left: 331px; width: 414px; height: 301px; overflow: auto; visibility: visible; layer-background-color: #FFFFFF; }
#nestlayer2 { position: absolute; z-index: 11; top: 30px; left: 10px; width: 180px; height: 53px; visibility: visible }
</style>
</head>
<body>
<div id=&quot;nestlayer2&quot;>
<a href=&quot;to1&quot; onmouseover=&quot;inspim.src=' return true&quot; onmouseout=&quot;inspim.src=' return true&quot;><img src=&quot; width=&quot;110&quot; height=&quot;15&quot; border=&quot;0&quot; name=&quot;inspim&quot;></a><br>
<a href=&quot;to2&quot; onmouseover=&quot;enneam.src=' return true&quot; onmouseout=&quot;enneam.src=' return true&quot;><img src=&quot; width=&quot;157&quot; height=&quot;15&quot; border=&quot;0&quot; name=&quot;enneam&quot;></a><br>
<a href=&quot;to3&quot; onmouseover=&quot;leiders.src=' return true&quot; onmouseout=&quot;leiders.src=' return true&quot;><img src=&quot; width=&quot;157&quot; height=&quot;15&quot; border=&quot;0&quot; name=&quot;leiders&quot;></a></div>

<div id=&quot;Layer3&quot; class=&quot;tekst&quot;>
<a name=&quot;to1&quot;></a><b>Inspiratie-management</b><br>
De huidige tijd
<br><br><br><br><br><br><br><br><br><br><br><br>
<b>Trainingstrajecten op aanvraag</b><br>
<br>
<b>Training Kennismaking met Inspiratie-management</b><br>
Doelgroep: leidinggevenden<br>
Datum: 25 april van 10.00 – 17.00 uur<br>
Kosten: Euro 350.-<br>
<br>
<a name=&quot;to2&quot;></a><b>Enneagram als management-model<br>
Het Enneagram is etc. etc.<br>
<br>
<b>Training Kennismaking met het Enneagram</b><br>
Doelgroep: leidinggevenden<br>
Datum: 25 april van 10.00 – 17.00 uur<br>
Kosten: Euro 350.-
<p><a name=&quot;to3&quot;></a>Leiderschap en geestelijke flexibiliteit</span><br>
Leiderschap is etc. etc.<br>
</p>
<p><b>Leiderschap</b><br>
<br><br><br><br><br><br><br><br><br>
</body>
</html>

Kippie
 
Hi Kippie
Instead of having your links like this:
<a href=&quot;to1&quot; onmouseover=.....
you need an internal page link like this:
<a href=&quot;[red]#[/red]to1&quot; onmouseover=.... Hope I helped / Thanks for helping
if ((Math.abs(x)<10&&Math.abs(y)<10) && (((parseInt(Math.abs(x).toString()+Math.abs(y).toString())-Math.abs(x)-Math.abs(y))%9)!=0)) {alert(&quot;I'm a monkey's uncle&quot;);}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top