Results 1 to 6 of 6

Thread: Multiple Scripts in One Page

  1. #1
    Join Date
    May 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Multiple Scripts in One Page

    HV Menu & Conveyer Belt Slideshow or Fader

    I understand that this is a topic that is not encourage on this forum, but I saw in previous threads that SPEEDRACER was able to add so assistance back in June of 2005. The examples that were posted at that time are not all available and I really need help on my situation as it work on a client site and I am at a stand still until I resolve my situation.

    I am using the HV Menu and Conveyer Belt Slideshow on the same page and of course one works fine without the other, but I really need them to work together and would really like to know how to take care of these situations because I have several other clients that will be using the HV Menu. If SPEEDRACER is still available and would be willing to help me out, my code may be viewed at my testing location http://kleaninghouse.com

    If anyone else out there is able to add some assistance I would greatly appreciate it.

    I did try all types of variations of the </body onload="xxx();xxx()" as well.

    Any & ALL help would be so so appreciated. Thanks for your time and your efforts in advance...

    Tam

  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

    HV is a complicated script, it's onload event(s) may be hard to spot in its code. Your best bet would be to remove this line from the Conveyor script:

    Code:
    window.onload=fillup
    and replace it with this:

    Code:
    if ( typeof window.addEventListener != "undefined" )
        window.addEventListener( "load", fillup, false );
    else if ( typeof window.attachEvent != "undefined" )
        window.attachEvent( "onload", fillup );
    else {
        if ( window.onload != null ) {
            var oldOnload = window.onload;
            window.onload = function ( e ) {
                oldOnload( e );
                fillup();
            };
        }
        else
            window.onload = fillup;
    }
    If there is any easy way of getting these two to play well together, that would be it. If that doesn't work, just put the Conveyor on a separate page and have it show through onto the desired page via a borderless iframe.
    - John
    ________________________

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

  3. #3
    Join Date
    May 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    HV Menu Script & Conveyer Belt

    John,

    Thanks so so much for your assistance. I was able to get it up and running with the iframe. I do have a question regarding the iframe - Are there any down falls to using the iframes? I just want to make sure before I go gang busters using them...

    Thanks again so so much for all your help and assistance... You made my weekend..

    Tam

  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

    In this day and age there are few drawbacks to iframes, used to be that many browsers did not support them. As long as you are savvy enough to configure them to have the look and feel you desire across all the browsers that you want them to look good in, there is no real problem other than spiders sometimes ignoring content contained in them when cataloging your site. For this reason, I'd stick to using them with something like a slide show which needn't be spidered anyway. However, any content in an iframe that must be spidered, can be linked to a top page on your site using an invisible link that only the spider will see:

    HTML Code:
    <a href="page_in_iframe.htm"></a>
    - John
    ________________________

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

  5. #5
    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 know though, you are better off without the iframe if it can be avoided. I just tried my other suggestion and it worked fine.
    - John
    ________________________

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

  6. #6
    Join Date
    May 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Got it working both ways... Figured out the errors I was getting and will be using your coding vs the iframe... Thanks again for all the help - you have been a HUGE HUGE help!! Take care.

    Tam

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
  •