This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > February 2004 > Sizing a Browser Window that is opening in a new Window
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 |
Sizing a Browser Window that is opening in a new Window
|
|
| Edy Kizaki 2004-02-21, 4:28 pm |
| I just got my first actual site up, using Dreamweaver MX. I've learned a
lot of the basics (and am ready to go on to learn about CSS and actions &
behaviors which sound similar to what I started to use in Director, and look
simple enough). This is giving me confidence to write my project in
Dreamweaver. (Here is the URL, it is the site for the Zengcheng English
Center in China...I'm under "staff." http://chinaesl.net ). I am going to
be writing a supplementary computer curriculum with experiential interactive
multimedia for the school, a scenerio called "Star City Adventure."
Hopefully I will use Dreamweaver, Coursebuilder, and Flash. But that's the
future.
CURRENT PROBLEM:
I was trying to make some browsers windows I have opening in a blank frame
open to a specific (smaller) size so that they wouldn't cover the original
page, and would function more like a pop-up box. (From the home page, click
on "center staff" in the nav bar, then click on one of the 4 names or
photos...a new (_blank) browser window opens with that person's info in it.)
I have a book called "Dreamweaver MX, The Missing Manual," which suggests
the way to do this is to select a tag and add a behavior to it (this is kind
of like the lingo script I was learning to use in Director so I'm familiar
with this concept). So... I guess I can't add a behavior to a Flash text?
Because it says it only works with certain tags, which aren't appearing in
the falsh text script. (I did the staff names with Flash text, because I
hate the way a plain underlined text link looks. But after reading this, I
also DID make plain links and then I WAS able to specify the size of the
browser window, but the problem then is that when you make the actual link,
you have to specify a target, so then I have 2 windows opening, one that is
small and then one that fills the screen on top of it. When I left the
"target" blank, Dreamweaver erased the behavior. So I tried typing a
meaningless letter in the "target" space, then a "cannot find that web page"
screen comes up full size, with my smaller open browser window hidden behind
it. I have left this up on the "Edy Kizaki" link to see what I DON'T want
to do. Closest so far, but not professional.)
If you know some simple way to control the size of a new browser window
opened when you click on a link, pls let me know!
Much appreciation,
Edy Kizaki
(Vancouver, Canada, but affiliated with CSUMB in Monterey, California, where
I'm completing a masters in Multimedia/Curriculum Design/Distance Learning).
| |
| Murray *TMM* 2004-02-21, 4:28 pm |
| Edy:
> So... I guess I can't add a behavior to a Flash text?
That is correct. Any interactivity like that would have to be done in the
underlying ActionScripting for the Flash Object.
> but the problem then is that when you make the actual link,
> you have to specify a target, so then I have 2 windows opening
Not if you select the text, and enter "java script:;" in the Link field of
the Property inspector. Then you will get something like this -
<a href="java script:;">text</a>
to which you can apply the behavior just fine.
I will say that if you suspect your visitors might have javascript turned
off (some do, but I think it's probably mostly other developers), then you
should make your code for this as follows -
<a href="yourpage.html" onClick="MM_openBrWindow("..."); return
false">text</a>
In this case, if javascript is not disabled, the onClick fires and the
return false kills the link. On the other hand, if javascript is disabled,
the onClick does not fire, but the link still works to open the page. In
the latter event, the page is not properly sized, but at least it opened!
I hope that helps you!
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
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
==================
"Edy Kizaki" <zawzaw@hotmail.com> wrote in message
news:c18cak$kop$1@forums.macromedia.com...
> I just got my first actual site up, using Dreamweaver MX. I've learned a
> lot of the basics (and am ready to go on to learn about CSS and actions &
> behaviors which sound similar to what I started to use in Director, and
look
> simple enough). This is giving me confidence to write my project in
> Dreamweaver. (Here is the URL, it is the site for the Zengcheng English
> Center in China...I'm under "staff." http://chinaesl.net ). I am going
to
> be writing a supplementary computer curriculum with experiential
interactive
> multimedia for the school, a scenerio called "Star City Adventure."
> Hopefully I will use Dreamweaver, Coursebuilder, and Flash. But that's
the
> future.
>
>
> CURRENT PROBLEM:
>
> I was trying to make some browsers windows I have opening in a blank frame
> open to a specific (smaller) size so that they wouldn't cover the original
> page, and would function more like a pop-up box. (From the home page,
click
> on "center staff" in the nav bar, then click on one of the 4 names or
> photos...a new (_blank) browser window opens with that person's info in
it.)
>
> I have a book called "Dreamweaver MX, The Missing Manual," which suggests
> the way to do this is to select a tag and add a behavior to it (this is
kind
> of like the lingo script I was learning to use in Director so I'm familiar
> with this concept). So... I guess I can't add a behavior to a Flash text?
> Because it says it only works with certain tags, which aren't appearing in
> the falsh text script. (I did the staff names with Flash text, because I
> hate the way a plain underlined text link looks. But after reading this,
I
> also DID make plain links and then I WAS able to specify the size of the
> browser window, but the problem then is that when you make the actual
link,
> you have to specify a target, so then I have 2 windows opening, one that
is
> small and then one that fills the screen on top of it. When I left the
> "target" blank, Dreamweaver erased the behavior. So I tried typing a
> meaningless letter in the "target" space, then a "cannot find that web
page"
> screen comes up full size, with my smaller open browser window hidden
behind
> it. I have left this up on the "Edy Kizaki" link to see what I DON'T want
> to do. Closest so far, but not professional.)
>
> If you know some simple way to control the size of a new browser window
> opened when you click on a link, pls let me know!
> Much appreciation,
> Edy Kizaki
> (Vancouver, Canada, but affiliated with CSUMB in Monterey, California,
where
> I'm completing a masters in Multimedia/Curriculum Design/Distance
Learning).
>
>
>
| |
| Murray *TMM* 2004-02-21, 5:28 pm |
| Please do. Good luck!
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
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
==================
"Edy Kizaki" <zawzaw@hotmail.com> wrote in message
news:c18i8d$qr1$1@forums.macromedia.com...
> thanks, murray
> I'll try this and let you know.
> Edy
> "Murray *TMM*" <forums@HAHAgreat-web-sights.com> wrote in message
> news:c18cu4$lcb$1@forums.macromedia.com...
the[color=darkred]
of[color=darkred]
turned[color=darkred]
you[color=darkred]
> disabled,
In[color=darkred]
opened![color=darkred]
GET[color=darkred]
learned[color=darkred]
> a
actions[color=darkred]
> &
and[color=darkred]
English[color=darkred]
going[color=darkred]
that's[color=darkred]
> frame
> original
in[color=darkred]
> suggests
is[color=darkred]
> familiar
> text?
appearing[color=darkred]
> in
I[color=darkred]
> this,
the[color=darkred]
that[color=darkred]
the[color=darkred]
> want
window[color=darkred]
>
>
| |
| Edy Kizaki 2004-02-21, 6:28 pm |
| thanks, murray
I'll try this and let you know.
Edy
"Murray *TMM*" <forums@HAHAgreat-web-sights.com> wrote in message
news:c18cu4$lcb$1@forums.macromedia.com...
> Edy:
>
>
> That is correct. Any interactivity like that would have to be done in the
> underlying ActionScripting for the Flash Object.
>
>
> Not if you select the text, and enter "java script:;" in the Link field of
> the Property inspector. Then you will get something like this -
>
> <a href="java script:;">text</a>
>
> to which you can apply the behavior just fine.
>
> I will say that if you suspect your visitors might have javascript turned
> off (some do, but I think it's probably mostly other developers), then you
> should make your code for this as follows -
>
> <a href="yourpage.html" onClick="MM_openBrWindow("..."); return
> false">text</a>
>
> In this case, if javascript is not disabled, the onClick fires and the
> return false kills the link. On the other hand, if javascript is
disabled,
> the onClick does not fire, but the link still works to open the page. In
> the latter event, the page is not properly sized, but at least it opened!
>
> I hope that helps you!
>
> --
> Murray --- ICQ 71997575
> Team Macromedia Volunteer for Dreamweaver MX
> (If you *MUST* email me, don't LAUGH when you do so!)
> ==================
> news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
> ANSWERS
> ==================
> 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
> ==================
>
> "Edy Kizaki" <zawzaw@hotmail.com> wrote in message
> news:c18cak$kop$1@forums.macromedia.com...
a[color=darkred]
&[color=darkred]
> look
> to
> interactive
> the
frame[color=darkred]
original[color=darkred]
> click
> it.)
suggests[color=darkred]
> kind
familiar[color=darkred]
text?[color=darkred]
in[color=darkred]
this,[color=darkred]
> I
> link,
> is
> page"
> behind
want[color=darkred]
> where
> Learning).
>
>
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|