Login | Forgot password | Register

X

What is OpenID?

OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.

With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.

For more information visit the official OpenID site.

Jump to:

17480 Posts in 4474 Topics by 1973 members

Archive

SilverStripe Forums » Archive » Add JavaScript file to Silverstripe for Image Scrolling

Our old forums are still available as a read-only archive.

Page: 1
Go to End
Author Topic: Add JavaScript file to Silverstripe for Image Scrolling 511 Views
  • Singh
    avatar
    Community Member
    9 posts

    Add JavaScript file to Silverstripe for Image Scrolling Link to this post

    Hi Everyone,

    I am trying to add a javascript file to silverstripe. I am using a program which creates this javscript file and also give me this HTML code
    <script src="Slide.js" type="text/javascript"></script><script>SlideSetFolder('');</script>
    to add to the Page where i want to use the image. Basically what this piece of code along with javascript will do is that it will display an image on a webpage, and then keep scrolling with fading effects.
    It works fine if I just create a webpage, and the javascript file is on the same path.
    Now where should I put this javascript on my FTP directory.

    Please help.

  • LeeUmm
    avatar
    Community Member
    361 posts

    Re: Add JavaScript file to Silverstripe for Image Scrolling Link to this post

    Probably best in your mysite/javascript folder. Then just change the path to it when you call it in your template.

    511 Views
Page: 1
Go to Top

Currently Online: JoshuaLewis

Welcome to our latest member: marcusl

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.