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> </font></td>
> >> > | > | > (9) </tr>
> >> > | > | > (10) </table>
> >> > | > | > (11) </div>
> >> > | > | >
> >> > | > | >