Help with "the hand" icon

  • Thread starter Thread starter JDS
  • Start date Start date
It's because you have applied the behavior's event directly to the <marquee>
tag -

<marquee behavior="alternate" bgcolor="#FF8000" width="49" height="26"
onclick="FP_openNewWindow('626', '495', false, false, false, false, false,
false, '', /*href*/'buffet.htm')">See it!</marquee>

Try changing that to this -

<marquee behavior="alternate" bgcolor="#FF8000" width="49" height="26"><a
href='buffet.htm' target="_blank" onclick="FP_openNewWindow('626', '495',
false, false, false, false, false, false, '', /*href*/'buffet.htm');return
false;">See it!</a></marquee>

which should give you what you want. In addition, I have added a little
extra in that now the link will work, even though someone has js turned off
in their browser.

By the way, if you copy and paste from this post, make sure you put that
whole thing on a single line.

And remember - if you don't get the 'finger' look at the code. Chances are
good you have applied the behavior event to the wrong page element.
 
Murray gave you the answer and a better solution.

The overall lesson from this is that: web developers need to make sure
that "links" will appear as hyperlinks even when they use script to open
the link. And that the link will also work when users turn off javascript.

You may also make want to the size of the text "See It" a little bigger
so they can see it-seems that is important to you.

...PC
 
The first question is, is this,

1. Is this your website? Cos if it was, then you would know how this was
done, hehehe

2. Thanx for your question cos you have given me a great design idea. I can
hide the hand by creating a behavior on a non scrolling marqee so that it
can link to a file, eg. buffet.htm

If you wanna figure out something, just highlight it, then click on "code"

Here is the code for it

<marquee behavior="alternate" bgcolor="#FF8000" width="49" height="26"
onclick="FP_openNewWindow('626', '495', false, false, false, false, false,
false, '', /*href*/'buffet.htm')">See it!</marquee>

Interesting indeed
 
1. Is this your website? Cos if it was, then you would know how this was
done, hehehe
Huh?

2. Thanx for your question cos you have given me a great design idea. I
can hide the hand by creating a behavior on a non scrolling marqee so that
it can link to a file, eg. buffet.htm

That's much too plebian. Why would you want to hide it anyhow? The
<marquee behavior="alternate" bgcolor="#FF8000" width="49" height="26"
onclick="FP_openNewWindow('626', '495', false, false, false, false, false,
false, '', /*href*/'buffet.htm')">See it!</marquee>

Interesting indeed

Actually, only mildly.
 
Thanks Murray - that's better.

Now I've tried it with just text / hyperlink and tried to select "blinking"
in the font properties. Blinks fine in Firefox but no blink in IE?
 
Blink is/was a NS only tag. NS 6 and up no longer support it.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
Thank God for that. The only things I hate
more than blinking are (1) background
music and (2) dancing bears gyrating across
my screen.
 
Haven't had the pleasure of seeing dancing
flamingos, Murray. Guess they'd be okay.

When I become president, I'm going to ban
web sites with music, dancing bears, blinking,
and old viewers who specifiy larger font sizes
and screw up my web design.
 
Back
Top