Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: help wirting a simple code

  1. #1
    Junior Member
    Join Date
    Oct 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default help wirting a simple code

    hey guys
    im a beginner in java just staarted couple days ago
    but i have to wirte some code to my boss that do a simple image slider
    i managed to make the slider itself but then he asked me to do it in spcific size
    that i didnt succside

    here the code i wrote

    can you plz help me make the modification so i can set hight and width?

     
    <script type='text/javascript'
        src='http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js'>
        </script>
     
     
        <script type="text/javascript">
            var imgs = [
            'http://www.h-woods.co.il/admin/wp-content/uploads/2012/10/vsop-03.jpg',
            'http://www.h-woods.co.il/admin/wp-content/uploads/2012/10/vsop-02.jpg',
            'http://www.h-woods.co.il/admin/wp-content/uploads/2012/10/vsop-01.jpg'];
             var cnt = imgs.length;
     
            $(function() {
                setInterval(Slider, 2500);
            });
     
     
    	 function Slider() {
            $('#imageSlide').fadeOut("slow", function() {
               $(this).attr('src', imgs[(imgs.length++) % cnt]).fadeIn("slow");
            });
            }
    </script>


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: help wirting a simple code

    Java != javascript. I've moved this to the "Other Programming Languages" forum.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Junior Member
    Join Date
    Oct 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: help wirting a simple code

    please can someone help me i need this badly...

  4. #4
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: help wirting a simple code

    Quote Originally Posted by chibbi View Post
    please can someone help me i need this badly...
    I would suggest using google, then posting this to an actual javascript forum.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  5. #5
    Junior Member
    Join Date
    Nov 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: help wirting a simple code

    Java boasts all the prime object characteristics like inheritance, encapsulation, abstraction and polymorphism which can be used to implement an extensive range of problems. The memory and time management for each program are also very organized and well-maintained. For the users, the software developers can also include a variety of attractive graphics, which was never possible for C or any other 16 bit computer language.

    Thanks.

Similar Threads

  1. Simple swing GUI code....Plz help
    By Arati2512 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: April 13th, 2012, 11:13 AM
  2. Help with understanding simple GUI Code
    By jordan123 in forum What's Wrong With My Code?
    Replies: 6
    Last Post: March 21st, 2012, 03:19 PM
  3. Need help with simple code
    By suxen in forum What's Wrong With My Code?
    Replies: 2
    Last Post: February 21st, 2011, 08:10 PM
  4. Simple code error
    By robin28 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: December 7th, 2010, 03:25 PM
  5. im dying here..on a simple code
    By Jason in forum What's Wrong With My Code?
    Replies: 3
    Last Post: September 28th, 2010, 10:33 PM