SitePoint Sponsor

User Tag List

Results 1 to 7 of 7

Thread: Slideshow

  1. #1
    Non-Member sagat's Avatar
    Join Date
    Jan 2004
    Location
    Thailand
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Slideshow

    i was looking for a good slideshow and i found one i liked http://www.computerandvideogames.com...icle_id=114268

    i tried copying the code from the source but can't get it to work. Does anyone know where i can get a similar kind of slideshow

    Nice game GT4 by the way

  2. #2
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have a very simple, javascript-only, gallery/slideshow experiment currently in the works. Perhaps it will give you some ideas.

  3. #3
    Non-Member sagat's Avatar
    Join Date
    Jan 2004
    Location
    Thailand
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks im not too familar with javascript. i have seen your demo it looks impressive but im looking for similar kind of example from the link i gave.

    this is the javascript source code:
    <SCRIPT LANGUAGE="Javascript">
    <!--

    browserName = navigator.appName; // detect browser
    browserVer = parseInt(navigator.appVersion);

    var ok = "false";
    if (browserName == "Netscape" && browserVer >= 3) ok = "true";
    if (browserName == "Microsoft Internet Explorer" && browserVer >= 4) ok = "true";

    if(ok == "true") {
    rollprev_0 = new Image();rollprev_1 = new Image();
    rollnext_0 = new Image();rollnext_1 = new Image();
    rollprev2_0 = new Image();rollprev2_1 = new Image();
    rollnext2_0 = new Image();rollnext2_1 = new Image();
    rollprev_0.src = "/images/buttons/prevshot-n.gif";rollprev_1.src = "/images/buttons/prevshot-a.gif";
    rollnext_0.src = "/images/buttons/nextshot-n.gif";rollnext_1.src = "/images/buttons/nextshot-a.gif";
    rollprev2_0.src = "/images/buttons/prevshot-n.gif";rollprev2_1.src = "/images/buttons/prevshot-a.gif";
    rollnext2_0.src = "/images/buttons/nextshot-n.gif";rollnext2_1.src = "/images/buttons/nextshot-a.gif";
    }

    function image_off(imageName)
    {
    if (ok == "true")
    {
    newImage=eval(imageName+"_0.src");
    document[imageName].src=newImage;
    }
    window.status=' ';
    }

    function image_on(imageName, number, statusText)
    {
    if (ok == "true")
    {
    newImage=eval(imageName+"_"+number+".src");
    document[imageName].src=newImage;
    }
    window.status=statusText;
    }

    // -->
    </SCRIPT>

  4. #4
    SitePoint Wizard
    Join Date
    Nov 2004
    Location
    Portsmouth UK
    Posts
    1,497
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The GT Slide Show looks good.

    The appearance is due to the html code not the JS you posted.

    also the JS is incomplete and without seeing what passes the attributes to the functions it is difficult to modify.

    Best to start again but as the JS functionality would appear quite simple you will need to explain what do you like about the slide show to replicate it.

    Is it that it is resized for each image, as thats the only unusual feature I noticed?

    BTW Mike I looked at your link but viewing in FF, it did strang things but did not display any images? just moving/disappearing unfound images and then just numbers?

  5. #5
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    BTW Mike I looked at your link but viewing in FF, it did strang things but did not display any images? just moving/disappearing unfound images and then just numbers?
    I don't have any real images in it yet - and Moz doesn't display 'placeholders' ;-)
    Those numbers (image id) were assigned to the images' alt attributes.
    I guess I need to drum up some images for the demo, eh?

  6. #6
    SitePoint Wizard
    Join Date
    Nov 2004
    Location
    Portsmouth UK
    Posts
    1,497
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Mike
    I asked about no images in your image gallery

    silly question so had a go myself

    in case you are interested see

    http://homepage.ntlworld.com/vwphill...hSlideShow.htm

    my outfit is dsc0070.jpg

    don't know what went wrong with the link but fixed now

    Thanks Mike
    Last edited by vwphillips; Feb 1, 2005 at 16:03.

  7. #7
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oops, your link doesn't work.

    You do great work Vic. And I'm really jealous of your motorcycle - sweet!


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
  •