Results 1 to 5 of 5

Thread: fade effect with text

  1. #1
    Join Date
    Dec 2006
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool fade effect with text

    1) Script Title: Swiss Army Image Slideshow

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

    3) Describe problem:
    I have an error.
    I belive that I did not fill out the information correctly.
    new inter_slide(Slides_array_name, Width, Height, Interval)
    new inter_slide("toronto_20009.jpg" width="500" height="375")
    Also could not dwnload
    swissarmy.js
    may be that is the reason?

    Please, advise.

    Thank you

  2. #2
    Join Date
    Jan 2007
    Posts
    82
    Thanks
    30
    Thanked 18 Times in 17 Posts

    Default

    You must download swissarmy.js and place it in the same directory as the page in which you call to the script.

    - or

    If placed in a different directory, make sure you find this portion of the java script in the HEAD of your document:

    <script src="swissarmy.js" type="text/javascript">
    and change "swissarmy.js" to the location of where you placed it, most easily done with the full url. Example:

    <script src="http://www.yoursite.com/folder/swissarmy.js" type="text/javascript">
    it's not going to work period, let alone correctly if you don't have that java script as well as the script in the head of your document, as the instructions show on the script's page.

  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

    Also, this:

    Code:
    new inter_slide(Slides_array_name, Width, Height, Interval)
    new inter_slide("toronto_20009.jpg" width="500" height="375")
    should look like this:

    Code:
    <script type="text/javascript">
    //new inter_slide(Slides_array_name, Width, Height, Interval)
    new inter_slide("name_of_your_array", 500, 375)
    </script>
    or even this:

    Code:
    <script type="text/javascript">
    new inter_slide("name_of_your_array", 500, 375)
    </script>
    And you need the rest of the on the page (the head part, like it says on the demo page) of the script as well as the external part that tonyking mentioned.

    Go back and read over the demo page again. If you are having trouble getting the:

    swissarmy.js

    Right click on it and choose 'save as' and save it to the same folder that your page is in.
    - John
    ________________________

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

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

    Default

    Thank you Guys,

    I think the problem is the "swissarmy.js" can not be open and dowloaded by some reason.

  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

    Don't open it. Right click on it and choose 'save target as' or 'save as'. Once you have it on your computer, you don't need to open it, it just has to be in the same folder as your page. Once on your computer, you can open it if you want with a text editor such as Notepad.
    - 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
  •