Change the cursor image to "hyperlink pointer."

V

vinceg

I want to open a window with no menus or toolbars. The following code does
everything I need, except it doesn't change the cursor to the typical
"pointing finger" associated with hyperlinks. The code was generated right
out of "Format/Behaviors..." Any suggestions?
vinceg

<font color="#003399" onclick="FP_openNewWindow('800', '700', false, false,
false, false, false, false, '', /*href*/'TestNoMenu.htm')" id="testnomenu"
onmouseout="FP_changePropRestore()"
onmouseover="FP_changeProp(/*id*/'id1',1,'style.textDecoration','underline','style.color','#FF0000')">Click here</font></a></u> to
visit the forum. </font>
 
M

Murray

Applying event handlers to <form> tags is very bad form.

Change your code to this (assuming you omitted the initial <a> tag in the
posted snippet below -


<a onclick="FP_openNewWindow('800', '700', false, false, false, false,
false, false, '', /*href*/'TestNoMenu.htm')" id="testnomenu"
onmouseout="FP_changePropRestore()"
onmouseover="FP_changeProp(/*id*/'id1',1,'style.textDecoration','underline','style.color','#FF0000')"><font
color="#003399">Click here</font></a> to visit the forum. </font>
 
M

Murray

Using the right coding methods is ever so much better than bludgeoning a
cursor on an improperly applied event, however. 8)
 
V

vinceg

Murry,
Thanks for the response. I got the same results when I pasted your code with
the initial <a> tag. Everything works, but the cursor does not change. I then
stripped out the code, and used a simple FP hyperlink, and it appears to my
untrained eye that FP substitutes the pointer cursor when it encounters
"href." It doesn't seem to respond only to the <a> tag. I'm going to keep
trying....

Thanks again,
 
M

Murray

vinceg:

This line of code -

<a href="#">link</a>

will produce the correct pointer - cursor when you mouse over it.

If you used my suggestion, and didn't get the right pointer, then either you
didn't implement my suggestion correctly, or there is something else
preventing that cursor from changing (like a CSS rule). Can you show me the
whole page, please?
 
V

vinceg

Kevin,
Thanks for a great find!
Inserted the 'style.cursor....." into the on click event, and presto!
Many thanks again.

the final coding looks like this:
<font color="#0000FF"> <u onclick="FP_openNewWindow('800', '700', false,
false, false, false, false, false, 'TestNoMenu', /*href*/'TestNoMenu.htm')"
id="id1" onmouseover="FP_changeProp(/*id*/'id1',0,'style.cursor','hand')"
onmouseout="FP_changePropRestore()">Click here</u></font> to visit the
forum.</font><u>
 
V

vinceg

Murry,
I don't see this line of code in your original reply (see thread below), but
I will try it.
Thanks,
 
M

Murray

DO NOT DO THIS!

Adding an event handler to a presentational tag like <font> or <u> is
illegal, not to mention COMPLETELY unnecessary.
 
M

Murray

The point is that that line is a simple anchor tag.

That's all you need to get the desired cursor/pointer - an anchor.

Don't apply events to presentational tags (<br>, <b>, <font>, <u>, <i>,
<strong>, <em>, etc.) - it's illegal.
 
V

vinceg

Wow! That was a lot of work! I've been at this for 3 hours.
I tried placing the code you suggested everywhere, in every combination, and
nothing worked until I got to the structure below.

<a href="#" onclick="FP_openNewWindow('800', '606', false, false, false,
false, false, false, 'nomenu', /*href*/'TestNoMenu.htm')"><font size="2"
color="#000000">link</font></a>

Without the font coding just before "link", you can't see it. I tried to put
the font coding everywhere else, but this is the only combination that works.
Thanks.

In a prior post you said "it is illegal". What is illegal and why?

Sorry for all the questions, but I've been doing this on the other side of
FP, and I've never been into the code before. The info and patience is
appreciated.
 
M

Murray

<a href="#" onclick="FP_openNewWindow('800', '606', false, false, false,
false, false, false, 'nomenu', /*href*/'TestNoMenu.htm')">link</a>

This will work. You do not need the said:
In a prior post you said "it is illegal". What is illegal and why?

It is not legal HTML. Thus, you cannot rely on it being 'properly' rendered
in any particular browser. It's like building your house's foundation on
sand.
 
V

vinceg

Murray,

I pasted your code into the page, and I cannot see the word "link" when I
bring it up in IE6. The link works, however, but a user would not know the
link was there.

the page in question is:
http://www.ihs70.org/index3.htm

The site is still in construction, so the page that the link brings you to
will look the same. I was using these pages just to test the coding.

Thanks again for your patience and interest.
 
R

Ronx

You have set your links to be white. White text on a white background
is not easy to see. I suggest you go into page properties and set the
links to a colour that will be visible on a white background since the
entire page has a white background (blue is good for links), and any
links you have that *are* on a blue background (not that I could find
any) - change the colour using font tags, or (better) CSS.
 
R

Ronx

PS - the links to your Forum do not work on your home page, but are
active on the pop-up page. Check the code on the home page to
determine why.
 
V

vinceg

Ronx,
Thanks... the font shows up fine now.

The forum appears to be down, or is not available all the time, which is the
main reason we are trying to put the site together. Thanks for the spot.
 

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