Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23
  1. #11
    Join Date
    Nov 2007
    Posts
    141
    Plugin Contributions
    0

    Default Re: insert a javascript for a slideshow in header

    Supersnow,
    Thanks for the reply. I understand this is not the best time of the year for zen!

    So, I moved the script back to the file called jscript_slideshow.js and copied it to my includes/templates/Sweet ZouZou/jscript folder. Next I added the below code to my includes/language/english/html_includes/Sweet ZouZou/define_main_page.php file. I want the slideshow on my main page only.

    <script type="text/javascript">
    //new fadeshow(IMAGES_ARRAY_NAME, slideshow_width, slideshow_height, borderwidth, delay, pause (0=no, 1=yes), optionalRandomOrder)
    new fadeshow(fadeimages, 463, 180, 0, 4000, 1, "R")
    //new fadeshow(fadeimages2, 140, 225, 0, 3000, 0)
    </script>

    But I think there is more to add to the above code? How do I call the new jscript file?

    Thx, Sweet

  2. #12
    Join Date
    Nov 2007
    Posts
    141
    Plugin Contributions
    0

    Default Re: insert a javascript for a slideshow in header

    It works now, my mistake. I messed with the code before and forgot to change it back. Thanks for the help Supersnow and happy holidays!

  3. #13
    Join Date
    Nov 2007
    Posts
    141
    Plugin Contributions
    0

    Default Re: insert a javascript for a slideshow in header

    Now I'm trying to center the jscript slideshow.

    The best I could do was position the images left:100px
    Last edited by Sweet ZouZou; 24 Dec 2007 at 11:00 PM.

  4. #14
    Join Date
    Apr 2007
    Location
    California, USA
    Posts
    233
    Plugin Contributions
    0

    Default Re: insert a javascript for a slideshow in header

    Quote Originally Posted by Sweet ZouZou View Post
    Now I'm trying to center the jscript slideshow.

    The best I could do was position the images left:100px
    To position the slideshow I originally enclosed my script in div id tags that I had set in my css. By using my template css I then was able to play around with it a bit. I now have it in a table so that I can have to zencart driven banners on either side. I hope this helps.
    Thanks
    Supersnow

  5. #15
    Join Date
    Nov 2007
    Posts
    141
    Plugin Contributions
    0

    Default Re: insert a javascript for a slideshow in header

    I wrapped the script in a "div id" as well and called it "slideshow"

    <div id="slideshow">
    <script type="text/javascript">
    //new fadeshow(IMAGES_ARRAY_NAME, slideshow_width, slideshow_height, borderwidth, delay, pause (0=no, 1=yes), optionalRandomOrder)
    new fadeshow(fadeimages, 500, 360, 0, 2000, 1, "R")
    //new fadeshow(fadeimages2, 140, 225, 0, 3000, 0)
    </script>
    </div>

    then added to my css

    #slideshow {
    margin-left: 60px;
    width: 500px;
    }

    I tried using "float: center" but the script stayed on the left margin, so I had to use "margin-left: 60px"

    Sweet

  6. #16
    Join Date
    Apr 2007
    Location
    California, USA
    Posts
    233
    Plugin Contributions
    0

    Default Re: insert a javascript for a slideshow in header

    Looks great! I am glad I was able to help, even though I was a little slow.
    Thanks
    Supersnow

  7. #17
    Join Date
    Mar 2009
    Posts
    2
    Plugin Contributions
    0

    Default Re: insert a javascript for a slideshow in header

    cane some one help me out to insert a javascript for a slideshow in the zencart logo section as I want to put there my every changing logo excample pictures from our factory

    Thank in advanse please see our site
    www.shellton-naturestone.com

    FOR EXAMPLE: this site has a slide show in his header
    http://www.kravshop.com/
    but we want to put it in the LOGO SECTION

    HOW i CAN DOE THIS????????????????????

  8. #18
    Join Date
    Mar 2009
    Posts
    2
    Plugin Contributions
    0

    Default Re: insert a javascript for a slideshow in header

    Quote Originally Posted by shellton View Post
    cane some one help me out to insert a javascript for a slideshow in the zencart logo section as I want to put there my every changing logo excample pictures from our factory

    Thank in advanse please see our site
    www.shellton-naturestone.com

    FOR EXAMPLE: this site has a slide show in his header
    http://www.kravshop.com/
    but we want to put it in the LOGO SECTION

    HOW i CAN DOE THIS????????????????????
    cane some one help me out

    I WANT to insert a javascript for a slideshow in the zencart LOGO SECTION as I want to put there my logo pictures from our factory

    Thank in advanse please see our site
    www.shellton-naturestone.com

    FOR EXAMPLE: this site has a slide show in his header http://www.kravshop.com/

    but we want to put it in the TOP OF THE LOGO SECTION

    HOW i CAN DOE THIS????????????????????
    CAN ANY ONE EXPLAINE

  9. #19
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: insert a javascript for a slideshow in header

    Quote Originally Posted by shellton View Post
    cane some one help me out

    I WANT to insert a javascript for a slideshow in the zencart LOGO SECTION as I want to put there my logo pictures from our factory

    Thank in advanse please see our site
    www.shellton-naturestone.com

    FOR EXAMPLE: this site has a slide show in his header http://www.kravshop.com/

    but we want to put it in the TOP OF THE LOGO SECTION

    HOW i CAN DOE THIS????????????????????
    CAN ANY ONE EXPLAINE
    Did you read through this thread?? It's explained pretty well.. Since the logo is in the header section, and the site you gave as an example is the one who explains how he did this in this thread.. A little fenegaling, and you can replace the logo with the slideshow..

  10. #20
    Join Date
    Apr 2007
    Location
    California, USA
    Posts
    233
    Plugin Contributions
    0

    Default Re: insert a javascript for a slideshow in header

    I had a quick look at your site and your logo is in a div tag with the id "logo". So go to your tpl_header.php and look for this tag. Add the require code as I have explained earlier in this topic in this div tag area.

    If you have any problems why not include the tpl_header.php code on this thread so we can all see and maybe help out.
    Thanks
    Supersnow

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Adding slideshow javascript crashes my mobile menu
    By bushpilot444 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 5 May 2016, 01:53 PM
  2. v151 Javascript slideshow help
    By bpoilspill in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 7 Mar 2013, 03:00 AM
  3. Javascript slideshow issue
    By timhersh in forum General Questions
    Replies: 6
    Last Post: 2 Nov 2012, 09:26 PM
  4. Javascript slideshow works in Firefox but not IE!!
    By arniesbarmyarmy in forum General Questions
    Replies: 7
    Last Post: 17 Nov 2009, 05:37 AM
  5. how to insert a slideshow in flash on home page?
    By giuly in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 4 Nov 2009, 03:09 AM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR