Need some Javascript help......

by 3 replies
4
Hey!

I have a question and am hoping some of you expert Warriors can help me out. I'm doing some website maintenance for a company and need to modify some javascript- which I don't know much about.

The website has a serious of folders for different webpages called "mainPicture". The javascript that commands these folders is currently set up to display pics in a slideshow in alphabetical order. I need to figure out how to display pics randomly, so that they always show in a different order.

I've attached the javascript document that I'm pretty sure needs to be modified to accomplish this.

If anyone can give me some direction on this that would be awesome! Thanks so much!!!!

Rebecca
#programming #javascript
  • Not really sure how to do it that code. I would put the file names into an array and shuffle them but that is not a very good solution.

    Do you have to use that slider? I'm not sure whether it is really the same but the one on my website - Michael Burton | Home takes images inside a div that are in a list then displays them randomly. Refresh to the page a couple of times and you'll see what I mean. That slider is the nivo slider Nivo Slider - The Most Awesome jQuery Image Slider and it uses jquery.

    If you definitely have to use what you have been given I can take a deeper look at it though.
    • [1] reply
    • Hey! Thanks for the response... Yes, I do have to use the script that I attached or "slider" as you called it

      Any ideas?

      Thanks!

      • [1] reply

Next Topics on Trending Feed

  • 4

    Hey! I have a question and am hoping some of you expert Warriors can help me out. I'm doing some website maintenance for a company and need to modify some javascript- which I don't know much about.