Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Oct 2009
    Posts
    4
    Plugin Contributions
    0

    Default Getting Flash Image Rotator to work

    Hi, I'm a ZC noob and I have been slowly but surely understanding how the system works by reading a lot here. I am attempting to use a flash image rotator on my home page to rotate through some of my products. The program I am working with is here http://www.flabell.com/flash/XML-Banner-Rotator-233 The program works perfectly fine as you can see a working example here http://www.canvaspaintingsdirect.com...est/index.html but I have not been able to make it work live on my home page.

    Upon investigating the structure of the working example, I can see that swfObject.js is being called in the header to embed the script on the page, then an inline script is also used for configuration. First step was I added the script call line for swfObject.js into my common/html_header.php file so it resides in it's proper place in the HTML header when my home page is generated. I've placed all the files required for this program in the correct areas in templates/MY-TEMPLATE-NAME as far as I can tell, then added the rest of the code to my define_main_page.php.

    Since everything appeared to be in it's proper place I thought I would have it working but it has not. I've experimented with the recommended coding for adding flash to a ZC site from the Wiki with no success. There seems to be something I am missing here, can anyone help?

  2. #2
    Join Date
    Jun 2009
    Posts
    187
    Plugin Contributions
    0

    Default Re: Getting Flash Image Rotator to work

    You can also just insert the code into the editor for the main page (define pages editor if memory serves). You can see what I have done at www.ecigexpress.com

    If you need more info let me know. I'm not exactly sure if that was what you had in mind.

  3. #3
    Join Date
    Oct 2009
    Posts
    1
    Plugin Contributions
    0

    Default Re: Getting Flash Image Rotator to work

    Quote Originally Posted by linnx View Post
    You can also just insert the code into the editor for the main page (define pages editor if memory serves). You can see what I have done at www.ecigexpress.com

    If you need more info let me know. I'm not exactly sure if that was what you had in mind.
    This is exactly what I'm looking for!!! I got the code from some other post like below. But I don't know where to put insert it and which file? It would be great appreciated if you could advise,linnx!

    imgUrl1="http://zoomjoint.com/images/shoes/6901-910646-p.jpg";
    imgtext1="text1"
    imgLink1=escape("http://www.jz123.cn");
    imgUrl2="http://zoomjoint.com/images/shoes/9994-890657-p.jpg";
    imgtext2="text2"
    imgLink2=escape("http://www.jz123.cn");
    imgUrl3="http://zoomjoint.com/images/shoes/10757-806017-p.jpg";
    imgtext3="text3"
    imgLink3=escape("http://www.jz123.cn");
    imgUrl4="http://zoomjoint.com/images/shoes/10757-910721-p.jpg";
    imgtext4="text4"
    imgLink4=escape("http://www.jz123.cn");
    imgUrl5="http://zoomjoint.com/images/shoes/10757-910721-5.jpg";
    imgtext5="text5"
    imgLink5=escape("http://www.jz123.cn");

    var focus_width=240
    var focus_height=200
    var text_height=18
    var swf_height = focus_height+text_height

    var pics=imgUrl1+"|"+imgUrl2+"|"+imgUrl3+"|"+imgUrl4+"|"+imgUrl5
    var links=imgLink1+"|"+imgLink2+"|"+imgLink3+"|"+imgLink4+"|"+imgLink5
    var texts=imgtext1+"|"+imgtext2+"|"+imgtext3+"|"+imgtext4+"|"+imgtext5

    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"

    codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#versi

    on=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
    document.write('<param name="allowScriptAccess" value="sameDomain"><param

    name="movie" value="images/focus2.swf"><param name="quality" value="high"><param

    name="bgcolor" value="#F0F0F0">');
    document.write('<param name="menu" value="false"><param name=wmode

    value="opaque">');
    document.write('<param name="FlashVars"

    value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+' &bord

    erheight='+focus_height+'&textheight='+text_height+'">');
    document.write('</object>');

  4. #4
    Join Date
    Jun 2009
    Posts
    187
    Plugin Contributions
    0

    Default Re: Getting Flash Image Rotator to work

    In the Admin, go to Tools then define pages editor. Select define_main_page.php from the dropdown list. Then you have two views to work with. One is WYSIWYG - you can change it to code view by clicking <>; Insert your code within the code view and save. See what it looks like.

  5. #5
    Join Date
    Oct 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: Getting Flash Image Rotator to work

    Thanks for the response, very helpful to know someone else has got something close to this working! Problem is that is seems more complicated than this. The very first thing I tried was just pasting the main code right into the define_main_page.php but this resulted in a blank page. As far as I can tell in thr resulting code, everything is setup the same way as it is in the working example it just doesn't show up. Can you tell me what script you are using, how you set the folders up in the directory, and more about the code you were just able to paste into the main page and get working?

  6. #6
    Join Date
    Aug 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: Getting Flash Image Rotator to work

    linxx,

    could you pls describe what you put in the main page through define page editor?
    the flash in your website is awesome!

  7. #7
    Join Date
    Jun 2009
    Posts
    187
    Plugin Contributions
    0

    Default Re: Getting Flash Image Rotator to work

    Sure... This is what is in mine. If you need more help you can pm me your yahoo messenger or AOL messenger and I can try to get you through it like that.


    <center> <object width="440" height="180" align="middle" id="tech" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">
    <param value="sameDomain" name="allowScriptAccess" />
    <param value="chicas.swf?xml_path=slides.xml" name="movie" />
    <param value="high" name="quality" />
    <embed width="440" height="180" align="middle" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" allowscriptaccess="sameDomain" name="tech" quality="high" src="chicas.swf?xml_path=slides.xml" />
    </object></center>

  8. #8
    Join Date
    Jun 2009
    Posts
    187
    Plugin Contributions
    0

    Default Re: Getting Flash Image Rotator to work

    Also, I am using a third party flash maker. So the code that yours gives you looks different.

  9. #9
    Join Date
    Jun 2009
    Posts
    187
    Plugin Contributions
    0

    Default Re: Getting Flash Image Rotator to work

    Actually just hit me up and I can make you what you need and give you the code...

  10. #10
    Join Date
    Aug 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: Getting Flash Image Rotator to work

    great!
    i'll put it in right now
    i'll keep you guys update!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Image Rotator Issues
    By newbie11 in forum General Questions
    Replies: 2
    Last Post: 12 Jan 2012, 06:13 PM
  2. image/banner rotator
    By lucianman in forum General Questions
    Replies: 5
    Last Post: 12 Nov 2011, 01:57 AM
  3. XML Flash Banner Rotator
    By soyJoJo in forum General Questions
    Replies: 0
    Last Post: 29 Jul 2010, 11:34 AM
  4. Image Rotator in Blank Sidebox
    By Berserker in forum Basic Configuration
    Replies: 4
    Last Post: 9 Feb 2008, 06:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg