Announcement

Collapse
No announcement yet.

1st attempt at adding a flash banner

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    1st attempt at adding a flash banner

    i have followed the instructions of embedding the code found here...

    http://community.actinic.com/showpos...8&postcount=23

    into a fragment. when i complete it my best seller list disapears from my home page! when i remove the fragment it comes back.

    have i missed an instruction?

    thanks

    #2
    Do you have a URL?

    Comment


      #3
      i think i may have sorted it, as the best sellers are no longer missing! but are you able to explain the load fail?

      http://www.canvasphotographybyjo.co.uk/index.html

      thanks

      Comment


        #4
        The swf file by itself doesn't run: http://www.canvasphotographybyjo.co....phy/tester.swf

        Have you got all the supporting images etc on the right place on your server. Actinic will not upload these unless they are ok to reside in the acatalog (or in your case the Photography folder). Are there also any supporting scripts needed?

        Comment


          #5
          Google 'Javascript Image slideshow' and use one of those, so much easier/better. Flash schmash.

          Comment


            #6
            i will check the files

            i checked the ftp folder (photography) and the .swf files have transfered, but the slides themselves seem to be missing. should i add these into the additional files and/or add them tot he server manually?

            thanks

            Comment


              #7
              It depends were they need to be relatiuve to the swf file. If they need to be in 'Photography' then yes - if elsewhere then ftp them directly.

              I agree with Lee though a javascript solution will probably be better and will work on devices that don't support flash.

              Comment


                #8
                Thanks guys,

                ill have a looksy at the javascript

                Comment


                  #9
                  ok, so the java script bit seems a bit more straight forward, except...

                  i have checked my source code against the source code of where i borrowed the code form and they seem to be identical, with the exceptions of my details.

                  http://www.canvasphotographybyjo.co.uk/

                  but the images wont scroll. is there somthing in actinc that is stoping this?

                  thanks

                  Comment


                    #10
                    In the source I see:
                    Code:
                    <script>
                    <!--
                    slideshowimages("test1.gif","test2.gif") 
                    slideshowlinks("http://www.midlandhomesupplies.co.uk/","http://www.cda-kitchen-appliances.co.uk")
                    var slideshowspeed=20
                    var whichlink=0
                    var whichimage=0
                    function slideit(){
                    if (!document.images)
                    return
                    document.images.slide.src=slideimages<Actinic:Variable Name = 'whichimage'/>.src
                    whichlink=whichimage
                    if (whichimage<slideimages.length-1)
                    whichimage++
                    else
                    whichimage=0
                    setTimeout("slideit()",slideshowspeed)
                    }
                    slideit()
                    //-->
                    
                    </script>
                    which doesn't look right. The links out to the two other sites? The Actinic variable?

                    Post the code you have in your fragment, and explain what you have done.

                    Comment


                      #11
                      the code im using is as follows:

                      !!<<a href="javascript:gotoshow()"><img src="test1.gif" name="slide" border=0 width=650 height=340></a>
                      <script>
                      <!--

                      slideshowimages("test1.gif","test2.gif")
                      slideshowlinks("http://www.midlandhomesupplies.co.uk/","http://www.cda-kitchen-appliances.co.uk")

                      var slideshowspeed=20

                      var whichlink=0
                      var whichimage=0
                      function slideit(){
                      if (!document.images)
                      return
                      document.images.slide.src=slideimages[whichimage].src
                      whichlink=whichimage
                      if (whichimage<slideimages.length-1)
                      whichimage++
                      else
                      whichimage=0
                      setTimeout("slideit()",slideshowspeed)
                      }
                      slideit()

                      //-->
                      </script>
                      <p align="center"><font face="arial" size="-2">This free script provided by</font><br>
                      <font face="arial, helvetica" size="-2"><a href="http://javascriptkit.com">JavaScript
                      Kit</a></font></p>!!<

                      those links are random address i picked up, if you click the visible image on the site http://www.canvasphotographybyjo.co.uk/ it takes you to the 1st link. i believe you can set a link for each scrolled image?

                      the line that reads 'document.images.slide.src=slideimages[whichimage].src' is showing on the source with an actinic variable and im unsure why.

                      Comment


                        #12
                        it would seem that this line

                        document.images.slide.src= slideimages[whichimage].src

                        is the problem. for some reason the line above is translated to

                        document.images.slide.src=slideimages<Actinic:Variable Name = 'whichimage'/>.src

                        i was reading that IE has reserved words, that can cause problems with thsi kind of thing. have you exp anything like this?

                        thanks

                        Comment


                          #13
                          Where you have square brackets [] in the code, make sure you put a space at the start and the end, so [test] becomes [ test ].

                          Comment

                          Working...
                          X