Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Who to turn to? Multiple scripts/same page

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

    Default Who to turn to? Multiple scripts/same page

    DD Fade-in slideshow

    http://www.dynamicdrive.com/dynamici...nslideshow.htm

    Which way to go??? I know a lot of ppl are using multiple java scripts on the same page and that is the nature of my question (using the same script multiple times on the same page). However my question isn't welcomed here (I think) or in the dedicated Java forum. So more importantly, where can users go to find out this sort of information or hire an individual for some one time assistance/advice?

  2. #2
    Join Date
    Feb 2005
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I had this same problem. I have 3 scripts on two pages. A friend sent me the following links that helped to understand what was going on: 95% of problems relate to event handlers...
    http://www.javascriptkit.com/javatut...taction4.shtml
    and this:
    http://www.wsabstract.com/javatutors...plejava3.shtml

    The usual solution is
    1. to fix the <BODY> tag and add onLoads separated by commas
    2. to either remove the document.write="whatever" line from the script OR to comment out with curvy parentheses the function whose name you put into the <BODY> tag.
    Check out the <BODY> tags and the commented out functions on these two pages:
    bossradio.net/index.html
    bossradio.net/listening/index.html
    I had to get a techie friend to help me, but I think I can do it from here on out having these two page samples. good luck,

    Karine

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

    Default Almost

    Dear Karine;

    I actually had that very same article printed out when I was trying to get this to work (I found it last week). But the catch is that the article identifies two different scripts working together and (unfortunately) does not address the same script repeating itself on the same page. Thanks for such a prompt reply and sincere intention (nice page links!) Thanks again.

    Roger

  4. #4
    Join Date
    Jan 2005
    Location
    Seattle
    Posts
    53
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    you're in luck. i have a page with 3 of those script. i have uploaded to a server: http://66.33.60.221/~a206/dynamicdri...rslideshow.htm

    you would have to rename each of the varibles and functions to each script so that it wouldn't interfere with each other and combine all the onload event in the head section. the above is a poor example, but that's is how you would do it w/o writing any codes. there are far better written code that you can use mutiple times available.

  5. #5
    Join Date
    Feb 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up Thank You, Thank You, Thank You!

    Your a life saver. I really appreciate your reply/script. That is EXACTLY the concept that I was looking for!!! I spoke with ppl from Kasamba, DevShed, CodingForums.com and nobody (I mean NOBODY) could tell me if this would work.

    I had experts and professionals from all over the place tell me the closest I could come to duplicating this effect was with flash, C+ programming or mostly the new limited IE transition effects (HTC); example at http://www.palmleafphotography.com/plp2004/default.htm

    Also want to encourage ppl to ask and rely on peers as I have learned from this in a big way. I had ppl offering to help for $200 on the LOW end to one guy from CA requesting $3750 (and then along comes speedracer...)

    Sincere thanks again!

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

    Lightbulb Update

    Also want to thank Karine for the additional resource... check out http://www.dhtmlshock.com/scrollers/...er/default.asp for additional info and examples to go with speedracer's solution!

    Thanks Karine!!!

  7. #7
    Join Date
    Dec 2004
    Posts
    177
    Thanks
    0
    Thanked 18 Times in 17 Posts

    Default

    Also, for the sake of reducing the amount of redundant code, I have been staring at this one as well...I'll let you know when I finish it. Basically, I trying to combine those three scripts (because they are the same thing!), into one.
    Verzeihung!

  8. #8
    Join Date
    Jan 2005
    Location
    Seattle
    Posts
    53
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    here's a good site with mutiple image slide show:
    http://dyn-web.com/javascript/rotate-img/

  9. #9
    Join Date
    Jun 2005
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by speedracer
    you're in luck. i have a page with 3 of those script. i have uploaded to a server: http://66.33.60.221/~a206/dynamicdri...rslideshow.htm

    you would have to rename each of the varibles and functions to each script so that it wouldn't interfere with each other and combine all the onload event in the head section. the above is a poor example, but that's is how you would do it w/o writing any codes. there are far better written code that you can use mutiple times available.
    Hey Man

    I´m trying to do the same thing with 3 animations, but I want them underneath each other with text inbetween (not in a table).
    I can only get one animation working when I try this, but I´m just a beginner.
    Can one of you experts check out the code on my page and see what´s wrong?

    www.craighood.com then got to the queens view page.

    Also, I´ve just got the rollovers on my main menu page working, but they take about a second to change, is this just caused by the size of the rollover jpg?

    Cheers Man

    Waigy

  10. #10
    Join Date
    Jul 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by speedracer
    you're in luck. i have a page with 3 of those script. i have uploaded to a server: http://66.33.60.221/~a206/dynamicdri...rslideshow.htm

    you would have to rename each of the varibles and functions to each script so that it wouldn't interfere with each other and combine all the onload event in the head section. the above is a poor example, but that's is how you would do it w/o writing any codes. there are far better written code that you can use mutiple times available.
    did a search and found your post.
    any idea why once i set a link to the images, it didn't show up?

    example:
    fadeimages[0]=["images/main_03_2.gif", "showroom.htm", ""]

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
  •