Results 1 to 8 of 8

Thread: Documents effects wipes keeps loading in a loop.

  1. #1
    Join Date
    Dec 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Documents effects wipes keeps loading in a loop.

    1) Script Title: Document Effects Wipes

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...wipesplash.htm

    3) Describe problem: I have added the wipe to my page but it keeps loading.
    Below is the code wipe that I added. How do I get this to only load when you go to the page and stop the loop of loading when the page loads? It just keeps loading.

    <body bgcolor="#000000">
    <body onLoad="MM_goToURL('parent','wipes/wipedemo.htm');return document.MM_returnValue" ><body onload="Carousel()">
    <body onLoad="goforit()">

    <p>&nbsp;</p>

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You are only allowed one body tag per page. You shouldn't be reloading the same page onload, that will result in an endless loop, regardless of any other code on the page.

    You can combine the other attributes into one body tag:

    HTML Code:
    <body bgcolor="#000000" onload="Carousel();goforit();">
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Dec 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Not loading the documents wipes now

    I did what you said but now the page isn't loading the document effects wipe but is loading the carousal and the carousal is last. My code is below. Thanks

    <body bgcolor="#000000" onload="MM_goToURL 'parent','wipes/wipedemo.htm');return document.MM_returnValue" onload="Carousel()">

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I didn't say to do that. Why are you doing (which has a syntax error, so won't do anything as written other than possibly throw an error):

    Code:
    MM_goToURL 'parent','wipes/wipedemo.htm');return document.MM_returnValue
    ?? That's not a part of any Dynamic Drive script, and shouldn't be required for the effect. How many pages are we talking about?

    Also, you can have only one onload event/attribute. If you want it to include more than one function in it, they can be combined in a single attribute:

    Code:
    <body bgcolor="#000000" onload="Carousel();goforit();">
    That's what I suggested, not what you have.

    If you need more help:

    Please post a link to the page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Dec 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Document effects wipes still keeps looping

    This is the site I am working on. I apprieciate your help.

    http://www.misd.k12.wi.us/mihs/footb...alldefault.htm

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You have code on one page that loads another that, in turn has code on it that loads the first page, so of course you get an endless loop.

    On footballdefault.htm you have:

    Code:
    <body bgcolor="#000000" onLoad="MM_goToURL('parent','wipes/wipedemo.htm');return document.MM_returnValue" >
    which switches to the wipedemo.htm page, and on it you have:

    Code:
    function setDest() {
    	window.location = "http://www.misd.k12.wi.us/mihs/football/footballdefault.htm";
    }
    which takes you back to footballdefault.htm, which takes you to wipedemo.htm, and on and on. Remove one of these to break the loop.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  7. #7
    Join Date
    Dec 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I tried this and it will not load one of the pages. If I delete the onload wipe it will not load the wipe, if I delete the location information it will not load the main page after the intro.

  8. #8
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You have to pick one, and trust that your users will click on the link to the other by themselves.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •