Hi, I am running FP2003 on a Windows XP-Pro system.

I have developed a few sites and use a js to provide a Date and Time on each
page (this is embedded into each page via dynamic template) which works very
well..........
Until I insert an Interactive Button??

At this point, I get the Date section of the js, but not the time.

The coding to run the js and produce the date and time on the page is:

(1) <div>
(2) <table cellpadding="0" cellspacing="0" width="100%" border="0"
style="border-left-width: 1px; border-right-width: 1px; border-top-width:
1px; border-bottom-style: solid; border-bottom-width: 1px">
(3) <tr>
(4) <td width="100%">
(5) <p align="center">
(6) <font color="#000000" face="Verdana, Arial, Helvetica, sans-serif"
size=2>
(7) <script language=JavaScript>document.write(dateString(new
Date()))</script></font>
(8) <font color="#000000" id=Clock face="Verdana, Arial,
Helvetica, sans-serif"
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></td>
(9) </tr>
(10) </table>
(11) </div>


Obviously the bracketed numbers are not part of the coding, I have put these
here for ease of explanation.

With the Interactive Button inserted, I only get as far as line (7) and the
rest does not appear.

Does anyone have any ideas how I may cure this, or what I have wrong with
this code.

Kind regards,
Peter

Re: Javascript and Interactive Button Conflict by Stefan

Stefan
Mon Mar 07 04:21:03 CST 2005

Explain where the IB comes in
- they just use images and JavaScript mouseover scripts
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
_____________________________________________


"Peter_G" <xpanswers@hotmail.com> wrote in message news:%23xgyyHpIFHA.3928@TK2MSFTNGP09.phx.gbl...
| Hi, I am running FP2003 on a Windows XP-Pro system.
|
| I have developed a few sites and use a js to provide a Date and Time on each
| page (this is embedded into each page via dynamic template) which works very
| well..........
| Until I insert an Interactive Button??
|
| At this point, I get the Date section of the js, but not the time.
|
| The coding to run the js and produce the date and time on the page is:
|
| (1) <div>
| (2) <table cellpadding="0" cellspacing="0" width="100%" border="0"
| style="border-left-width: 1px; border-right-width: 1px; border-top-width:
| 1px; border-bottom-style: solid; border-bottom-width: 1px">
| (3) <tr>
| (4) <td width="100%">
| (5) <p align="center">
| (6) <font color="#000000" face="Verdana, Arial, Helvetica, sans-serif"
| size=2>
| (7) <script language=JavaScript>document.write(dateString(new
| Date()))</script></font>
| (8) <font color="#000000" id=Clock face="Verdana, Arial,
| Helvetica, sans-serif"
| size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></td>
| (9) </tr>
| (10) </table>
| (11) </div>
|
|
| Obviously the bracketed numbers are not part of the coding, I have put these
| here for ease of explanation.
|
| With the Interactive Button inserted, I only get as far as line (7) and the
| rest does not appear.
|
| Does anyone have any ideas how I may cure this, or what I have wrong with
| this code.
|
| Kind regards,
| Peter
|
|



Re: Javascript and Interactive Button Conflict by Peter_G

Peter_G
Mon Mar 07 04:44:17 CST 2005

Hi Stefan

The easiest way for me to show you this is for you to take a look at
http://www.xppg.com which is my development web space.

If you click on the Builds_2 link button on the left hand side, you will see
the page with the clock working and no IB. Then if you look at Builds, you
will see the IB at the bottom of the page, and the clock not working
correctly.

Kind regards,

