Results 1 to 3 of 3

Thread: Help using 2 dd scripts on 1 page

  1. #1
    Join Date
    Sep 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help using 2 dd scripts on 1 page

    I am trying to use 2 dd scripts on my school’s homepage.
    http://pcboe.net/chs.htm

    dd fadeinslideshow and dd fadingscroller
    http://dynamicdrive.com/dynamicindex...nslideshow.htm
    http://dynamicdrive.com/dynamicindex2/fadescroll.htm

    I am using the scripts as is except for the var pause, var height&width of jpgs & scroller, and border of the scroller.

    I found a posting
    SCRIPT 1: window.onload=startit
    SCRIPT 2: window.onload=dothat
    RESOLUTION: <body onload="dothis();dothat()">
    which had me find these 2 parts of each script:
    window.onload=startit
    window.onload=changecontent

    I deleted both and placed <body onload=”startit();changecontent()”>
    But then neither script worked.

    Can someone help me? I know virtually nothing about scripting but will to do whatever to fix this conflict. Maybe
    I placed the resolution in the wrong place, or maybe there are more conflicts?????

    Thank you.

  2. #2
    Join Date
    Sep 2004
    Location
    Indonesia
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    First, edit startit() function in Fade-in slideshow script:
    Code:
    function startit(){
    if (ie4||dom){
    var crossobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)
    crossobj.innerHTML='<img src="'+fadeimages[curimageindex]+'">'
    rotateimage()
    }
    else
    setInterval("rotateimage()",pause)
    }
    Second, delete or comment
    Code:
    if (ie4||dom)
    window.onload=startit
    else
    setInterval("rotateimage()",pause)
    in Fade-in slideshow script and
    Code:
    window.onload=changecontent
    in Fading Scroller script

    Third, add this
    Code:
    <body onLoad="startit(),changecontent()">
    In the body tag.

    I hope that'll work.

  3. #3
    Join Date
    Sep 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    gigabites,

    Thank you very much. This works fine. Appreciate the helpfulness. Have a great evening.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •