SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member Denn's Avatar
    Join Date
    Dec 2007
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    News Clicker Javascript slideshow?

    I dont know the name for what Im after but I can point to an example>

    http://nihilum.mousesports.com/en/news/ If you go here you will see in the main content area a box which says "recent specials" and clicking on a button changes the images / link in the box.
    What is the proper name for this and how do I go about making one?

  2. #2
    SitePoint Guru tictike's Avatar
    Join Date
    Apr 2008
    Location
    Canada
    Posts
    863
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    To me this is a slideshow. There are numerous ways to make one. I am rather new to JavaScript so someone else may find fault with this example (which is fine because I might learn something from them).

    change html to js in the URL to see the commented js.

    You'd want to apply CSS however

    In the example above, I'm assigning event handlers to all the 'a' elements. Each 'a' element has an id, and from that id - after it's split in the js - the new src for the replacement image is built. I hope this helps.

    -------

    You can find other slideshows I've made here.
    Last edited by tictike; Sep 22, 2008 at 12:32. Reason: edit

  3. #3
    SitePoint Evangelist
    Join Date
    Apr 2008
    Location
    Dublin, Ireland
    Posts
    461
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Very much a work in progress but I have something like that here - http://www.systemdotweb.com/imagesli...ageslider.aspx - the fade in isn't working atm but I plan to update it this week.


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
  •