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