screentip and hyperlink

L

LasseN

I have "connected"a screentip to a word using the layer and behaviour method.
Now I would like to connect also an "ordinary" hyperlink to the same word.
How to do that.
 
K

Kevin Spencer

Define "connect also an 'ordinary' hyperlink to the same word."

A hyperlink is a bit of text, or another visible element in a web page,
which, when clicked, directs the browser to a URL.

So, what exactly are you asking?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
 
L

LasseN

OK this is the problem. I have a list of contents. Each item in the list has
a screentip. Now I want to click on an item and open a html page through a
hyperlink but in the hyperlink properties the address is already occupied by
javascript:;
 
K

Kevin Spencer

Okay, so if I understand you correctly, you have some javascript that
defines a mouseover for the word. Apparently, the way that the div, or
whatever you have that contains the word that has a screentip, displays the
screen tip is with a JavaScript onmouseover event handler. What I'm confused
about is that you mention "the hyperlink properties" which should not exist
as there is no hyperlink yet. So, how are you invoking the Hyperlink
Properties dialog box?

In any case, you will want to put the hyperlink around the object containing
the text, whether that is a div, a span, or whatever. If you post some of
the code, or direct us to a URL, I can be more specific.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
 
K

Kevin Spencer

Why would you need a null hyperlink for an onmouseover event handler?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
 
M

Murray

You cannot apply an event handler to text alone. It must be applied to an
<a> tag wrapping the text. If you don't want the link to GO anywhere when
you click it, you make it a null link.
 
K

Kevin Spencer

You cannot apply an event handler to text alone. It must be applied to an
<a> tag wrapping the text. If you don't want the link to GO anywhere when
you click it, you make it a null link.

Maybe FrontPage does it that way. However, you can create an onmouseover
event handler for a span, a div, and a number of other objects that can
contain text. Hence, my question, "Why would you need a null hyperlink for
an onmouseover event handler?"

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
 
M

Murray

Event handlers applied to <span> and <div> tags are not fully supported in
older browsers (NN4x specifically) - I don't know about the scope of this
support across platforms....

But what I do know is that everything knows about <a href="javascript:;"....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top