This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > October 2005 > Mouse Pointer & Open Window Behavior





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Mouse Pointer & Open Window Behavior
BrotherCaptainRace

2005-10-31, 6:29 pm

I have a gallery of images that open to new Windows on my website. I'd like to
use the Open Window behavior to specify the size of the window opening instead
of using target="blank" to open a whole new browser window. However, I've
noticed that when I use the behavior, the mouse pointer no longer switches
between the default arrow icon and the tell-tale hand for links.

Is there any way to modify this so that images using the Open Window behavior
will use the hand icon, indicating its "clickability?"

Many thanks in advance!

Murray *TMM*

2005-10-31, 6:29 pm

Yes - you would do that by correctly applying the event for the behavior to
an <a> tag around the image, rather than directly to the image.

Select the image. In the Behaviors panel, click on the event, and then drop
down the list. Select "<A> onClick" rather than "onClick".

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"BrotherCaptainRace" <webforumsuser@macromedia.com> wrote in message
news:dk634a$3km$1@forums.macromedia.com...
>I have a gallery of images that open to new Windows on my website. I'd
>like to
> use the Open Window behavior to specify the size of the window opening
> instead
> of using target="blank" to open a whole new browser window. However, I've
> noticed that when I use the behavior, the mouse pointer no longer switches
> between the default arrow icon and the tell-tale hand for links.
>
> Is there any way to modify this so that images using the Open Window
> behavior
> will use the hand icon, indicating its "clickability?"
>
> Many thanks in advance!
>



darrel

2005-10-31, 6:29 pm


> Yes - you would do that by correctly applying the event for the behavior
> to
> an <a> tag around the image, rather than directly to the image.


If you just want to indicate 'clickability' then you can change the cursor
via CSS:

cursor: pointer

Or, you can do as Murray stated. If you do as murray suggests, do take the
extra step and put the actual URL of the page in the HREF while you are at
it, which will make the page accessible to those without javascript and
usable for those that browse in tabbed browsers.

-Darrel


Murray *TMM*

2005-10-31, 6:29 pm

If you do what darrel suggests, make sure you add 'return false' after the
behavior call, e.g.,

onClick="MM_openBrWindow(...);return false"

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"darrel" <notreal@nowhere.com> wrote in message
news:dk64p1$5rq$1@forums.macromedia.com...
>
>
> If you just want to indicate 'clickability' then you can change the cursor
> via CSS:
>
> cursor: pointer
>
> Or, you can do as Murray stated. If you do as murray suggests, do take the
> extra step and put the actual URL of the page in the HREF while you are at
> it, which will make the page accessible to those without javascript and
> usable for those that browse in tabbed browsers.
>
> -Darrel
>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews