need new text box to open on same page when link clicked. Possible

S

sanook

You know, those snazzy boxes that pop up or drop down when you click a link,
without a new page opening. Can these be done with publisher? How?

ta
 
J

JoAnn Paules [MVP]

You mean those blasted things that would pop up if one didn't have them
blocked because they are annoying?
 
D

DavidF

The OP said "...click a link..."...not an automatic popup!

DavidF

JoAnn Paules said:
You mean those blasted things that would pop up if one didn't have them
blocked because they are annoying?

--

JoAnn Paules
MVP Microsoft [Publisher]



sanook said:
You know, those snazzy boxes that pop up or drop down when you click a
link,
without a new page opening. Can these be done with publisher? How?

ta
 
D

DavidF

There are several ways you can do it. Here is one article to reference
"Hyperlinks that open a new browser window":
http://msmvps.com/blogs/dbartosik/archive/2006/01/13/81266.aspx

You can also use JavaScript. Here is a copy of a post by David Bartosik that
I can't find on his site anymore that explains it:

"Sometimes it can be useful to display information in a small pre-configured
pop-up window. For example if you had a hyperlink that said "more details"
and that link opened a small pop-up with details related to the primary
windows content.

This should not be confused with the intrusive advertising technique of
"pop-up's", that pop-over or pop-under without the visitor's consent or
prior knowledge.

To launch our window we need to use a small snippet of JavaScript. Publisher
has no built-in support for scripting so you use the HTML Code Fragment
dialog to insert the script.

The HTML Code Fragment dialog is located in the Insert menu, and the dialog
is drawn on the page where it is needed like you do with a text box or
picture frame.

Our snippet of code contains the hyperlink so you will insert the code
fragment on your page where you are wanting the hyperlink to be located.
Simply copy and paste the following code:

<a
href="javascript:windowname_window=window.open('pagename.htm','windowname_window','toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=0,width=400,
height=400');windowname_window.focus()">Link Text Display</a>

Obviously you need a web page that this link is opening, that web page is
what is specified in place of "pagename.htm". Replace the link text display
string with your desired hyperlink text.

You will set the width and height numbers to the pixel sizes you want the
web page to be sized to in the pop-up. If you want the visitor to be able to
resize the window change the resizable variable to 1. If you want scroll
bars to not display set the variable for that to 0. Other common settings
you may want to set are - display toolbar, status bar, menubar - yes is 1,
no is 0.

If you use this snippet more than once on a page you will need to change the
"windowname" in each snippet to enable them to differentiate themselves on
the page.

You can see an example of this pop-up technique by visiting barvin.com and
clicking the Contact Us link at the bottom of the page. David Bartosik"

DavidF
 
J

JoAnn Paules [MVP]

I thought he meant one of those pop-ups I've seen that occur when your
cursor rests on a word for a moment.

I still have all pop-ups blocked. I have to ctrl+click to get a new page.
(Have I ever mentioned that I am a bit of a control freak?)

--

JoAnn Paules
MVP Microsoft [Publisher]



DavidF said:
The OP said "...click a link..."...not an automatic popup!

DavidF

JoAnn Paules said:
You mean those blasted things that would pop up if one didn't have them
blocked because they are annoying?

--

JoAnn Paules
MVP Microsoft [Publisher]



sanook said:
You know, those snazzy boxes that pop up or drop down when you click a
link,
without a new page opening. Can these be done with publisher? How?

ta
 
S

sanook

cool will try this

cheers


DavidF said:
There are several ways you can do it. Here is one article to reference
"Hyperlinks that open a new browser window":
http://msmvps.com/blogs/dbartosik/archive/2006/01/13/81266.aspx

You can also use JavaScript. Here is a copy of a post by David Bartosik that
I can't find on his site anymore that explains it:

"Sometimes it can be useful to display information in a small pre-configured
pop-up window. For example if you had a hyperlink that said "more details"
and that link opened a small pop-up with details related to the primary
windows content.

This should not be confused with the intrusive advertising technique of
"pop-up's", that pop-over or pop-under without the visitor's consent or
prior knowledge.

To launch our window we need to use a small snippet of JavaScript. Publisher
has no built-in support for scripting so you use the HTML Code Fragment
dialog to insert the script.

The HTML Code Fragment dialog is located in the Insert menu, and the dialog
is drawn on the page where it is needed like you do with a text box or
picture frame.

Our snippet of code contains the hyperlink so you will insert the code
fragment on your page where you are wanting the hyperlink to be located.
Simply copy and paste the following code:

<a
href="javascript:windowname_window=window.open('pagename.htm','windowname_window','toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=0,width=400,
height=400');windowname_window.focus()">Link Text Display</a>

Obviously you need a web page that this link is opening, that web page is
what is specified in place of "pagename.htm". Replace the link text display
string with your desired hyperlink text.

You will set the width and height numbers to the pixel sizes you want the
web page to be sized to in the pop-up. If you want the visitor to be able to
resize the window change the resizable variable to 1. If you want scroll
bars to not display set the variable for that to 0. Other common settings
you may want to set are - display toolbar, status bar, menubar - yes is 1,
no is 0.

If you use this snippet more than once on a page you will need to change the
"windowname" in each snippet to enable them to differentiate themselves on
the page.

You can see an example of this pop-up technique by visiting barvin.com and
clicking the Contact Us link at the bottom of the page. David Bartosik"

DavidF
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top