Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Jan 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    can anyone help with my slideshow?

    hi soz, and hello everyone, i am new to java scripting. i hav just made a slideshow for my website, and i wanted to get rid of the next and prev text and replace with buttons, i have done this but the < and > text is still there. how would i get rid? thank you.... heres the code

    <title>Image Slideshow</title>
    <script language="Javascript" type="text/javascript">
    myPix = new Array("http://homepages.tesco.net/dolittle/me02.jpg","http://homepages.tesco.net/dolittle/setup.jpg","http://homepages.tesco.net/dolittle/me01.jpg","http://homepages.tesco.net/dolittle/System.jpg")
    thisPic = 0
    imgCt = myPix.length - 1

    function chgSlide(direction) {
    if (document.images) {
    thisPic = thisPic + direction
    if (thisPic > imgCt) {
    thisPic = 0
    }
    if (thisPic < 0) {
    thisPic = imgCt
    }
    document.myPicture.src=myPix[thisPic]
    }
    }
    </script>
    </head>
    <body bgcolor="#FFFFFF">
    <p align="center"><img src="http://homepages.tesco.net/dolittle/System.jpg" name="myPicture" width="500" height="384" alt="Slideshow" /></p>
    <h1 align="center"><a href="javascript:chgSlide(-1)">&lt;&lt; <input type=button onClick="previous();" value="&lt;&lt;" title="Previous"></a>&nbsp;&nbsp;<a href="javascript:chgSlide(1)"><input type=button onClick="next();" value="&gt;&gt;" title="Next"> &gt;&gt;</a></h1>

  • #2
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by dolittle
    hi soz, and hello everyone, i am new to java scripting. i hav just made a slideshow for my website, and i wanted to get rid of the next and prev text and replace with buttons, i have done this but the < and > text is still there. how would i get rid? thank you.... heres the code
    ??hsirgne n tad taeper u nc silliw niyas b u tow huh

  • #3
    New to the CF scene
    Join Date
    Jan 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    umm????

  • #4
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    If you have written the code surely you know how to amend the many errors that are in there?
    Last edited by Mr J; 01-22-2005 at 09:25 PM.
    The silent one.

    The most dangerous thing in the world is an idea.
    The most dangerous person in the world is the one with an idea.

  • #5
    New to the CF scene
    Join Date
    Jan 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    no i have writen it from a book, and ive copyed a bit from someone elses script and added it cuz i wanted buttons. so no one can help then?

  • #6
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by dolittle
    no i have writen it from a book, and ive copyed a bit from someone elses script and added it cuz i wanted buttons. so no one can help then?
    ??hsirgne n tad taeper u nc silliw niyas b u tow huh

    .....Willy

  • #7
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    Ok, Please try the following




    <HTML>
    <HEAD>
    <TITLE>Document Title</TITLE>

    <script language="javascript">
    <!--
    myPix = new Array("http://homepages.tesco.net/dolittle/me02.jpg","http://homepages.tesco.net/dolittle/setup.jpg","http://homepages.tesco.net/dolittle/me01.jpg","http://homepages.tesco.net/dolittle/System.jpg")
    thisPic =0
    imgCt = myPix.length - 1

    function chgSlide(direction) {
    if (document.images) {
    thisPic = thisPic + direction
    if (thisPic > imgCt) {
    thisPic = 0
    }
    if (thisPic < 0) {
    thisPic = imgCt
    }
    document.myPicture.src=myPix[thisPic]
    }
    }
    //-->
    </script>
    </HEAD>
    <BODY>
    <center>
    <img src="http://homepages.tesco.net/dolittle/me02.jpg" name="myPicture" width="500" height="384" alt="Slideshow" /><BR>
    <input type=button onclick="chgSlide(-1)" value="&lt;&lt;" title="Previous"><input type=button onClick="chgSlide(1)" value="&gt;&gt;" title="Next">
    </center>
    </BODY>
    </HTML>
    The silent one.

    The most dangerous thing in the world is an idea.
    The most dangerous person in the world is the one with an idea.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •