HighDots Forums  

How do I ... opening in new browser

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss How do I ... opening in new browser in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Henry S C
 
Posts: n/a

Default How do I ... opening in new browser - 07-14-2003 , 11:55 AM






A quick DW4 question, please! I've designed a site using DW4
(www.netcomuk.co.uk/~pcave/oriental/home.htm) and I've run into a minor and
annoying. The small weather check icon on ...page2.htm is set to open in a
new window (using DW's Behaviors window) but I'd like the cursor to show the
'link finger' that I see on other links.

I'd also like to see the same on the page
www.netcomuk.co.uk/~pcave/oriental/treks_short.htm for a straight text link
rather than an image link.

Huge thanks - this is terribly frustrating.



Reply With Quote
  #2  
Old   
Joshua Brandt
 
Posts: n/a

Default Re: How do I ... opening in new browser - 07-14-2003 , 01:38 PM






wrap the image in <a> tags, and then attach the onclick event to the <a>
rather than the <img> - this will give you the hand cursor. better yet:

<a href="file.htm" onclick="window.open('file.htm');return false;"
target="_blank">

this will allow people with javascrip turned off or unavailable to still
access the content, while the average user will get the popup as you desire.

"Henry S C" <henrysc (AT) yourpantsbtinternet (DOT) com> wrote

Quote:
A quick DW4 question, please! I've designed a site using DW4
(www.netcomuk.co.uk/~pcave/oriental/home.htm) and I've run into a minor
and
annoying. The small weather check icon on ...page2.htm is set to open in
a
new window (using DW's Behaviors window) but I'd like the cursor to show
the
'link finger' that I see on other links.

I'd also like to see the same on the page
www.netcomuk.co.uk/~pcave/oriental/treks_short.htm for a straight text
link
rather than an image link.

Huge thanks - this is terribly frustrating.





Reply With Quote
  #3  
Old   
Henry S C
 
Posts: n/a

Default Re: How do I ... opening in new browser - 07-14-2003 , 01:47 PM



Many thanks for the reply. Now comes the embarrassment... I'm a real html
novice, so I've always used DW4's WYSIWYG interface. I've posted the
relevant code from the page (or at least I think I have!). Would some kind
soul sigh gently at the ignorance of youth and tell me to what I should
change it?

Thanks so much.

<img src="images_and_logos/weather3.jpg" width="64" height="62" alt="Check
out the weather in Leh with CNN"
onClick="MM_openBrWindow('http://weather.cnn.com/weather/forecast.jsp?locCod
e=IN072','','width=640,height=480')">

Quote:
wrap the image in <a> tags, and then attach the onclick event to the <a
rather than the <img> - this will give you the hand cursor. better yet:

a href="file.htm" onclick="window.open('file.htm');return false;"
target="_blank"

this will allow people with javascrip turned off or unavailable to still
access the content, while the average user will get the popup as you
desire.

Quote:
A quick DW4 question, please! I've designed a site using DW4
(www.netcomuk.co.uk/~pcave/oriental/home2.htm) and I've run into a minor
and
annoying. The small weather check icon on ...page2.htm is set to open
in
a
new window (using DW's Behaviors window) but I'd like the cursor to show
the
'link finger' that I see on other links.

I'd also like to see the same on the page
www.netcomuk.co.uk/~pcave/oriental/treks_short.htm for a straight text
link
rather than an image link.

Huge thanks - this is terribly frustrating.







Reply With Quote
  #4  
Old   
Joshua Brandt
 
Posts: n/a

Default Re: How do I ... opening in new browser - 07-14-2003 , 07:39 PM



even better, duplicate the "onclick" event with an "onpress" event, so that
you can open the link either with a mouse click or with the keyboard

<a href=http://weather.cnn.com/weather/forecast.jsp?locCode=IN072
onclick="MM_openBrWindow('http://weather.cnn.com/weather/forecast.jsp?locCod
e=IN072','','width=640,height=480'); return false"
onpress="MM_openBrWindow('http://weather.cnn.com/weather/forecast.jsp?locCod
e=IN072','','width=640,height=480'); return false">
<img src="images_and_logos/weather3.jpg" width="64" height="62" alt="Check
out the weather in Leh with CNN">
</a>


"Joshua Brandt" <joshua_brandt (AT) SNIPTHIS (DOT) excite.com> wrote

Quote:
the code WAS:
img src="images_and_logos/weather3.jpg" width="64" height="62" alt="Check
out the weather in Leh with CNN"

onClick="MM_openBrWindow('http://weather.cnn.com/weather/forecast.jsp?locCod
e=IN072','','width=640,height=480')"

Make it:
a href=http://weather.cnn.com/weather/forecast.jsp?locCode=IN072

onclick="MM_openBrWindow('http://weather.cnn.com/weather/forecast.jsp?locCod
e=IN072','','width=640,height=480'); return false"
img src="images_and_logos/weather3.jpg" width="64" height="62" alt="Check
out the weather in Leh with CNN"
/a

HTH,
josh

"Henry S C" <henrysc (AT) yourpantsbtinternet (DOT) com> wrote in message
news:beuvl6$cav$1 (AT) forums (DOT) macromedia.com...
Many thanks for the reply. Now comes the embarrassment... I'm a real
html
novice, so I've always used DW4's WYSIWYG interface. I've posted the
relevant code from the page (or at least I think I have!). Would some
kind
soul sigh gently at the ignorance of youth and tell me to what I should
change it?

Thanks so much.

img src="images_and_logos/weather3.jpg" width="64" height="62"
alt="Check
out the weather in Leh with CNN"


onClick="MM_openBrWindow('http://weather.cnn.com/weather/forecast.jsp?locCod
e=IN072','','width=640,height=480')"

wrap the image in <a> tags, and then attach the onclick event to the
a
rather than the <img> - this will give you the hand cursor. better
yet:

a href="file.htm" onclick="window.open('file.htm');return false;"
target="_blank"

this will allow people with javascrip turned off or unavailable to
still
access the content, while the average user will get the popup as you
desire.

A quick DW4 question, please! I've designed a site using DW4
(www.netcomuk.co.uk/~pcave/oriental/home.htm) and I've run into a
minor
and
annoying. The small weather check icon on ...page2.htm is set to
open
in
a
new window (using DW's Behaviors window) but I'd like the cursor to
show
the
'link finger' that I see on other links.

I'd also like to see the same on the page
www.netcomuk.co.uk/~pcave/oriental/treks_short.htm for a straight
text
link
rather than an image link.

Huge thanks - this is terribly frustrating.







Reply With Quote
  #5  
Old   
Henry S C
 
Posts: n/a

Default Re: How do I ... opening in new browser - 07-15-2003 , 03:15 AM



So many thanks, Josh. You've just demonstrated very eloquently why I need
to get a book on html.

Quote:
the code WAS:
img src="images_and_logos/weather3.jpg" width="64" height="62" alt="Check
out the weather in Leh with CNN"

onClick="MM_openBrWindow('http://weather.cnn.com/weather/forecast.jsp?locCod
e=IN072','','width=640,height=480')"

Make it:
a href=http://weather.cnn.com/weather/forecast.jsp?locCode=IN072

onclick="MM_openBrWindow('http://weather.cnn.com/weather/forecast.jsp?locCod
e=IN072','','width=640,height=480'); return false"
img src="images_and_logos/weather3.jpg" width="64" height="62" alt="Check
out the weather in Leh with CNN"
/a

Many thanks for the reply. Now comes the embarrassment... I'm a real
html
novice, so I've always used DW4's WYSIWYG interface. I've posted the
relevant code from the page (or at least I think I have!). Would some
kind
soul sigh gently at the ignorance of youth and tell me to what I should
change it?

Thanks so much.

img src="images_and_logos/weather3.jpg" width="64" height="62"
alt="Check
out the weather in Leh with CNN"


onClick="MM_openBrWindow('http://weather.cnn.com/weather/forecast.jsp?locCod
e=IN072','','width=640,height=480')"

wrap the image in <a> tags, and then attach the onclick event to the
a
rather than the <img> - this will give you the hand cursor. better
yet:

a href="file.htm" onclick="window.open('file.htm');return false;"
target="_blank"

this will allow people with javascrip turned off or unavailable to
still
access the content, while the average user will get the popup as you
desire.

A quick DW4 question, please! I've designed a site using DW4
(www.netcomuk.co.uk/~pcave/oriental/home.htm) and I've run into a
minor
and
annoying. The small weather check icon on ...page2.htm is set to
open
in
a
new window (using DW's Behaviors window) but I'd like the cursor to
show
the
'link finger' that I see on other links.

I'd also like to see the same on the page
www.netcomuk.co.uk/~pcave/oriental/treks_short.htm for a straight
text
link
rather than an image link.

Huge thanks - this is terribly frustrating.







Reply With Quote
  #6  
Old   
Joshua Brandt
 
Posts: n/a

Default Re: How do I ... opening in new browser - 07-15-2003 , 07:20 PM



Henry -

happy to help.

josh

"Henry S C" <henrysc (AT) yourpantsbtinternet (DOT) com> wrote

Quote:
So many thanks, Josh. You've just demonstrated very eloquently why I need
to get a book on html.

the code WAS:
img src="images_and_logos/weather3.jpg" width="64" height="62"
alt="Check
out the weather in Leh with CNN"


onClick="MM_openBrWindow('http://weather.cnn.com/weather/forecast.jsp?locCod
e=IN072','','width=640,height=480')"

Make it:
a href=http://weather.cnn.com/weather/forecast.jsp?locCode=IN072


onclick="MM_openBrWindow('http://weather.cnn.com/weather/forecast.jsp?locCod
e=IN072','','width=640,height=480'); return false"
img src="images_and_logos/weather3.jpg" width="64" height="62"
alt="Check
out the weather in Leh with CNN"
/a

Many thanks for the reply. Now comes the embarrassment... I'm a real
html
novice, so I've always used DW4's WYSIWYG interface. I've posted the
relevant code from the page (or at least I think I have!). Would some
kind
soul sigh gently at the ignorance of youth and tell me to what I
should
change it?

Thanks so much.

img src="images_and_logos/weather3.jpg" width="64" height="62"
alt="Check
out the weather in Leh with CNN"



onClick="MM_openBrWindow('http://weather.cnn.com/weather/forecast.jsp?locCod
e=IN072','','width=640,height=480')"

wrap the image in <a> tags, and then attach the onclick event to the
a
rather than the <img> - this will give you the hand cursor. better
yet:

a href="file.htm" onclick="window.open('file.htm');return false;"
target="_blank"

this will allow people with javascrip turned off or unavailable to
still
access the content, while the average user will get the popup as you
desire.

A quick DW4 question, please! I've designed a site using DW4
(www.netcomuk.co.uk/~pcave/oriental/home.htm) and I've run into a
minor
and
annoying. The small weather check icon on ...page2.htm is set to
open
in
a
new window (using DW's Behaviors window) but I'd like the cursor
to
show
the
'link finger' that I see on other links.

I'd also like to see the same on the page
www.netcomuk.co.uk/~pcave/oriental/treks_short.htm for a straight
text
link
rather than an image link.

Huge thanks - this is terribly frustrating.









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.