Peter
"Stefan B Rusynko" <sbr_enjoy@hotmail.com> wrote in message
news:eFGWa$vIFHA.1280@TK2MSFTNGP09.phx.gbl...
> Explain where the IB comes in
> - they just use images and JavaScript mouseover scripts
> --
>
> _____________________________________________
> SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
> "Warning - Using the F1 Key will not break anything!" (-;
> To find the best Newsgroup for FrontPage support see:
> http://www.net-sites.com/sitebuilder/newsgroups.asp
> _____________________________________________
>
>
> "Peter_G" <xpanswers@hotmail.com> wrote in message
> news:%23xgyyHpIFHA.3928@TK2MSFTNGP09.phx.gbl...
> | Hi, I am running FP2003 on a Windows XP-Pro system.
> |
> | I have developed a few sites and use a js to provide a Date and Time on
> each
> | page (this is embedded into each page via dynamic template) which works
> very
> | well..........
> | Until I insert an Interactive Button??
> |
> | At this point, I get the Date section of the js, but not the time.
> |
> | The coding to run the js and produce the date and time on the page is:
> |
> | (1) <div>
> | (2) <table cellpadding="0" cellspacing="0" width="100%" border="0"
> | style="border-left-width: 1px; border-right-width: 1px;
> border-top-width:
> | 1px; border-bottom-style: solid; border-bottom-width: 1px">
> | (3) <tr>
> | (4) <td width="100%">
> | (5) <p align="center">
> | (6) <font color="#000000" face="Verdana, Arial, Helvetica, sans-serif"
> | size=2>
> | (7) <script
> language=JavaScript>document.write(dateString(new
> | Date()))</script></font>
> | (8) <font color="#000000" id=Clock face="Verdana, Arial,
> | Helvetica, sans-serif"
> | size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></td>
> | (9) </tr>
> | (10) </table>
> | (11) </div>
> |
> |
> | Obviously the bracketed numbers are not part of the coding, I have put
> these
> | here for ease of explanation.
> |
> | With the Interactive Button inserted, I only get as far as line (7) and
> the
> | rest does not appear.
> |
> | Does anyone have any ideas how I may cure this, or what I have wrong
> with
> | this code.
> |
> | Kind regards,
> | Peter
> |
> |
>
>



Re: Javascript and Interactive Button Conflict by Stefan

Stefan
Mon Mar 07 04:55:34 CST 2005

Don't see a Builds_2 link at http://www.xppg.com
- all the IB links on that page show the date
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
_____________________________________________


"Peter_G" <xpanswers@hotmail.com> wrote in message news:O4TjYKwIFHA.720@TK2MSFTNGP10.phx.gbl...
| Hi Stefan
|
| The easiest way for me to show you this is for you to take a look at
| http://www.xppg.com which is my development web space.
|
| If you click on the Builds_2 link button on the left hand side, you will see
| the page with the clock working and no IB. Then if you look at Builds, you
| will see the IB at the bottom of the page, and the clock not working
| correctly.
|
| Kind regards,
|
| Peter
| "Stefan B Rusynko" <sbr_enjoy@hotmail.com> wrote in message
| news:eFGWa$vIFHA.1280@TK2MSFTNGP09.phx.gbl...
| > Explain where the IB comes in
| > - they just use images and JavaScript mouseover scripts
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > _____________________________________________
| >
| >
| > "Peter_G" <xpanswers@hotmail.com> wrote in message
| > news:%23xgyyHpIFHA.3928@TK2MSFTNGP09.phx.gbl...
| > | Hi, I am running FP2003 on a Windows XP-Pro system.
| > |
| > | I have developed a few sites and use a js to provide a Date and Time on
| > each
| > | page (this is embedded into each page via dynamic template) which works
| > very
| > | well..........
| > | Until I insert an Interactive Button??
| > |
| > | At this point, I get the Date section of the js, but not the time.
| > |
| > | The coding to run the js and produce the date and time on the page is:
| > |
| > | (1) <div>
| > | (2) <table cellpadding="0" cellspacing="0" width="100%" border="0"
| > | style="border-left-width: 1px; border-right-width: 1px;
| > border-top-width:
| > | 1px; border-bottom-style: solid; border-bottom-width: 1px">
| > | (3) <tr>
| > | (4) <td width="100%">
| > | (5) <p align="center">
| > | (6) <font color="#000000" face="Verdana, Arial, Helvetica, sans-serif"
| > | size=2>
| > | (7) <script
| > language=JavaScript>document.write(dateString(new
| > | Date()))</script></font>
| > | (8) <font color="#000000" id=Clock face="Verdana, Arial,
| > | Helvetica, sans-serif"
| > | size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></td>
| > | (9) </tr>
| > | (10) </table>
| > | (11) </div>
| > |
| > |
| > | Obviously the bracketed numbers are not part of the coding, I have put
| > these
| > | here for ease of explanation.
| > |
| > | With the Interactive Button inserted, I only get as far as line (7) and
| > the
| > | rest does not appear.
| > |
| > | Does anyone have any ideas how I may cure this, or what I have wrong
| > with
| > | this code.
| > |
| > | Kind regards,
| > | Peter
| > |
| > |
| >
| >
|
|



Re: Javascript and Interactive Button Conflict by Peter_G

Peter_G
Mon Mar 07 05:03:32 CST 2005

Sorry Stefan,

I forgot to publish again before I posted.

It is up and running ok now.

My fault.

Peter


"Stefan B Rusynko" <sbr_enjoy@hotmail.com> wrote in message
news:e5r6wPwIFHA.3076@tk2msftngp13.phx.gbl...
> Don't see a Builds_2 link at http://www.xppg.com
> - all the IB links on that page show the date
> --
>
> _____________________________________________
> SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
> "Warning - Using the F1 Key will not break anything!" (-;
> To find the best Newsgroup for FrontPage support see:
> http://www.net-sites.com/sitebuilder/newsgroups.asp
> _____________________________________________
>
>
> "Peter_G" <xpanswers@hotmail.com> wrote in message
> news:O4TjYKwIFHA.720@TK2MSFTNGP10.phx.gbl...
> | Hi Stefan
> |
> | The easiest way for me to show you this is for you to take a look at
> | http://www.xppg.com which is my development web space.
> |
> | If you click on the Builds_2 link button on the left hand side, you will
> see
> | the page with the clock working and no IB. Then if you look at Builds,
> you
> | will see the IB at the bottom of the page, and the clock not working
> | correctly.
> |
> | Kind regards,
> |
> | Peter
> | "Stefan B Rusynko" <sbr_enjoy@hotmail.com> wrote in message
> | news:eFGWa$vIFHA.1280@TK2MSFTNGP09.phx.gbl...
> | > Explain where the IB comes in
> | > - they just use images and JavaScript mouseover scripts
> | > --
> | >
> | > _____________________________________________
> | > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
> | > "Warning - Using the F1 Key will not break anything!" (-;
> | > To find the best Newsgroup for FrontPage support see:
> | > http://www.net-sites.com/sitebuilder/newsgroups.asp
> | > _____________________________________________
> | >
> | >
> | > "Peter_G" <xpanswers@hotmail.com> wrote in message
> | > news:%23xgyyHpIFHA.3928@TK2MSFTNGP09.phx.gbl...
> | > | Hi, I am running FP2003 on a Windows XP-Pro system.
> | > |
> | > | I have developed a few sites and use a js to provide a Date and Time
> on
> | > each
> | > | page (this is embedded into each page via dynamic template) which
> works
> | > very
> | > | well..........
> | > | Until I insert an Interactive Button??
> | > |
> | > | At this point, I get the Date section of the js, but not the time.
> | > |
> | > | The coding to run the js and produce the date and time on the page
> is:
> | > |
> | > | (1) <div>
> | > | (2) <table cellpadding="0" cellspacing="0" width="100%" border="0"
> | > | style="border-left-width: 1px; border-right-width: 1px;
> | > border-top-width:
> | > | 1px; border-bottom-style: solid; border-bottom-width: 1px">
> | > | (3) <tr>
> | > | (4) <td width="100%">
> | > | (5) <p align="center">
> | > | (6) <font color="#000000" face="Verdana, Arial, Helvetica,
> sans-serif"
> | > | size=2>
> | > | (7) <script
> | > language=JavaScript>document.write(dateString(new
> | > | Date()))</script></font>
> | > | (8) <font color="#000000" id=Clock face="Verdana,
> Arial,
> | > | Helvetica, sans-serif"
> | > | size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></td>
> | > | (9) </tr>
> | > | (10) </table>
> | > | (11) </div>
> | > |
> | > |
> | > | Obviously the bracketed numbers are not part of the coding, I have
> put
> | > these
> | > | here for ease of explanation.
> | > |
> | > | With the Interactive Button inserted, I only get as far as line (7)
> and
> | > the
> | > | rest does not appear.
> | > |
> | > | Does anyone have any ideas how I may cure this, or what I have wrong
> | > with
> | > | this code.
> | > |
> | > | Kind regards,
> | > | Peter
> | > |
> | > |
> | >
> | >
> |
> |
>
>



Re: Javascript and Interactive Button Conflict by Peter_G

Peter_G
Tue Mar 08 07:22:04 CST 2005

Hi All,

As there appears to be no answer for my problem in this group, is there
another group I could post this question in that may be able to help me?

Regards,

Peter.

"Peter_G" <xpanswers@hotmail.com> wrote in message
news:%23xgyyHpIFHA.3928@TK2MSFTNGP09.phx.gbl...
> Hi, I am running FP2003 on a Windows XP-Pro system.
>
> I have developed a few sites and use a js to provide a Date and Time on
> each page (this is embedded into each page via dynamic template) which
> works very well..........
> Until I insert an Interactive Button??
>
> At this point, I get the Date section of the js, but not the time.
>
> The coding to run the js and produce the date and time on the page is:
>
> (1) <div>
> (2) <table cellpadding="0" cellspacing="0" width="100%" border="0"
> style="border-left-width: 1px; border-right-width: 1px; border-top-width:
> 1px; border-bottom-style: solid; border-bottom-width: 1px">
> (3) <tr>
> (4) <td width="100%">
> (5) <p align="center">
> (6) <font color="#000000" face="Verdana, Arial, Helvetica, sans-serif"
> size=2>
> (7) <script
> language=JavaScript>document.write(dateString(new Date()))</script></font>
> (8) <font color="#000000" id=Clock face="Verdana, Arial,
> Helvetica, sans-serif"
> size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></td>
> (9) </tr>
> (10) </table>
> (11) </div>
>
>
> Obviously the bracketed numbers are not part of the coding, I have put
> these here for ease of explanation.
>
> With the Interactive Button inserted, I only get as far as line (7) and
> the rest does not appear.
>
> Does anyone have any ideas how I may cure this, or what I have wrong with
> this code.
>
> Kind regards,
> Peter
>



Re: Javascript and Interactive Button Conflict by Stefan

Stefan
Tue Mar 08 08:26:34 CST 2005

No

I don't see any problem w/ your date script at
http://www.xppg.com/builds_2.html when I select Builds_2 from http://www.xppg.com/

Explain your problem w/ the IB and date script

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
_____________________________________________


"Peter_G" <xpanswers@hotmail.com> wrote in message news:u0X5OH%23IFHA.2852@TK2MSFTNGP09.phx.gbl...
| Hi All,
|
| As there appears to be no answer for my problem in this group, is there
| another group I could post this question in that may be able to help me?
|
| Regards,
|
| Peter.
|
| "Peter_G" <xpanswers@hotmail.com> wrote in message
| news:%23xgyyHpIFHA.3928@TK2MSFTNGP09.phx.gbl...
| > Hi, I am running FP2003 on a Windows XP-Pro system.
| >
| > I have developed a few sites and use a js to provide a Date and Time on
| > each page (this is embedded into each page via dynamic template) which
| > works very well..........
| > Until I insert an Interactive Button??
| >
| > At this point, I get the Date section of the js, but not the time.
| >
| > The coding to run the js and produce the date and time on the page is:
| >
| > (1) <div>
| > (2) <table cellpadding="0" cellspacing="0" width="100%" border="0"
| > style="border-left-width: 1px; border-right-width: 1px; border-top-width:
| > 1px; border-bottom-style: solid; border-bottom-width: 1px">
| > (3) <tr>
| > (4) <td width="100%">
| > (5) <p align="center">
| > (6) <font color="#000000" face="Verdana, Arial, Helvetica, sans-serif"
| > size=2>
| > (7) <script
| > language=JavaScript>document.write(dateString(new Date()))</script></font>
| > (8) <font color="#000000" id=Clock face="Verdana, Arial,
| > Helvetica, sans-serif"
| > size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></td>
| > (9) </tr>
| > (10) </table>
| > (11) </div>
| >
| >
| > Obviously the bracketed numbers are not part of the coding, I have put
| > these here for ease of explanation.
| >
| > With the Interactive Button inserted, I only get as far as line (7) and
| > the rest does not appear.
| >
| > Does anyone have any ideas how I may cure this, or what I have wrong with
| > this code.
| >
| > Kind regards,
| > Peter
| >
|
|



Re: Javascript and Interactive Button Conflict by Peter_G

Peter_G
Tue Mar 08 09:32:34 CST 2005

Hi Stefan

The problem is that on http://www.xppg.com/builds_2.html is that you can see
the date and the time, but on http://www.xppg.com/builds.html which has the
IB, you can only see the date and not the time.

The only difference between these two pages is the inclusion of the IB.

This happens on every page that I insert and IB on every site that I design
that uses this date and time script.

Regards,

Peter


"Stefan B Rusynko" <sbr_enjoy@hotmail.com> wrote in message
news:eg%23Zfs%23IFHA.2132@TK2MSFTNGP14.phx.gbl...
> No
>
> I don't see any problem w/ your date script at
> http://www.xppg.com/builds_2.html when I select Builds_2 from
> http://www.xppg.com/
>
> Explain your problem w/ the IB and date script
>
> --
>
> _____________________________________________
> SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
> "Warning - Using the F1 Key will not break anything!" (-;
> To find the best Newsgroup for FrontPage support see:
> http://www.net-sites.com/sitebuilder/newsgroups.asp
> _____________________________________________
>
>
> "Peter_G" <xpanswers@hotmail.com> wrote in message
> news:u0X5OH%23IFHA.2852@TK2MSFTNGP09.phx.gbl...
> | Hi All,
> |
> | As there appears to be no answer for my problem in this group, is there
> | another group I could post this question in that may be able to help me?
> |
> | Regards,
> |
> | Peter.
> |
> | "Peter_G" <xpanswers@hotmail.com> wrote in message
> | news:%23xgyyHpIFHA.3928@TK2MSFTNGP09.phx.gbl...
> | > Hi, I am running FP2003 on a Windows XP-Pro system.
> | >
> | > I have developed a few sites and use a js to provide a Date and Time
> on
> | > each page (this is embedded into each page via dynamic template) which
> | > works very well..........
> | > Until I insert an Interactive Button??
> | >
> | > At this point, I get the Date section of the js, but not the time.
> | >
> | > The coding to run the js and produce the date and time on the page is:
> | >
> | > (1) <div>
> | > (2) <table cellpadding="0" cellspacing="0" width="100%" border="0"
> | > style="border-left-width: 1px; border-right-width: 1px;
> border-top-width:
> | > 1px; border-bottom-style: solid; border-bottom-width: 1px">
> | > (3) <tr>
> | > (4) <td width="100%">
> | > (5) <p align="center">
> | > (6) <font color="#000000" face="Verdana, Arial, Helvetica,
> sans-serif"
> | > size=2>
> | > (7) <script
> | > language=JavaScript>document.write(dateString(new
> Date()))</script></font>
> | > (8) <font color="#000000" id=Clock face="Verdana, Arial,
> | > Helvetica, sans-serif"
> | > size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></td>
> | > (9) </tr>
> | > (10) </table>
> | > (11) </div>
> | >
> | >
> | > Obviously the bracketed numbers are not part of the coding, I have put
> | > these here for ease of explanation.
> | >
> | > With the Interactive Button inserted, I only get as far as line (7)
> and
> | > the rest does not appear.
> | >
> | > Does anyone have any ideas how I may cure this, or what I have wrong
> with
> | > this code.
> | >
> | > Kind regards,
> | > Peter
> | >
> |
> |
>
>



Re: Javascript and Interactive Button Conflict by Steve

Steve
Tue Mar 08 09:56:12 CST 2005

Try changing this: <script language="JavaScript" src="clock.js"></script>
to this: <script type="text/javascript" src="clock.js"></script>

It "should" keep the scripts independent of each other

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
.......................with a computer

"Peter_G" <xpanswers@hotmail.com> wrote in message news:egA$HQ$IFHA.1200@TK2MSFTNGP10.phx.gbl...
> Hi Stefan
>
> The problem is that on http://www.xppg.com/builds_2.html is that you can see
> the date and the time, but on http://www.xppg.com/builds.html which has the
> IB, you can only see the date and not the time.
>
> The only difference between these two pages is the inclusion of the IB.
>
> This happens on every page that I insert and IB on every site that I design
> that uses this date and time script.
>
> Regards,
>
> Peter
>
>
> "Stefan B Rusynko" <sbr_enjoy@hotmail.com> wrote in message
> news:eg%23Zfs%23IFHA.2132@TK2MSFTNGP14.phx.gbl...
> > No
> >
> > I don't see any problem w/ your date script at
> > http://www.xppg.com/builds_2.html when I select Builds_2 from
> > http://www.xppg.com/
> >
> > Explain your problem w/ the IB and date script
> >
> > --
> >
> > _____________________________________________
> > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
> > "Warning - Using the F1 Key will not break anything!" (-;
> > To find the best Newsgroup for FrontPage support see:
> > http://www.net-sites.com/sitebuilder/newsgroups.asp
> > _____________________________________________
> >
> >
> > "Peter_G" <xpanswers@hotmail.com> wrote in message
> > news:u0X5OH%23IFHA.2852@TK2MSFTNGP09.phx.gbl...
> > | Hi All,
> > |
> > | As there appears to be no answer for my problem in this group, is there
> > | another group I could post this question in that may be able to help me?
> > |
> > | Regards,
> > |
> > | Peter.
> > |
> > | "Peter_G" <xpanswers@hotmail.com> wrote in message
> > | news:%23xgyyHpIFHA.3928@TK2MSFTNGP09.phx.gbl...
> > | > Hi, I am running FP2003 on a Windows XP-Pro system.
> > | >
> > | > I have developed a few sites and use a js to provide a Date and Time
> > on
> > | > each page (this is embedded into each page via dynamic template) which
> > | > works very well..........
> > | > Until I insert an Interactive Button??
> > | >
> > | > At this point, I get the Date section of the js, but not the time.
> > | >
> > | > The coding to run the js and produce the date and time on the page is:
> > | >
> > | > (1) <div>
> > | > (2) <table cellpadding="0" cellspacing="0" width="100%" border="0"
> > | > style="border-left-width: 1px; border-right-width: 1px;
> > border-top-width:
> > | > 1px; border-bottom-style: solid; border-bottom-width: 1px">
> > | > (3) <tr>
> > | > (4) <td width="100%">
> > | > (5) <p align="center">
> > | > (6) <font color="#000000" face="Verdana, Arial, Helvetica,
> > sans-serif"
> > | > size=2>
> > | > (7) <script
> > | > language=JavaScript>document.write(dateString(new
> > Date()))</script></font>
> > | > (8) <font color="#000000" id=Clock face="Verdana, Arial,
> > | > Helvetica, sans-serif"
> > | > size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></td>
> > | > (9) </tr>
> > | > (10) </table>
> > | > (11) </div>
> > | >
> > | >
> > | > Obviously the bracketed numbers are not part of the coding, I have put
> > | > these here for ease of explanation.
> > | >
> > | > With the Interactive Button inserted, I only get as far as line (7)
> > and
> > | > the rest does not appear.
> > | >
> > | > Does anyone have any ideas how I may cure this, or what I have wrong
> > with
> > | > this code.
> > | >
> > | > Kind regards,
> > | > Peter
> > | >
> > |
> > |
> >
> >
>
>



Re: Javascript and Interactive Button Conflict by Stefan

Stefan
Tue Mar 08 11:43:55 CST 2005

You can't have 2 onloads in page (but you can have multiple commands in an onload)

IBs add an onload (to preload images)
onload="FP_preloadImgs(/*url*/'images/button12F.jpg', /*url*/'images/button12E.jpg')"

Your script also has an onload
window.onload = tick;

Delete the window.onload = tick; from your script and in the body tag change
onload="FP_preloadImgs(/*url*/'images/button12F.jpg', /*url*/'images/button12E.jpg')"
to
onload="tick; FP_preloadImgs(/*url*/'images/button12F.jpg', /*url*/'images/button12E.jpg')"

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
_____________________________________________


"Peter_G" <xpanswers@hotmail.com> wrote in message news:egA$HQ$IFHA.1200@TK2MSFTNGP10.phx.gbl...
| Hi Stefan
|
| The problem is that on http://www.xppg.com/builds_2.html is that you can see
| the date and the time, but on http://www.xppg.com/builds.html which has the
| IB, you can only see the date and not the time.
|
| The only difference between these two pages is the inclusion of the IB.
|
| This happens on every page that I insert and IB on every site that I design
| that uses this date and time script.
|
| Regards,
|
| Peter
|
|
| "Stefan B Rusynko" <sbr_enjoy@hotmail.com> wrote in message
| news:eg%23Zfs%23IFHA.2132@TK2MSFTNGP14.phx.gbl...
| > No
| >
| > I don't see any problem w/ your date script at
| > http://www.xppg.com/builds_2.html when I select Builds_2 from
| > http://www.xppg.com/
| >
| > Explain your problem w/ the IB and date script
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > _____________________________________________
| >
| >
| > "Peter_G" <xpanswers@hotmail.com> wrote in message
| > news:u0X5OH%23IFHA.2852@TK2MSFTNGP09.phx.gbl...
| > | Hi All,
| > |
| > | As there appears to be no answer for my problem in this group, is there
| > | another group I could post this question in that may be able to help me?
| > |
| > | Regards,
| > |
| > | Peter.
| > |
| > | "Peter_G" <xpanswers@hotmail.com> wrote in message
| > | news:%23xgyyHpIFHA.3928@TK2MSFTNGP09.phx.gbl...
| > | > Hi, I am running FP2003 on a Windows XP-Pro system.
| > | >
| > | > I have developed a few sites and use a js to provide a Date and Time
| > on
| > | > each page (this is embedded into each page via dynamic template) which
| > | > works very well..........
| > | > Until I insert an Interactive Button??
| > | >
| > | > At this point, I get the Date section of the js, but not the time.
| > | >
| > | > The coding to run the js and produce the date and time on the page is:
| > | >
| > | > (1) <div>
| > | > (2) <table cellpadding="0" cellspacing="0" width="100%" border="0"
| > | > style="border-left-width: 1px; border-right-width: 1px;
| > border-top-width:
| > | > 1px; border-bottom-style: solid; border-bottom-width: 1px">
| > | > (3) <tr>
| > | > (4) <td width="100%">
| > | > (5) <p align="center">
| > | > (6) <font color="#000000" face="Verdana, Arial, Helvetica,
| > sans-serif"
| > | > size=2>
| > | > (7) <script
| > | > language=JavaScript>document.write(dateString(new
| > Date()))</script></font>
| > | > (8) <font color="#000000" id=Clock face="Verdana, Arial,
| > | > Helvetica, sans-serif"
| > | > size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></td>
| > | > (9) </tr>
| > | > (10) </table>
| > | > (11) </div>
| > | >
| > | >
| > | > Obviously the bracketed numbers are not part of the coding, I have put
| > | > these here for ease of explanation.
| > | >
| > | > With the Interactive Button inserted, I only get as far as line (7)
| > and
| > | > the rest does not appear.
| > | >
| > | > Does anyone have any ideas how I may cure this, or what I have wrong
| > with
| > | > this code.
| > | >
| > | > Kind regards,
| > | > Peter
| > | >
| > |
| > |
| >
| >
|
|



Re: Javascript and Interactive Button Conflict by Peter_G

Peter_G
Tue Mar 08 14:07:16 CST 2005

Hi Steve and Stefan and thanks for your replies.

Steve, no this did not work I am afraid, but thank you for the suggestion.

Stefan, I would love to be able to do as you suggest, but believe this or
not, FP will not let me!

I have deleted the line window.onload=tick; from my script (I assume that I
did not have to delete anything else).

I go to the body tag and make the change as you suggest (in fact in the end
I resorted to copying from this post and pasting it into my page) and then
try and save the changes.

This is where FP decides that I cannot do this, and after the change I end
up with this as my body tag =

<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0"
style="background-color: #F5F5F5"
onload="FP_preloadImgs(/*url*/'images/button12F.jpg',
/*url*/'images/button12E.jpg', /*url*/'images/button65.jpg',
/*url*/'images/button64.jpg'); tick">

As you can see, FP moves the tick to the end of the line!

Do you have any ideas how I can overcome this?

Regards,

Peter


"Stefan B Rusynko" <sbr_enjoy@hotmail.com> wrote in message
news:uHPWxaAJFHA.4060@TK2MSFTNGP14.phx.gbl...
> You can't have 2 onloads in page (but you can have multiple commands in an
> onload)
>
> IBs add an onload (to preload images)
> onload="FP_preloadImgs(/*url*/'images/button12F.jpg',
> /*url*/'images/button12E.jpg')"
>
> Your script also has an onload
> window.onload = tick;
>
> Delete the window.onload = tick; from your script and in the body tag
> change
> onload="FP_preloadImgs(/*url*/'images/button12F.jpg',
> /*url*/'images/button12E.jpg')"
> to
> onload="tick; FP_preloadImgs(/*url*/'images/button12F.jpg',
> /*url*/'images/button12E.jpg')"
>
> --
>
> _____________________________________________
> SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
> "Warning - Using the F1 Key will not break anything!" (-;
> To find the best Newsgroup for FrontPage support see:
> http://www.net-sites.com/sitebuilder/newsgroups.asp
> _____________________________________________
>
>
> "Peter_G" <xpanswers@hotmail.com> wrote in message
> news:egA$HQ$IFHA.1200@TK2MSFTNGP10.phx.gbl...
> | Hi Stefan
> |
> | The problem is that on http://www.xppg.com/builds_2.html is that you can
> see
> | the date and the time, but on http://www.xppg.com/builds.html which has
> the
> | IB, you can only see the date and not the time.
> |
> | The only difference between these two pages is the inclusion of the IB.
> |
> | This happens on every page that I insert and IB on every site that I
> design
> | that uses this date and time script.
> |
> | Regards,
> |
> | Peter
> |
> |
> | "Stefan B Rusynko" <sbr_enjoy@hotmail.com> wrote in message
> | news:eg%23Zfs%23IFHA.2132@TK2MSFTNGP14.phx.gbl...
> | > No
> | >
> | > I don't see any problem w/ your date script at
> | > http://www.xppg.com/builds_2.html when I select Builds_2 from
> | > http://www.xppg.com/
> | >
> | > Explain your problem w/ the IB and date script
> | >
> | > --
> | >
> | > _____________________________________________
> | > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
> | > "Warning - Using the F1 Key will not break anything!" (-;
> | > To find the best Newsgroup for FrontPage support see:
> | > http://www.net-sites.com/sitebuilder/newsgroups.asp
> | > _____________________________________________
> | >
> | >
> | > "Peter_G" <xpanswers@hotmail.com> wrote in message
> | > news:u0X5OH%23IFHA.2852@TK2MSFTNGP09.phx.gbl...
> | > | Hi All,
> | > |
> | > | As there appears to be no answer for my problem in this group, is
> there
> | > | another group I could post this question in that may be able to help
> me?
> | > |
> | > | Regards,
> | > |
> | > | Peter.
> | > |
> | > | "Peter_G" <xpanswers@hotmail.com> wrote in message
> | > | news:%23xgyyHpIFHA.3928@TK2MSFTNGP09.phx.gbl...
> | > | > Hi, I am running FP2003 on a Windows XP-Pro system.
> | > | >
> | > | > I have developed a few sites and use a js to provide a Date and
> Time
> | > on
> | > | > each page (this is embedded into each page via dynamic template)
> which
> | > | > works very well..........
> | > | > Until I insert an Interactive Button??
> | > | >
> | > | > At this point, I get the Date section of the js, but not the time.
> | > | >
> | > | > The coding to run the js and produce the date and time on the page
> is:
> | > | >
> | > | > (1) <div>
> | > | > (2) <table cellpadding="0" cellspacing="0" width="100%"
> border="0"
> | > | > style="border-left-width: 1px; border-right-width: 1px;
> | > border-top-width:
> | > | > 1px; border-bottom-style: solid; border-bottom-width: 1px">
> | > | > (3) <tr>
> | > | > (4) <td width="100%">
> | > | > (5) <p align="center">
> | > | > (6) <font color="#000000" face="Verdana, Arial, Helvetica,
> | > sans-serif"
> | > | > size=2>
> | > | > (7) <script
> | > | > language=JavaScript>document.write(dateString(new
> | > Date()))</script></font>
> | > | > (8) <font color="#000000" id=Clock face="Verdana,
> Arial,
> | > | > Helvetica, sans-serif"
> | > | > size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></td>
> | > | > (9) </tr>
> | > | > (10) </table>
> | > | > (11) </div>
> | > | >
> | > | >
> | > | > Obviously the bracketed numbers are not part of the coding, I have
> put
> | > | > these here for ease of explanation.
> | > | >
> | > | > With the Interactive Button inserted, I only get as far as line
> (7)
> | > and
> | > | > the rest does not appear.
> | > | >
> | > | > Does anyone have any ideas how I may cure this, or what I have
> wrong
> | > with
> | > | > this code.
> | > | >
> | > | > Kind regards,
> | > | > Peter
> | > | >
> | > |
> | > |
> | >
> | >
> |
> |
>
>



Re: Javascript and Interactive Button Conflict by Steve

Steve
Tue Mar 08 17:03:04 CST 2005

tick should tick() to identify it as a function

Try adding () to tick at the end of the body tag.

<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0"
style="background-color: #F5F5F5"
onload="FP_preloadImgs(/*url*/'images/button12F.jpg',
/*url*/'images/button12E.jpg', /*url*/'images/button65.jpg',
/*url*/'images/button64.jpg'); tick()">

Also there's no script start and stop tags in clock.js
<!--
//-->

They might not be needed but it doesn't hurt to add them

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
.......................with a computer

"Peter_G" <xpanswers@hotmail.com> wrote in message news:uOFanpBJFHA.3364@TK2MSFTNGP10.phx.gbl...
> Hi Steve and Stefan and thanks for your replies.
>
> Steve, no this did not work I am afraid, but thank you for the suggestion.
>
> Stefan, I would love to be able to do as you suggest, but believe this or
> not, FP will not let me!
>
> I have deleted the line window.onload=tick; from my script (I assume that I
> did not have to delete anything else).
>
> I go to the body tag and make the change as you suggest (in fact in the end
> I resorted to copying from this post and pasting it into my page) and then
> try and save the changes.
>
> This is where FP decides that I cannot do this, and after the change I end
> up with this as my body tag =
>
> <body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0"
> style="background-color: #F5F5F5"
> onload="FP_preloadImgs(/*url*/'images/button12F.jpg',
> /*url*/'images/button12E.jpg', /*url*/'images/button65.jpg',
> /*url*/'images/button64.jpg'); tick">
>
> As you can see, FP moves the tick to the end of the line!
>
> Do you have any ideas how I can overcome this?
>
> Regards,
>
> Peter
>
>
> "Stefan B Rusynko" <sbr_enjoy@hotmail.com> wrote in message
> news:uHPWxaAJFHA.4060@TK2MSFTNGP14.phx.gbl...
> > You can't have 2 onloads in page (but you can have multiple commands in an
> > onload)
> >
> > IBs add an onload (to preload images)
> > onload="FP_preloadImgs(/*url*/'images/button12F.jpg',
> > /*url*/'images/button12E.jpg')"
> >
> > Your script also has an onload
> > window.onload = tick;
> >
> > Delete the window.onload = tick; from your script and in the body tag
> > change
> > onload="FP_preloadImgs(/*url*/'images/button12F.jpg',
> > /*url*/'images/button12E.jpg')"
> > to
> > onload="tick; FP_preloadImgs(/*url*/'images/button12F.jpg',
> > /*url*/'images/button12E.jpg')"
> >
> > --
> >
> > _____________________________________________
> > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
> > "Warning - Using the F1 Key will not break anything!" (-;
> > To find the best Newsgroup for FrontPage support see:
> > http://www.net-sites.com/sitebuilder/newsgroups.asp
> > _____________________________________________
> >
> >
> > "Peter_G" <xpanswers@hotmail.com> wrote in message
> > news:egA$HQ$IFHA.1200@TK2MSFTNGP10.phx.gbl...
> > | Hi Stefan
> > |
> > | The problem is that on http://www.xppg.com/builds_2.html is that you can
> > see
> > | the date and the time, but on http://www.xppg.com/builds.html which has
> > the
> > | IB, you can only see the date and not the time.
> > |
> > | The only difference between these two pages is the inclusion of the IB.
> > |
> > | This happens on every page that I insert and IB on every site that I
> > design
> > | that uses this date and time script.
> > |
> > | Regards,
> > |
> > | Peter
> > |
> > |
> > | "Stefan B Rusynko" <sbr_enjoy@hotmail.com> wrote in message
> > | news:eg%23Zfs%23IFHA.2132@TK2MSFTNGP14.phx.gbl...
> > | > No
> > | >
> > | > I don't see any problem w/ your date script at
> > | > http://www.xppg.com/builds_2.html when I select Builds_2 from
> > | > http://www.xppg.com/
> > | >
> > | > Explain your problem w/ the IB and date script
> > | >
> > | > --
> > | >
> > | > _____________________________________________
> > | > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
> > | > "Warning - Using the F1 Key will not break anything!" (-;
> > | > To find the best Newsgroup for FrontPage support see:
> > | > http://www.net-sites.com/sitebuilder/newsgroups.asp
> > | > _____________________________________________
> > | >
> > | >
> > | > "Peter_G" <xpanswers@hotmail.com> wrote in message
> > | > news:u0X5OH%23IFHA.2852@TK2MSFTNGP09.phx.gbl...
> > | > | Hi All,
> > | > |
> > | > | As there appears to be no answer for my problem in this group, is
> > there
> > | > | another group I could post this question in that may be able to help
> > me?
> > | > |
> > | > | Regards,
> > | > |
> > | > | Peter.
> > | > |
> > | > | "Peter_G" <xpanswers@hotmail.com> wrote in message
> > | > | news:%23xgyyHpIFHA.3928@TK2MSFTNGP09.phx.gbl...
> > | > | > Hi, I am running FP2003 on a Windows XP-Pro system.
> > | > | >
> > | > | > I have developed a few sites and use a js to provide a Date and
> > Time
> > | > on
> > | > | > each page (this is embedded into each page via dynamic template)
> > which
> > | > | > works very well..........
> > | > | > Until I insert an Interactive Button??
> > | > | >
> > | > | > At this point, I get the Date section of the js, but not the time.
> > | > | >
> > | > | > The coding to run the js and produce the date and time on the page
> > is:
> > | > | >
> > | > | > (1) <div>
> > | > | > (2) <table cellpadding="0" cellspacing="0" width="100%"
> > border="0"
> > | > | > style="border-left-width: 1px; border-right-width: 1px;
> > | > border-top-width:
> > | > | > 1px; border-bottom-style: solid; border-bottom-width: 1px">
> > | > | > (3) <tr>
> > | > | > (4) <td width="100%">
> > | > | > (5) <p align="center">
> > | > | > (6) <font color="#000000" face="Verdana, Arial, Helvetica,
> > | > sans-serif"
> > | > | > size=2>
> > | > | > (7) <script
> > | > | > language=JavaScript>document.write(dateString(new
> > | > Date()))</script></font>
> > | > | > (8) <font color="#000000" id=Clock face="Verdana,
> > Arial,
> > | > | > Helvetica, sans-serif"
> > | > | > size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></td>
> > | > | > (9) </tr>
> > | > | > (10) </table>
> > | > | > (11) </div>
> > | > | >
> > | > | >
> > | > | > Obviously the bracketed numbers are not part of the coding, I have
> > put
> > | > | > these here for ease of explanation.
> > | > | >
> > | > | > With the Interactive Button inserted, I only get as far as line
> > (7)
> > | > and
> > | > | > the rest does not appear.
> > | > | >
> > | > | > Does anyone have any ideas how I may cure this, or what I have
> > wrong
> > | > with
> > | > | > this code.
> > | > | >
> > | > | > Kind regards,
> > | > | > Peter
> > | > | >
> > | > |
> > | > |
> > | >
> > | >
> > |
> > |
> >
> >
>
>



Re: Javascript and Interactive Button Conflict by Peter_G

Peter_G
Tue Mar 08 17:33:42 CST 2005

Hi Steve,

You are the man :-)

This solved my problem, thank you very much!!

Your solution worked without the start and stop tags in the script, but I
put them back in anyway, cheers.

Thanks to both you and Stefan for sticking with me on this one, it is much
appreciated.

Kindest regards to you both,

Peter

"Steve Easton" <admin@95isalive.com> wrote in message
news:%23k%23BINDJFHA.608@TK2MSFTNGP10.phx.gbl...
> tick should tick() to identify it as a function
>
> Try adding () to tick at the end of the body tag.
>
> <body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0"
> style="background-color: #F5F5F5"
> onload="FP_preloadImgs(/*url*/'images/button12F.jpg',
> /*url*/'images/button12E.jpg', /*url*/'images/button65.jpg',
> /*url*/'images/button64.jpg'); tick()">
>
> Also there's no script start and stop tags in clock.js
> <!--
> //-->
>
> They might not be needed but it doesn't hurt to add them
>
> --
> Steve Easton
> Microsoft MVP FrontPage
> 95isalive
> This site is best viewed............
> .......................with a computer
>
> "Peter_G" <xpanswers@hotmail.com> wrote in message
> news:uOFanpBJFHA.3364@TK2MSFTNGP10.phx.gbl...
>> Hi Steve and Stefan and thanks for your replies.
>>
>> Steve, no this did not work I am afraid, but thank you for the
>> suggestion.
>>
>> Stefan, I would love to be able to do as you suggest, but believe this or
>> not, FP will not let me!
>>
>> I have deleted the line window.onload=tick; from my script (I assume that
>> I
>> did not have to delete anything else).
>>
>> I go to the body tag and make the change as you suggest (in fact in the
>> end
>> I resorted to copying from this post and pasting it into my page) and
>> then
>> try and save the changes.
>>
>> This is where FP decides that I cannot do this, and after the change I
>> end
>> up with this as my body tag =
>>
>> <body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0"
>> style="background-color: #F5F5F5"
>> onload="FP_preloadImgs(/*url*/'images/button12F.jpg',
>> /*url*/'images/button12E.jpg', /*url*/'images/button65.jpg',
>> /*url*/'images/button64.jpg'); tick">
>>
>> As you can see, FP moves the tick to the end of the line!
>>
>> Do you have any ideas how I can overcome this?
>>
>> Regards,
>>
>> Peter
>>
>>
>> "Stefan B Rusynko" <sbr_enjoy@hotmail.com> wrote in message
>> news:uHPWxaAJFHA.4060@TK2MSFTNGP14.phx.gbl...
>> > You can't have 2 onloads in page (but you can have multiple commands in
>> > an
>> > onload)
>> >
>> > IBs add an onload (to preload images)
>> > onload="FP_preloadImgs(/*url*/'images/button12F.jpg',
>> > /*url*/'images/button12E.jpg')"
>> >
>> > Your script also has an onload
>> > window.onload = tick;
>> >
>> > Delete the window.onload = tick; from your script and in the body tag
>> > change
>> > onload="FP_preloadImgs(/*url*/'images/button12F.jpg',
>> > /*url*/'images/button12E.jpg')"
>> > to
>> > onload="tick; FP_preloadImgs(/*url*/'images/button12F.jpg',
>> > /*url*/'images/button12E.jpg')"
>> >
>> > --
>> >
>> > _____________________________________________
>> > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
>> > "Warning - Using the F1 Key will not break anything!" (-;
>> > To find the best Newsgroup for FrontPage support see:
>> > http://www.net-sites.com/sitebuilder/newsgroups.asp
>> > _____________________________________________
>> >
>> >
>> > "Peter_G" <xpanswers@hotmail.com> wrote in message
>> > news:egA$HQ$IFHA.1200@TK2MSFTNGP10.phx.gbl...
>> > | Hi Stefan
>> > |
>> > | The problem is that on http://www.xppg.com/builds_2.html is that you
>> > can
>> > see
>> > | the date and the time, but on http://www.xppg.com/builds.html which
>> > has
>> > the
>> > | IB, you can only see the date and not the time.
>> > |
>> > | The only difference between these two pages is the inclusion of the
>> > IB.
>> > |
>> > | This happens on every page that I insert and IB on every site that I
>> > design
>> > | that uses this date and time script.
>> > |
>> > | Regards,
>> > |
>> > | Peter
>> > |
>> > |
>> > | "Stefan B Rusynko" <sbr_enjoy@hotmail.com> wrote in message
>> > | news:eg%23Zfs%23IFHA.2132@TK2MSFTNGP14.phx.gbl...
>> > | > No
>> > | >
>> > | > I don't see any problem w/ your date script at
>> > | > http://www.xppg.com/builds_2.html when I select Builds_2 from
>> > | > http://www.xppg.com/
>> > | >
>> > | > Explain your problem w/ the IB and date script
>> > | >
>> > | > --
>> > | >
>> > | > _____________________________________________
>> > | > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
>> > | > "Warning - Using the F1 Key will not break anything!" (-;
>> > | > To find the best Newsgroup for FrontPage support see:
>> > | > http://www.net-sites.com/sitebuilder/newsgroups.asp
>> > | > _____________________________________________
>> > | >
>> > | >
>> > | > "Peter_G" <xpanswers@hotmail.com> wrote in message
>> > | > news:u0X5OH%23IFHA.2852@TK2MSFTNGP09.phx.gbl...
>> > | > | Hi All,
>> > | > |
>> > | > | As there appears to be no answer for my problem in this group, is
>> > there
>> > | > | another group I could post this question in that may be able to
>> > help
>> > me?
>> > | > |
>> > | > | Regards,
>> > | > |
>> > | > | Peter.
>> > | > |
>> > | > | "Peter_G" <xpanswers@hotmail.com> wrote in message
>> > | > | news:%23xgyyHpIFHA.3928@TK2MSFTNGP09.phx.gbl...
>> > | > | > Hi, I am running FP2003 on a Windows XP-Pro system.
>> > | > | >
>> > | > | > I have developed a few sites and use a js to provide a Date and
>> > Time
>> > | > on
>> > | > | > each page (this is embedded into each page via dynamic
>> > template)
>> > which
>> > | > | > works very well..........
>> > | > | > Until I insert an Interactive Button??
>> > | > | >
>> > | > | > At this point, I get the Date section of the js, but not the
>> > time.
>> > | > | >
>> > | > | > The coding to run the js and produce the date and time on the
>> > page
>> > is:
>> > | > | >
>> > | > | > (1) <div>
>> > | > | > (2) <table cellpadding="0" cellspacing="0" width="100%"
>> > border="0"
>> > | > | > style="border-left-width: 1px; border-right-width: 1px;
>> > | > border-top-width:
>> > | > | > 1px; border-bottom-style: solid; border-bottom-width: 1px">
>> > | > | > (3) <tr>
>> > | > | > (4) <td width="100%">
>> > | > | > (5) <p align="center">
>> > | > | > (6) <font color="#000000" face="Verdana, Arial, Helvetica,
>> > | > sans-serif"
>> > | > | > size=2>
>> > | > | > (7) <script
>> > | > | > language=JavaScript>document.write(dateString(new
>> > | > Date()))</script></font>
>> > | > | > (8) <font color="#000000" id=Clock face="Verdana,
>> > Arial,
>> > | > | > Helvetica, sans-serif"
>> > | > | > size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></td>
>> > | > | > (9) </tr>
>> > | > | > (10) </table>
>> > | > | > (11) </div>
>> > | > | >
>> > | > | >
>> > | > | > Obviously the bracketed numbers are not part of the coding, I
>> > have
>> > put
>> > | > | > these here for ease of explanation.
>> > | > | >
>> > | > | > With the Interactive Button inserted, I only get as far as line
>> > (7)
>> > | > and
>> > | > | > the rest does not appear.
>> > | > | >
>> > | > | > Does anyone have any ideas how I may cure this, or what I have
>> > wrong
>> > | > with
>> > | > | > this code.
>> > | > | >
>> > | > | > Kind regards,
>> > | > | > Peter
>> > | > | >
>> > | > |
>> > | > |
>> > | >
>> > | >
>> > |
>> > |
>> >
>> >
>>
>>
>
>



Re: Javascript and Interactive Button Conflict by Steve

Steve
Tue Mar 08 18:24:16 CST 2005

Thanks, but I can't take the credit. If Stefan had not caught the double "onload" which I missed,
you wouldn't have posted back so I could catch the missing ( )

Glad you got it fixed.

;-)
--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
.......................with a computer

"Peter_G" <xpanswers@hotmail.com> wrote in message news:OKR$DdDJFHA.1476@TK2MSFTNGP09.phx.gbl...
> Hi Steve,
>
> You are the man :-)
>
> This solved my problem, thank you very much!!
>
> Your solution worked without the start and stop tags in the script, but I
> put them back in anyway, cheers.
>
> Thanks to both you and Stefan for sticking with me on this one, it is much
> appreciated.
>
> Kindest regards to you both,
>
> Peter
>
> "Steve Easton" <admin@95isalive.com> wrote in message
> news:%23k%23BINDJFHA.608@TK2MSFTNGP10.phx.gbl...
> > tick should tick() to identify it as a function
> >
> > Try adding () to tick at the end of the body tag.
> >
> > <body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0"
> > style="background-color: #F5F5F5"
> > onload="FP_preloadImgs(/*url*/'images/button12F.jpg',
> > /*url*/'images/button12E.jpg', /*url*/'images/button65.jpg',
> > /*url*/'images/button64.jpg'); tick()">
> >
> > Also there's no script start and stop tags in clock.js
> > <!--
> > //-->
> >
> > They might not be needed but it doesn't hurt to add them
> >
> > --
> > Steve Easton
> > Microsoft MVP FrontPage
> > 95isalive
> > This site is best viewed............
> > .......................with a computer
> >
> > "Peter_G" <xpanswers@hotmail.com> wrote in message
> > news:uOFanpBJFHA.3364@TK2MSFTNGP10.phx.gbl...
> >> Hi Steve and Stefan and thanks for your replies.
> >>
> >> Steve, no this did not work I am afraid, but thank you for the
> >> suggestion.
> >>
> >> Stefan, I would love to be able to do as you suggest, but believe this or
> >> not, FP will not let me!
> >>
> >> I have deleted the line window.onload=tick; from my script (I assume that
> >> I
> >> did not have to delete anything else).
> >>
> >> I go to the body tag and make the change as you suggest (in fact in the
> >> end
> >> I resorted to copying from this post and pasting it into my page) and
> >> then
> >> try and save the changes.
> >>
> >> This is where FP decides that I cannot do this, and after the change I
> >> end
> >> up with this as my body tag =
> >>
> >> <body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0"
> >> style="background-color: #F5F5F5"
> >> onload="FP_preloadImgs(/*url*/'images/button12F.jpg',
> >> /*url*/'images/button12E.jpg', /*url*/'images/button65.jpg',
> >> /*url*/'images/button64.jpg'); tick">
> >>
> >> As you can see, FP moves the tick to the end of the line!
> >>
> >> Do you have any ideas how I can overcome this?
> >>
> >> Regards,
> >>
> >> Peter
> >>
> >>
> >> "Stefan B Rusynko" <sbr_enjoy@hotmail.com> wrote in message
> >> news:uHPWxaAJFHA.4060@TK2MSFTNGP14.phx.gbl...
> >> > You can't have 2 onloads in page (but you can have multiple commands in
> >> > an
> >> > onload)
> >> >
> >> > IBs add an onload (to preload images)
> >> > onload="FP_preloadImgs(/*url*/'images/button12F.jpg',
> >> > /*url*/'images/button12E.jpg')"
> >> >
> >> > Your script also has an onload
> >> > window.onload = tick;
> >> >
> >> > Delete the window.onload = tick; from your script and in the body tag
> >> > change
> >> > onload="FP_preloadImgs(/*url*/'images/button12F.jpg',
> >> > /*url*/'images/button12E.jpg')"
> >> > to
> >> > onload="tick; FP_preloadImgs(/*url*/'images/button12F.jpg',
> >> > /*url*/'images/button12E.jpg')"
> >> >
> >> > --
> >> >
> >> > _____________________________________________
> >> > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
> >> > "Warning - Using the F1 Key will not break anything!" (-;
> >> > To find the best Newsgroup for FrontPage support see:
> >> > http://www.net-sites.com/sitebuilder/newsgroups.asp
> >> > _____________________________________________
> >> >
> >> >
> >> > "Peter_G" <xpanswers@hotmail.com> wrote in message
> >> > news:egA$HQ$IFHA.1200@TK2MSFTNGP10.phx.gbl...
> >> > | Hi Stefan
> >> > |
> >> > | The problem is that on http://www.xppg.com/builds_2.html is that you
> >> > can
> >> > see
> >> > | the date and the time, but on http://www.xppg.com/builds.html which
> >> > has
> >> > the
> >> > | IB, you can only see the date and not the time.
> >> > |
> >> > | The only difference between these two pages is the inclusion of the
> >> > IB.
> >> > |
> >> > | This happens on every page that I insert and IB on every site that I
> >> > design
> >> > | that uses this date and time script.
> >> > |
> >> > | Regards,
> >> > |
> >> > | Peter
> >> > |
> >> > |
> >> > | "Stefan B Rusynko" <sbr_enjoy@hotmail.com> wrote in message
> >> > | news:eg%23Zfs%23IFHA.2132@TK2MSFTNGP14.phx.gbl...
> >> > | > No
> >> > | >
> >> > | > I don't see any problem w/ your date script at
> >> > | > http://www.xppg.com/builds_2.html when I select Builds_2 from
> >> > | > http://www.xppg.com/
> >> > | >
> >> > | > Explain your problem w/ the IB and date script
> >> > | >
> >> > | > --
> >> > | >
> >> > | > _____________________________________________
> >> > | > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
> >> > | > "Warning - Using the F1 Key will not break anything!" (-;
> >> > | > To find the best Newsgroup for FrontPage support see:
> >> > | > http://www.net-sites.com/sitebuilder/newsgroups.asp
> >> > | > _____________________________________________
> >> > | >
> >> > | >
> >> > | > "Peter_G" <xpanswers@hotmail.com> wrote in message
> >> > | > news:u0X5OH%23IFHA.2852@TK2MSFTNGP09.phx.gbl...
> >> > | > | Hi All,
> >> > | > |
> >> > | > | As there appears to be no answer for my problem in this group, is
> >> > there
> >> > | > | another group I could post this question in that may be able to
> >> > help
> >> > me?
> >> > | > |
> >> > | > | Regards,
> >> > | > |
> >> > | > | Peter.
> >> > | > |
> >> > | > | "Peter_G" <xpanswers@hotmail.com> wrote in message
> >> > | > | news:%23xgyyHpIFHA.3928@TK2MSFTNGP09.phx.gbl...
> >> > | > | > Hi, I am running FP2003 on a Windows XP-Pro system.
> >> > | > | >
> >> > | > | > I have developed a few sites and use a js to provide a Date and
> >> > Time
> >> > | > on
> >> > | > | > each page (this is embedded into each page via dynamic
> >> > template)
> >> > which
> >> > | > | > works very well..........
> >> > | > | > Until I insert an Interactive Button??
> >> > | > | >
> >> > | > | > At this point, I get the Date section of the js, but not the
> >> > time.
> >> > | > | >
> >> > | > | > The coding to run the js and produce the date and time on the
> >> > page
> >> > is:
> >> > | > | >
> >> > | > | > (1) <div>
> >> > | > | > (2) <table cellpadding="0" cellspacing="0" width="100%"
> >> > border="0"
> >> > | > | > style="border-left-width: 1px; border-right-width: 1px;
> >> > | > border-top-width:
> >> > | > | > 1px; border-bottom-style: solid; border-bottom-width: 1px">
> >> > | > | > (3) <tr>
> >> > | > | > (4) <td width="100%">
> >> > | > | > (5) <p align="center">
> >> > | > | > (6) <font color="#000000" face="Verdana, Arial, Helvetica,
> >> > | > sans-serif"
> >> > | > | > size=2>
> >> > | > | > (7) <script
> >> > | > | > language=JavaScript>document.write(dateString(new
> >> > | > Date()))</script></font>
> >> > | > | > (8) <font color="#000000" id=Clock face="Verdana,
> >> > Arial,
> >> > | > | > Helvetica, sans-serif"
> >> > | > | > size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></td>
> >> > | > | > (9) </tr>
> >> > | > | > (10) </table>
> >> > | > | > (11) </div>
> >> > | > | >
> >> > | > | >