G
Gurlonthesun
I know I have posted here before...is there a way to search for previous
posts without having to post again?
posts without having to post again?
JT said:Due a search. Right below when it says "Discussions in FrontPage General
Questions" is a 'Search For:' box. If you remember the title or some of
the
title of you orgional Post you can search for it. If it was resent you
can
also scroll down to the proper date and find it.
Weird...that is the code that was put in using the behavior from
FrontPage....why would it be written like that if it wasn't going to work
properly?
Anyway, your solution worked GREAT!!! I have my hand and my little popup
window, so thank you very much!!
Can you tell me how to put a "Print This Page" link in the window? Or a
little printer icon?
John Malone said:OK move the style above the script..
That's not a problem...
Can you post a link to the page or upload to a test directory?
John Malone
===============
| OK I am having two problems. The first is this:
| This is what the script looks like before I put the the style in
|
| </script>
| <!--[if gte mso 9]>
| <xml><o:shapedefaults v:ext="edit" spidmax="1027"/>
| </xml><![endif]-->
| </head>
|
| and I did what you said and put the code below before the </head> but when
I
| saved it, it moves on its own and becomes this:
|
| </script>
|
| <style type="text/css">
| a#special { text-decoration:underline; }
| </style>
| <!--[if gte mso 9]>
| <xml><o:shapedefaults v:ext="edit" spidmax="1027"/>
| </xml><![endif]-->
| </head>
|
| </head>
|
| Also, I had almost exactly what you did for the code for the window and
| hand, the only difference being I have a </b> between here </a></font> **
| Here</div>, and if I take it out all the text on the page gets messed up.
I
| still have no hand and no underlining. ??? What is the problem?
|
| "John Malone" wrote:
|
| > See if this works....
| > If there are no styles on the top of the page.
| > In the <head> just before the </head> (in code view)
| >
| > <style type="text/css">
| > a#special { text-decoration:underline; }
| > </style>
| > </head>
| >
| > Then in the body (where you need the link)
| >
| > <a id="special" href="Directions.htm" target="_blank"
| > onclick="FP_openNewWindow('400', '400', false, false, false, false,
| > false,false, 'Directions', /*href*/'Directions.htm');return false">Click
| > Here
| > For Directions To Our Offices</a></font></div>
| >
| > That should work...
| > If you are getting an error in preview try saving the page and File |
| > preview in Browser...
| >
| > John Malone
| > =================
| > | > | John,
| > |
| > | I tried to input this information into the new page I am doing and for
the
| > | life of me can not get it to work...This is the code I have so
far....I
| > know
| > | it has an error, but I really need to get the little hand working.
Can
| > you
| > | help?
| > |
| > | "<p align="center">
| > | <b>
| > | <font face="Arial" color="#FFFFFF" <a id="special"
href="Directions.htm"
| > | target="_blank" onclick="FP_openNewWindow('400', '400', false, false,
| > false,
| > | false, false, false, 'Directions', /*href*/'directions.htm'); return
| > false">
| > | For Directions to our Office</a></font></b></div>
| > | </font></div>"
| > |
| > | "John Malone" wrote:
| > |
| > | > If you are using Outlook Express try this..
| > | >
| > | > news://msnews.microsoft.com/microsoft.public.frontpage.client
| > | >
| > | > John Malone
| > | > =================
| > | >
| > | > FYI THIS MIGHT HELP!!!!!!!!!!!!!!!!!!!!!
| > | > (The Post I have)
| > | >
| > | > > Weird...that is the code that was put in using the behavior from
| > | > > FrontPage....why would it be written like that if it wasn't going
to
| > work
| > | > > properly?
| > | >
| > | > Because you had selected the <u> tag when you applied it, and FP did
not
| > | > stop you from doing that (it should have).
| > | >
| > | > > Anyway, your solution worked GREAT!!! I have my hand and my
little
| > popup
| > | > > window, so thank you very much!!
| > | >
| > | > You're welcome. The lesson here is - anytime you do NOT get the
| > pointer,
| > | > check your code. It means you have applied the event to something
that
| > the
| > | > browser doesn't expect to have events applied to.
| > | >
| > | > > Can you tell me how to put a "Print This Page" link in the window?
Or
| > a
| > | > > little printer icon?
| > | >
| > | > All programatic print functions will fail on IE5/Mac, so here is the
| > best
| > | > you can do -
| > | >
| > | > Put this in the head of the document -
| > | >
| > | > <script type="text/javascript">
| > | > function print_page(where){
| > | > var is_mac=(navigator.platform.indexOf("ac") != -1);
| > | > (document.all && is_mac)?
| > | > alert("Select \"Print\" from the menu") : where?
where.window.print() :
| > | > window.print();
| > | > }
| > | >
| > | > function writeOutPrintLink(){
| > | > document.getElementById('printLink').innerHTML = '<a
| > | > href="javascriptrint_page();">Print this</a>'
| > | >
| > | > }
| > | >
| > | > </script>
| > | >
| > | > Adjust the body tag of the document as follows -
| > | >
| > | > <body ... onload="writeOutPrintLink();"> (where the ellipsis
indicates
| > | > already existing attributes, if any)
| > | > <span id="printLink"></span>
| > | >
| > | > That way, the link only shows up if you have javascript enabled.
| > | >
| > | > --
| > | > Murray
| > | > ============
| > | >
message
| > | > | > | > > Weird...that is the code that was put in using the behavior from
| > | > > Frontpage....why would it be written like that if it wasn't going
to
| > work
| > | > > properly?
| > | > >
| > | > > Anyway, your solution worked GREAT!!! I have my hand and my
little
| > popup
| > | > > window, so thank you very much!!
| > | > >
| > | > > Can you tell me how to put a "Print This Page" link in the window?
Or
| > a
| > | > > little printer icon?
| > | > >
| > | > > Dawn
| > | > >
| > | > > "Murray" wrote:
| > | > >
| > | > >> You have applied the event to a <u> tag, which is not going to
work
| > | > >> reliably, not going to validate, and is just unethical! 8)
| > | > >>
| > | > >> Change that code to this -
| > | > >>
| > | > >> <a id="special" href="Directions.htm" target="_blank"
| > | > >> onclick="FP_openNewWindow('400', '400', false, false, false,
false,
| > | > >> false,
| > | > >> false, 'Directions', /*href*/'Directions.htm');return
false">Click
| > Here
| > | > >> For
| > | > >> Directions To Our Offices</a></font></div>
| > | > >>
| > | > >> and with this CSS -
| > | > >>
| > | > >> a#special { text-decoration:underline; }
| > | > >>
| > | > >> you will get exactly what you want, in addition to having a link
that
| > | > >> works
| > | > >> even when javascript is disabled (your originaly invalid
construction
| > | > >> would
| > | > >> not have).
| > | > >>
| > | > >> --
| > | > >> Murray
| > | > >> ============
| > | > >>
| > message
| > | > >> | > | > >> > Sorry for the multiple postings of this question, but when I
posted
| > | > >> > before
| > | > >> > I
| > | > >> > forgot to check the Notify me box, and no matter how hard I
| > searched I
| > | > >> > could
| > | > >> > NOT find my original postings....
| > | > >> > Anyway, this is not for an image. It is for a popup window
opened
| > with
| > | > >> > onclick behavior. I realize that I can create a hyper link to
a
| > new
| > | > >> > window
| > | > >> > and get a "hand" but I don't want/need a full window, and the
popup
| > one
| > | > >> > works
| > | > >> > great for my purposes. The only problem is that people need to
| > know
| > | > >> > where
| > | > >> > to
| > | > >> > click, and unless I specify "Click here for directions" (which
I
| > have
| > | > >> > now
| > | > >> > and
| > | > >> > think looks HORRID) no one is ever going to know to do it.
Here is
| > the
| > | > >> > code
| > | > >> > I have for the window....
| > | > >> >
| > | > >> > <u onclick="FP_openNewWindow('400', '400', false, false, false,
| > false,
| > | > >> > false, false, 'Directions', /*href*/'Directions.htm')">
| > | > >> > Click Here For Directions To Our Offices</u></font></div>
| > | > >> >
| > | > >> > Also, is there a way to add a "Print this page" code to the
window
| > as
| > | > >> > well?
| > | > >> > I have a Close Window link on there, but can not figure out how
to
| > do a
| > | > >> > one.
| > | > >> >
| > | > >> > Dawn
| > | > >> >
| > | > >> >
| > | > >> > "Murray" wrote:
| > | > >> >
| > | > >> >> Yes, but if you don't need to use it, then don't use it. And
this
| > | > >> >> poster
| > | > >> >> doesn't.
| > | > >> >>
| > | > >> >> --
| > | > >> >> Murray
| > | > >> >> ============
| > | > >> >>
| > | > >> >> "clintonG" <[email protected]>
wrote in
| > | > >> >> message
| > | > >> >> | > | > >> >> > The correct declaration follows:
| > | > >> >> >
| > | > >> >> > // IE
| > | > >> >> > cursor: hand;
| > | > >> >> > // others
| > | > >> >> > cursor: pointer;
| > | > >> >> >
| > | > >> >> >
| > | > >> >> > <%= Clinton Gallagher
| > | > >> >> > METROmilwaukee (sm) "A Regional Information Service"
John Malone said:Try This simple page (copy paste into new page code view)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Demo 8</title>
<style type="text/css">
a#special { text-decoration:underline; }
</style>
<script language="JavaScript">
<!--
function FP_openNewWindow(w,h,nav,loc,sts,menu,scroll,resize,name,url)
{//v1.0
var windowProperties=''; if(nav==false) windowProperties+='toolbar=no,';
else
windowProperties+='toolbar=yes,'; if(loc==false)
windowProperties+='location=no,';
else windowProperties+='location=yes,'; if(sts==false)
windowProperties+='status=no,';
else windowProperties+='status=yes,'; if(menu==false)
windowProperties+='menubar=no,';
else windowProperties+='menubar=yes,'; if(scroll==false)
windowProperties+='scrollbars=no,';
else windowProperties+='scrollbars=yes,'; if(resize==false)
windowProperties+='resizable=no,';
else windowProperties+='resizable=yes,'; if(w!="")
windowProperties+='width='+w+',';
if(h!="") windowProperties+='height='+h; if(windowProperties!="") {
if( windowProperties.charAt(windowProperties.length-1)==',')
windowProperties=windowProperties.substring(0,windowProperties.length-1);
}
window.open(url,name,windowProperties);
}
// -->
</script>
</head>
<body>
<p>
<a id="special" href="javascript:;" onclick="FP_openNewWindow('400', '400',
false, false, false, false, true, false, '',
/*href*/'Directions.htm')">Click Here for directions</a>
</p>
</body>
</html>
That should give you the link to the directions page and have the "Hand
cursor"
John Malone
==================
| http://www.mandmconstructionservices.com/Pages/contactus.htm
|
| That is the link for the page. I put the style above the script, but I
| still have no hand for a cursor or an underlined text.
|
| "John Malone" wrote:
|
| > OK move the style above the script..
| > That's not a problem...
| >
| > Can you post a link to the page or upload to a test directory?
| >
| > John Malone
| > ===============
| > | > | OK I am having two problems. The first is this:
| > | This is what the script looks like before I put the the style in
| > |
| > | </script>
| > | <!--[if gte mso 9]>
| > | <xml><o:shapedefaults v:ext="edit" spidmax="1027"/>
| > | </xml><![endif]-->
| > | </head>
| > |
| > | and I did what you said and put the code below before the </head> but
when
| > I
| > | saved it, it moves on its own and becomes this:
| > |
| > | </script>
| > |
| > | <style type="text/css">
| > | a#special { text-decoration:underline; }
| > | </style>
| > | <!--[if gte mso 9]>
| > | <xml><o:shapedefaults v:ext="edit" spidmax="1027"/>
| > | </xml><![endif]-->
| > | </head>
| > |
| > | </head>
| > |
| > | Also, I had almost exactly what you did for the code for the window
and
| > | hand, the only difference being I have a </b> between here </a></font>
**
| > | Here</div>, and if I take it out all the text on the page gets messed
up.
| > I
| > | still have no hand and no underlining. ??? What is the problem?
| > |
| > | "John Malone" wrote:
| > |
| > | > See if this works....
| > | > If there are no styles on the top of the page.
| > | > In the <head> just before the </head> (in code view)
| > | >
| > | > <style type="text/css">
| > | > a#special { text-decoration:underline; }
| > | > </style>
| > | > </head>
| > | >
| > | > Then in the body (where you need the link)
| > | >
| > | > <a id="special" href="Directions.htm" target="_blank"
| > | > onclick="FP_openNewWindow('400', '400', false, false, false, false,
| > | > false,false, 'Directions', /*href*/'Directions.htm');return
false">Click
| > | > Here
| > | > For Directions To Our Offices</a></font></div>
| > | >
| > | > That should work...
| > | > If you are getting an error in preview try saving the page and File
|
| > | > preview in Browser...
| > | >
| > | > John Malone
| > | > =================
message
| > | > | > | > | John,
| > | > |
| > | > | I tried to input this information into the new page I am doing and
for
| > the
| > | > | life of me can not get it to work...This is the code I have so
| > far....I
| > | > know
| > | > | it has an error, but I really need to get the little hand working.
| > Can
| > | > you
| > | > | help?
| > | > |
| > | > | "<p align="center">
| > | > | <b>
| > | > | <font face="Arial" color="#FFFFFF" <a id="special"
| > href="Directions.htm"
| > | > | target="_blank" onclick="FP_openNewWindow('400', '400', false,
false,
| > | > false,
| > | > | false, false, false, 'Directions', /*href*/'directions.htm');
return
| > | > false">
| > | > | For Directions to our Office</a></font></b></div>
| > | > | </font></div>"
| > | > |
| > | > | "John Malone" wrote:
| > | > |
| > | > | > If you are using Outlook Express try this..
| > | > | >
| > | > | > news://msnews.microsoft.com/microsoft.public.frontpage.client
| > | > | >
| > | > | > John Malone
| > | > | > =================
| > | > | >
| > | > | > FYI THIS MIGHT HELP!!!!!!!!!!!!!!!!!!!!!
| > | > | > (The Post I have)
| > | > | >
| > | > | > > Weird...that is the code that was put in using the behavior
from
| > | > | > > FrontPage....why would it be written like that if it wasn't
going
| > to
| > | > work
| > | > | > > properly?
| > | > | >
| > | > | > Because you had selected the <u> tag when you applied it, and FP
did
| > not
| > | > | > stop you from doing that (it should have).
| > | > | >
| > | > | > > Anyway, your solution worked GREAT!!! I have my hand and my
| > little
| > | > popup
| > | > | > > window, so thank you very much!!
| > | > | >
| > | > | > You're welcome. The lesson here is - anytime you do NOT get the
| > | > pointer,
| > | > | > check your code. It means you have applied the event to
something
| > that
| > | > the
| > | > | > browser doesn't expect to have events applied to.
| > | > | >
| > | > | > > Can you tell me how to put a "Print This Page" link in the
window?
| > Or
| > | > a
| > | > | > > little printer icon?
| > | > | >
| > | > | > All programatic print functions will fail on IE5/Mac, so here is
the
| > | > best
| > | > | > you can do -
| > | > | >
| > | > | > Put this in the head of the document -
| > | > | >
| > | > | > <script type="text/javascript">
| > | > | > function print_page(where){
| > | > | > var is_mac=(navigator.platform.indexOf("ac") != -1);
| > | > | > (document.all && is_mac)?
| > | > | > alert("Select \"Print\" from the menu") : where?
| > where.window.print() :
| > | > | > window.print();
| > | > | > }
| > | > | >
| > | > | > function writeOutPrintLink(){
| > | > | > document.getElementById('printLink').innerHTML = '<a
| > | > | > href="javascriptrint_page();">Print this</a>'
| > | > | >
| > | > | > }
| > | > | >
| > | > | > </script>
| > | > | >
| > | > | > Adjust the body tag of the document as follows -
| > | > | >
| > | > | > <body ... onload="writeOutPrintLink();"> (where the ellipsis
| > indicates
| > | > | > already existing attributes, if any)
| > | > | > <span id="printLink"></span>
| > | > | >
| > | > | > That way, the link only shows up if you have javascript enabled.
| > | > | >
| > | > | > --
| > | > | > Murray
| > | > | > ============
| > | > | >
| > message
| > | > | > | > | > | > > Weird...that is the code that was put in using the behavior
from
| > | > | > > Frontpage....why would it be written like that if it wasn't
going
| > to
| > | > work
| > | > | > > properly?
| > | > | > >
| > | > | > > Anyway, your solution worked GREAT!!! I have my hand and my
| > little
| > | > popup
| > | > | > > window, so thank you very much!!
| > | > | > >
| > | > | > > Can you tell me how to put a "Print This Page" link in the
window?
| > Or
| > | > a
| > | > | > > little printer icon?
| > | > | > >
| > | > | > > Dawn
| > | > | > >
| > | > | > > "Murray" wrote:
| > | > | > >
| > | > | > >> You have applied the event to a <u> tag, which is not going
to
| > work
| > | > | > >> reliably, not going to validate, and is just unethical! 8)
| > | > | > >>
| > | > | > >> Change that code to this -
| > | > | > >>
| > | > | > >> <a id="special" href="Directions.htm" target="_blank"
| > | > | > >> onclick="FP_openNewWindow('400', '400', false, false, false,
| > false,
| > | > | > >> false,
| > | > | > >> false, 'Directions', /*href*/'Directions.htm');return
| > false">Click
| > | > Here
| > | > | > >> For
| > | > | > >> Directions To Our Offices</a></font></div>
| > | > | > >>
| > | > | > >> and with this CSS -
| > | > | > >>
| > | > | > >> a#special { text-decoration:underline; }
| > | > | > >>
| > | > | > >> you will get exactly what you want, in addition to having a
link
| > that
| > | > | > >> works
| > | > | > >> even when javascript is disabled (your originaly invalid
| > construction
| > | > | > >> would
| > | > | > >> not have).
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.