Results 1 to 4 of 4

Thread: Blending Image Slideshow

  1. #1
    Join Date
    Nov 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Blending Image Slideshow

    1) Script Title: Blending Image Slideshow

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

    3) Describe problem: When entering the code it asks for gif files and for the links it asks for htm. I have entered jpg files and pdf for the links. When i run the code all i am getting is a box with a red x in it. Is the problem the extensions or something else.

  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

    Something else. The images aren't where you are telling the script that they are. Or you have a syntax error.

    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

  3. #3
    Join Date
    Nov 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    <script language="JavaScript1.2">

    /*
    Blending Image Slide Show Script-
    © Dynamic Drive (www.dynamicdrive.com)
    For full source code, 100's more DHTML scripts, and Terms Of Use, visit dynamicdrive.com
    */

    function reapply(){
    setTimeout("slideit()",2000)
    return true
    }
    window.onerror=reapply
    </script>
    <script language="JavaScript1.1">
    <!--
    var image1=new Image()
    image1.src="http://www.NewtownRockSoftball.com/uploads/images/Kacie1.jpg"
    var image2=new Image()
    image2.src="http://www.newtownrocksoftball.com/uploads/images/Marissa1.jpg"
    var image3=new Image()
    image3.src="http://www.newtownrocksoftball.com/uploads/images/Julie1.jpg"
    var image4=new Image()
    image4.src="http://www.newtownrocksoftball.com/uploads/images/Alexa B1.jpg"
    var image5=new Image()
    image5.src="http://www.newtownrocksoftball.com/uploads/images/Rachael1.jpg"
    var image6=new Image()
    image6.src="http://www.newtownrocksoftball.com/uploads/images/Kylie1.jpg"
    var image7=new Image()
    image7.src="http://www.newtownrocksoftball.com/uploads/images/Devon1.jpg"
    var image8=new Image()
    image8.src="http://www.newtownrocksoftball.com/uploads/images/Tori1.jpg"
    var image9=new Image()
    image9.src="http://www.newtownrocksoftball.com/uploads/images/Brittany G1.jpg"
    var image10=new Image()
    image10.src="http://www.newtownrocksoftball.com/uploads/images/Alexa G1.jpg"
    var image11=new Image()
    image11.src="http://www.newtownrocksoftball.com/uploads/images/Laura1.jpg"
    var image12=new Image()
    image12.src="http://www.newtownrocksoftball.com/uploads/images/Jess1.jpg"
    var image13=new Image()
    image13.src="http://www.newtownrocksoftball.com/uploads/images/Sam1.jpg"
    //-->
    </script><a href="javascript:slidelink()" onMouseover="window.status='Click for Player Profile!';return true" onMouseout="window.status=''"><img src="firstimage.jpg" name="slide" border=0 style="filter:blendTrans(duration=3)"></a>
    <script>
    <!--
    ////change number of images below
    var number_of_images=13
    //change speed below (in seconds)
    var speed=3
    var step=1
    var whichimage=1
    function slideit(){
    if (!document.images)
    return
    if (document.all)
    slide.filters.blendTrans.apply()
    document.images.slide.src=eval("image"+step+".src")
    if (document.all)
    slide.filters.blendTrans.play()
    whichimage=step
    if (step<number_of_images)
    step++
    else
    step=1
    if (document.all)
    setTimeout("slideit()",speed*1000+3000)
    else
    setTimeout("slideit()",speed*1000)
    }
    function slidelink(){
    if (whichimage==1)
    window.location="http://www.newtownrocksoftball.com/uploads/files/Kacie.pdf"
    else if (whichimage==2)
    window.location="http://www.newtownrocksoftball.com/uploads/files/Marissa.pdf"
    else if (whichimage==3)
    window.location="http://www.newtownrocksoftball.com/uploads/files/Julie.pdf"
    else if (whichimage==4)
    window.location="http://www.newtownrocksoftball.com/uploads/files/Alexa B.pdf"
    else if (whichimage==5)
    window.location="http://www.newtownrocksoftball.com/uploads/files/Rachael.pdf"
    else if (whichimage==6)
    window.location="http://www.newtownrocksoftball.com/uploads/files/Kylie.pdf"
    else if (whichimage==7)
    window.location="http://www.newtownrocksoftball.com/uploads/files/Devon.pdf"
    else if (whichimage==8)
    window.location="http://www.newtownrocksoftball.com/uploads/files/Tori.pdf"
    else if (whichimage==9)
    window.location="http://www.newtownrocksoftball.com/uploads/files/Brittany G.pdf"
    else if (whichimage==10)
    window.location="http://www.newtownrocksoftball.com/uploads/files/Alexa G.pdf"
    else if (whichimage==11)
    window.location="http://www.newtownrocksoftball.com/uploads/files/Laura.pdf"
    else if (whichimage==12)
    window.location="http://www.newtownrocksoftball.com/uploads/files/Jess.pdf"
    else if (whichimage==13)
    window.location="http://www.newtownrocksoftball.com/uploads/files/Sam.pdf"
    }
    //-->
    </script>

    <p align="center"><font face="Arial" size="-2">Free DHTML scripts provided by<br>
    <a href="http://dynamicdrive.com">Dynamic Drive</a></font></p><body onLoad="slideit()">

  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

    You are not supposed to edit the script the way that you have. Only the red parts are to be edited (from the demo page Step 1):

    Code:
    <script language="JavaScript1.1">
    <!--
    
    //*****************************************
    // Blending Image Slide Show Script- 
    // © Dynamic Drive (www.dynamicdrive.com)
    // For full source code, visit http://www.dynamicdrive.com/
    //*****************************************
    
    //specify interval between slide (in mili seconds)
    var slidespeed=3000
    
    //specify images
    var slideimages=new Array("image1.gif","image2.gif","image3.gif")
    
    //specify corresponding links
    var slidelinks=new Array("http://www.dynamicdrive.com","http://javascriptkit.com","http://www.geocities.com")
    
    var newwindow=1 //open links in new window? 1=yes, 0=no
    
    var imageholder=new Array()
    var ie=document.all
    for (i=0;i<slideimages.length;i++){
    imageholder[i]=new Image()
    imageholder[i].src=slideimages[i]
    }
    
    function gotoshow(){
    if (newwindow)
    window.open(slidelinks[whichlink])
    else
    window.location=slidelinks[whichlink]
    }
    
    //-->
    </script>
    And, the image:

    Code:
    http://eteamz.com/newtownrocksoftball/uploads/images/Kacie1.jpg
    probably others, are not on the server in the location that you specify.
    - 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
  •