Results 1 to 8 of 8

Thread: Ultimate Fade-In Slideshow ext file problem

  1. #1
    Join Date
    Mar 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Ultimate Fade-In Slideshow ext file problem

    re script:Ultimate Fade-In Slideshow
    http://www.dynamicdrive.com/dynamici...nslideshow.htm

    Hi there,

    I used the slideshow above and loved it (as long as the script was on the page at www.utahbirth.net (set up with frames) but I'm trying to get rid of the frames now and use an external .js file to call in.
    What I'm getting is a blank, black space. Somebody at webdeveloper.com has been trying to help me but I think he's stumped now and the latest change made my drop down menu transparent... www.mygenesisonline.com/utahbirthnet

    I've learned that it's often difficult to get two scripts to run on the same page, so I've tried taking the menu script off but nothing changes.

    I would really love to figure this out.

    Thank you in advance for any guidance you can offer.

  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

    There could be other problems but, at the beginning of your external bannerad.js file, you have this:

    Code:
    var fadeimages=new Array()
    //SET IMAGE PATHS. Extend or contract array as needed
    fadeimages[0]=["fairbanner.jpg", "http://www.utahbirth.net/news.html", "_new"] 
    fadeimages[1]=["babybanner.jpg", "http://www.utahbirth.net/news.html", "_new"] fadeimages[2]=["genesisbanner.jpg", "http://www.mygenesisonline.com", "_new"]  
    var fadebgcolor="white"
    It should be like so:

    Code:
    var fadeimages=new Array()
    //SET IMAGE PATHS. Extend or contract array as needed
    fadeimages[0]=["fairbanner.jpg", "http://www.utahbirth.net/news.html", "_new"]
    fadeimages[1]=["babybanner.jpg", "http://www.utahbirth.net/news.html", "_new"]
    fadeimages[2]=["genesisbanner.jpg", "http://www.mygenesisonline.com", "_new"]
    
    var fadebgcolor="white"
    - John
    ________________________

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

  3. #3
    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

    Oh wait, there's more. On your page you have this:

    Code:
    <link rel="stylesheet" type="text/css" href="utahbirth.css" />
    
    /***********************************************
    * Ultimate Fade-In Slideshow (v1.5): © Dynamic Drive (http://www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit http://www.dynamicdrive.com/ for this script and 100s more.
    ***********************************************/
    
    <style type="text/css">
    The red part shouldn't even be there. The credit should be included with the script call which should be separate from the slideshow call. The script call belongs after the style, it should go here:

    Code:
    font-weight: normal;
    }
    
    #dropmenudiv a:hover{ /*hover background color*/
    background-color: d8c6e9;
    }
    </style>
    
    <script type="text/javascript" src="bannerad.js">
    
    /***********************************************
    * Ultimate Fade-In Slideshow (v1.5): © Dynamic Drive (http://www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit http://www.dynamicdrive.com/ for this script and 100s more.
    ***********************************************/
    
    </script>
    
    <script type="text/javascript" src="dropmenu.js">
    /***********************************************
    * AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit http://www.dynamicdrive.com/ for full source code
    ***********************************************/
    </script>
    Then the later slideshow call should look like so (without the src attribute):

    Code:
    <td style="text-align: center; height: 100px; width: 100%;" bgcolor="black">
    <script type="text/javascript">
    //new fadeshow(IMAGES_ARRAY_NAME, slideshow_width, slideshow_height, borderwidth, delay, pause (0=no, 1=yes), optionalRandomOrder)
    new fadeshow(fadeimages, 140, 225, 0, 3000, 1, "R")
    </script>
    </td>
    There could yet be other problems but, correcting these and the one mentioned in my previous post will be a good start.
    - John
    ________________________

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

  4. #4
    Join Date
    Mar 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Well, that improved my table...and I took the doctype info out, that fixed my drop-down menu that was showing transparent...I'll worry about that later, I guess.

    But, the slideshow is still not showing up.

    I'm amazed at how quickly you found my errors above, thank you so much...any more hitting you?

  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

    This may be the last major error, at the end of the bannerad.js file, remove this:

    </script>

    There are a number of css errors and/or irregularities you should take care of because they cannot be helping. Fix the above and see what happens first.

    CSS flags:

    Error: Selector expected. Ruleset ignored due to bad selector.
    Source File: http://www.mygenesisonline.com/utahbirthnet/utahbirth.css
    Line: 4

    Error: Unrecognized at-rule or error parsing at-rule '@font-face'.
    Source File: http://www.mygenesisonline.com/utahbirthnet/utahbirth.css
    Line: 7

    Error: Unknown property 'decoration'. Declaration dropped.
    Source File: http://www.mygenesisonline.com/utahbirthnet/utahbirth.css
    Line: 31

    Error: Unknown property 'decoration'. Declaration dropped.
    Source File: http://www.mygenesisonline.com/utahbirthnet/utahbirth.css
    Line: 34

    Error: Unknown pseudo-class or pseudo-element 'normal'. Ruleset ignored due to bad selector.
    Source File: http://www.mygenesisonline.com/utahbirthnet/utahbirth.css
    Line: 35

    Error: Unknown pseudo-class or pseudo-element 'normal'. Ruleset ignored due to bad selector.
    Source File: http://www.mygenesisonline.com/utahbirthnet/utahbirth.css
    Line: 38

    Error: Error in parsing value for property 'font'. Declaration dropped.
    Source File: http://www.mygenesisonline.com/utahbirthnet/
    Line: 12

    Error: Expected ':' but found ';'. Declaration dropped.
    Source File: http://www.mygenesisonline.com/utahbirthnet/
    Line: 13
    - John
    ________________________

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

  6. #6
    Join Date
    Mar 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I had no idea that closing script tag was there...sorry, that was dumb.

    But, the banner popped up when I removed above tag and the centering style that shouldn't be there...I'll go see about getting it in my css...

    I'm awfully discouraged about all the errors...I need to go learn about the doctype info. When I looked at trying different doctype coding, the wc3 validator kept telling me it was the wrong one. The have info there about it, but none of it makes sense...I'll have to try htmlgoodies...he has any easy way of talking.

    Thank you SO much, you've been really great!

  7. #7
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Basically, stick to HTML4.01 Strict unless you know what you're doing.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  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

    I prefer the:

    HTML Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
    DOCTYPE which is a good one to use if you are used to writing without one. It requires a little adapting to if you are used to no DOCTYPE but, not as much as a strict DOCTYPE does. If you are just starting out, a strict DOCTYPE probably will give you the most consistency across browsers.

    About the css errors. Those were picked up by FF1.5.0's javascript console and most are the result of invalid entries in your external stylesheet, some in the style section on the page itself. These are generally just ignored by browsers. Most, if not all, are css errors that would be invalid with any DOCTYPE or even without one. Studying up on proper css syntax and the available selectors, properties and values will help you not to make so many of these kind of errors. Don't feel too bad though, even the most experienced coders make some of these kinds of goofs now and then.
    - 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
  •