Web Analytics Made Easy -
StatCounter Onload and window.onload conflict - CodingForum

Announcement

Collapse
No announcement yet.

Onload and window.onload conflict

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Onload and window.onload conflict

    I am having a problem getting to scripts to work in tandem and it appears the problems lies in the following. The live date script requires a <body onload="goforit()"> call to activate the date and time. Whereas the dynamic scroller requires a window.onload=runmikescroll call for it to appear. However the latter code seems to stop the date from appearing. Do you know how I can get round this?

  • #2
    Try combining the two calls in your body onLoad. Like this:
    <body onload="goforit();runmikescroll()">

    Also remove the window.onload.

    Comment


    • #3
      Thank you that seems to work I thought I'd tried that but obviously not. Thanks for your time.

      Comment

      Working...
      X