Page 1 of 3 123 LastLast
Results 1 to 10 of 29

Thread: [DHTML] Slideshow - clean, easy markup & javascript

  1. #1
    Join Date
    Mar 2007
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default [DHTML] Slideshow - clean, easy markup & javascript

    1) CODE TITLE: Ultimate Javascript Slideshow

    2) AUTHOR NAME/NOTES: Nickname: Znupi. Actual name: Felix Oghina. From: Romania . No personal site yet... i have email tho :P znupi69@gmail.com.

    3) DESCRIPTION: A really easy to use fading slideshow javascript. The markup is small and clean. A <div> and an <img>. Only 2 lines of CSS are needed. Only 48 lines of javascript required. What's so great about this script: it doesn't use overlapped images and that sort of stuff. It uses an image and the background of the div the image is in. An explanation of how it actually works is on the DEMO page. Only problem is the images must be the same size. There's nothing I can do about this, since CSS backgrounds are not resizable (as far as my knowledge goes). The script is fast, and has been tested with Firefox 2.* (probably works with older versions, too, smth like FF 1.5.*), IE 6, IE 7 and Opera 9.

    4) URL TO CODE: Here's a demo: http://dc-hub-hosting.com/znupi/slideshow

    Tell me what you think .

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    FF 1.5 is working fine. I'd test on Safari, but home for the week for spring break and my mac is in my dorm room.

    It is quite clean and works well.

    Would it be possible to dynamically change the images included in the show using onClick="" on an <a> element somewhere else on the page?
    (This is actually a personal question, and if it works, I'd love to use it on my page.)
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Mar 2007
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I'll try...

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    http://truthandliesmovie.com/gallery/
    That has a similar slideshow, but it isn't as smooth as yours.
    The method for changing the images works, though, so a look at the code might be helpful.

    I'm sorry... I'm totally dragging this thread off topic, to a personal project. It just jumped out at me.


    Anyway, please feel free to continue this as a thread about the subject in the first place, though this could be a useful addition to the script for others as well.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  5. #5
    Join Date
    Mar 2007
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Oooh I understood something else, I thought you wanted it to be able to have a link saying "next image" ... sorry I'm a bit slow today ...

    Changing the images dynamically... That shouldn't be a problem I'll get on it when I get back from school today .

  6. #6
    Join Date
    Jun 2006
    Posts
    182
    Thanks
    0
    Thanked 14 Times in 14 Posts

    Default

    Nice, though it's impossible to have multiple slideshows on one page.

  7. #7
    Join Date
    Mar 2007
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by DimX View Post
    Nice, though it's impossible to have multiple slideshows on one page.
    I know. And I can't make it support multiple slideshows, that would pretty much mean a whole recoding of the script .

  8. #8
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Quote Originally Posted by Znupi View Post
    I know. And I can't make it support multiple slideshows, that would pretty much mean a whole recoding of the script .
    But you do realize that if you don't and this script gets published, you'll be getting questions daily from members asking you how to accomplish just that?

  9. #9
    Join Date
    Mar 2007
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by ddadmin View Post
    But you do realize that if you don't and this script gets published, you'll be getting questions daily from members asking you how to accomplish just that?
    Lol ... if so, then if it gets published the description should say in capitals "DOES NOT SUPPORT MULTIPLE INSTANCES" ... anyway I'll work a little more on it and let you know when it's finished (I'll try to add the image-set-changing option and some other improvements).

  10. #10
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Or... (dramatic music) completely redesign it . I know you don't want to, but ddadmin is right. You'll get RAPED VERBALLY if you publish it and it doesn't have those features. Then we'll have to jump in and come up with a solution.
    - Mike

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
  •