Javascript and Interactive Button Conflict

P

Peter_G

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
 
S

Stefan B Rusynko

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



| 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
|
|
 
P

Peter_G

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
 
S

Stefan B Rusynko

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



| 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
| | > 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
| > _____________________________________________
| >
| >
| > | > | 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
| > |
| > |
| >
| >
|
|
 
P

Peter_G

Sorry Stefan,

I forgot to publish again before I posted.

It is up and running ok now.

My fault.

Peter


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



| 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
| | > 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
| > _____________________________________________
| >
| >
| > | > | 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
| > |
| > |
| >
| >
|
|
 
P

Peter_G

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.
 
S

Stefan B Rusynko

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




| 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.
|
| | > 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
| >
|
|
 
P

Peter_G

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
 
S

Steve Easton

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
 
S

Stefan B Rusynko

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')"




| 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
|
|
| | > 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
| > _____________________________________________
| >
| >
| > | > | 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.
| > |
| > | | > | > 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
| > | >
| > |
| > |
| >
| >
|
|
 
P

Peter_G

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 said:
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')"




| 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
|
|
| | > 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
| > _____________________________________________
| >
| >
| > | > | 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.
| > |
| > | | > | > 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
| > | >
| > |
| > |
| >
| >
|
|
 
S

Steve Easton

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 said:
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 said:
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')"




| 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
|
|
| | > 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
| > _____________________________________________
| >
| >
| > | > | 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.
| > |
| > | | > | > 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
| > | >
| > |
| > |
| >
| >
|
|
 
P

Peter_G

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 said:
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 said:
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 said:
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')"




| 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
|
|
| | > 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
| > _____________________________________________
| >
| >
| > | > | 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.
| > |
| > | | > | > 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
| > | >
| > |
| > |
| >
| >
|
|
 
S

Steve Easton

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 said:
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 said:
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 said:
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


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')"




| 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
|
|
| | > 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
| > _____________________________________________
| >
| >
| > | > | 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.
| > |
| > | | > | > 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
| > | >
| > |
| > |
| >
| >
|
|
 
S

Stefan B Rusynko

Thanks
- I just paste and forgot to add the ()




| 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
|
| > 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
| >
| >
| > | > > 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
| > > _____________________________________________
| > >
| > >
| > > | > > | 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
| > > |
| > > |
| > > | | > > | > 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
| > > | > _____________________________________________
| > > | >
| > > | >
| > > | > | > > | > | 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.
| > > | > |
| > > | > | | > > | > | > 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
| > > | > | >
| > > | > |
| > > | > |
| > > | >
| > > | >
| > > |
| > > |
| > >
| > >
| >
| >
|
|
 

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