Behaviour in FrontPage

  • Thread starter Thread starter Guest
  • Start date Start date
Change this: <b onclick="FP_popUpMsg
to
<b style = "cursor:hand" onclick="FP_popUpMsg

iirc it only works in IE

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
select the element and get in split view.
as it exists now you've got this:
<b onclick="FP_popUpMsg('Legal Name\r\nYour legal ...

just add a "style" like this:
style="cursor:pointer;"
so you'd wind up with this:
<b style="cursor:pointer;" onclick="FP_popUpMsg('Legal Name\r\nYour legal
....

HTH
--
Chris Leeds,
Microsoft MVP-FrontPage

ContentSeed: great tool for web masters,
a fantastic convenience for site owners.
http://contentseed.com/
 
Eww - barf on both suggestions. An event handler has NO business on a <b>
tag.

The right way to do it would be to change this -

<b onclick="FP_popUpMsg('Legal Name\r\nYour legal ...

to this -

<a href="javascript:;" onclick="FP_popUpMsg('Legal Name\r\nYour legal
....><b>...</b></a>

Then you won't have to force anything to get the right cursor.
 
Thank you, Thank you for all of this help. It helped. The one I used was:
<b style = "cursor:hand" onclick="FP_popUpMsg

GT
 
You're welcome.
Murray is correct though, in that it's not the "most elegant" solution.
However it works, in most browsers.

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
Ok I'm hooked.
What makes it "wrong" other than it's an in-line style.??
A style can be applied to any element on a page, correct??

It could be done 3 ways:
Your way.
With a mouse over event swapping the style.
Or using the in-line version.
Do they not all accomplish the same thing??

;-)

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
Steve said:
Ok I'm hooked.
What makes it "wrong" other than it's an in-line style.??
A style can be applied to any element on a page, correct??

It could be done 3 ways:
Your way.
With a mouse over event swapping the style.
Or using the in-line version.
Do they not all accomplish the same thing??

Depends on which browser you're using. For cross-browser, it should be
this:

cursor: pointer; cursor: hand;

They must be in that order.

--
Jim Cheshire
JIMCO
http://www.jimcoaddins.com

The premiere add-in and software source
for Microsoft FrontPage.
 
Hi Jim,
Good to see you here.

;-)

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
What makes it "wrong" other than it's an in-line style.??

What's wrong is the event handler on the <b> tag. <b> is a presentational
tag. It is not intended for events.
 
Back
Top