HighDots Forums  

Mouse Pointer & Open Window Behavior

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Mouse Pointer & Open Window Behavior in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
BrotherCaptainRace
 
Posts: n/a

Default Mouse Pointer & Open Window Behavior - 10-31-2005 , 04:42 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!


Reply With Quote
  #2  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Mouse Pointer & Open Window Behavior - 10-31-2005 , 05:01 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 (AT) macromedia (DOT) com> wrote

Quote:
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!




Reply With Quote
  #3  
Old   
darrel
 
Posts: n/a

Default Re: Mouse Pointer & Open Window Behavior - 10-31-2005 , 05:10 PM




Quote:
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




Reply With Quote
  #4  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Mouse Pointer & Open Window Behavior - 10-31-2005 , 05:39 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 (AT) nowhere (DOT) com> wrote

Quote:
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




Reply With Quote
  #5  
Old   
BrotherCaptainRace
 
Posts: n/a

Default Re: Mouse Pointer & Open Window Behavior - 11-01-2005 , 10:48 AM



Here is what I've tried:

<a
onClick="MM_openBrWindow('/images_Content/logos_icons/image.jpg','Title','width=
494,height=420')"><img src="images_Content/thumbnails/image_TN.jpg" width="46"
height="46" border="0"></a>

But I still just keep getting the arrow pointer instead of the hand.


Reply With Quote
  #6  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Mouse Pointer & Open Window Behavior - 11-01-2005 , 10:57 AM



Make sure that the code is all on one line, and change it as follows (it's
not a link until you give it a LINK!)-

<a href="/images_Content/logos_icons/image.jpg" target="_blank"
onClick="MM_openBrWindow('/images_Content/logos_icons/image.jpg','Title','width=494,height=420');return
false"><img src="images_Content/thumbnails/image_TN.jpg" width="46"
height="46" border="0"></a>


--
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 (AT) macromedia (DOT) com> wrote

Quote:
Here is what I've tried:

a
onClick="MM_openBrWindow('/images_Content/logos_icons/image.jpg','Title','width=
494,height=420')"><img src="images_Content/thumbnails/image_TN.jpg"
width="46"
height="46" border="0"></a

But I still just keep getting the arrow pointer instead of the hand.




Reply With Quote
  #7  
Old   
Gary White
 
Posts: n/a

Default Re: Mouse Pointer & Open Window Behavior - 11-01-2005 , 11:01 AM



On Tue, 1 Nov 2005 15:48:14 +0000 (UTC), "BrotherCaptainRace"
<webforumsuser (AT) macromedia (DOT) com> wrote:

Quote:
Here is what I've tried:

a
onClick="MM_openBrWindow('/images_Content/logos_icons/image.jpg','Title','width=
494,height=420')"><img src="images_Content/thumbnails/image_TN.jpg" width="46"
height="46" border="0"></a

Change it to this:

<a href="/images_Content/logos_icons/image.jpg" target="_blank"
onClick="MM_openBrWindow('/images_Content/logos_icons/image.jpg','Title','width=
494,height=420');return false"><img
src="images_Content/thumbnails/image_TN.jpg" width="46"
height="46" border="0"></a>


Gary


Reply With Quote
  #8  
Old   
BrotherCaptainRace
 
Posts: n/a

Default Re: Mouse Pointer & Open Window Behavior - 11-01-2005 , 11:28 AM



Yes, that does make the arrow pointer turn into a hand, as I've been trying to
do - but in addition to opening the correctly sized window, it also opens a
second browser window with the same file. When you remove the target="_blank"
then it redirects your current page in addition to opening the smaller window.

:confused;


Reply With Quote
  #9  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Mouse Pointer & Open Window Behavior - 11-01-2005 , 12:00 PM



You have neglected to include the "return false" in the code, which both
Gary and I recommended.

--
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 (AT) macromedia (DOT) com> wrote

Quote:
Yes, that does make the arrow pointer turn into a hand, as I've been
trying to
do - but in addition to opening the correctly sized window, it also opens
a
second browser window with the same file. When you remove the
target="_blank"
then it redirects your current page in addition to opening the smaller
window.

:confused;




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.