Results 1 to 8 of 8
  1. #1
    Eshezo is offline Member
    Join Date
    Sep 2013
    Posts
    2
    Rep Power
    0

    Default Jave Code problem, simple for someone with a little experience

    Hi all, I'm new here and appreciate any help on this which is a simple thing but not for me.

    I'm using Java in some Ebay listings to display various galleries of pictures which are hosted elsewhere (photobucket)

    The gallery works perfectly but I need more than one in the same listing and when I do that the second or third gallery changes the pictures on the first gallery, I;m assuming because the code is using the same variables or something.

    Anyway the question is what do I have to change to have more than one running on the same page, code is below....thanks in advance

    <!-- Photo gallery Start -->
    <table align="left" style="margin: 0px auto; padding: 10px 0px; border: 1px solid rgb(153, 51, 51); color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" cellspacing="0" cellpadding="0">
    <tbody><tr>
    <td style="padding: 10px 5px 10px 10px; width: 580px; text-align: center; vertical-align: top;">
    <script language="JavaScript" type="text/javascript">
    <!--
    function showPhoto(num)
    {
    for (i = 1; i <= 7; i++)
    // Above line needs to match the total number of photos in gallery
    {document.getElementById("photoexd" + i).style.display = "none";
    document.getElementById("photoexd" + num).style.display = "block";}
    }
    // -->
    </script>
    <div class="photoedis" id="photoexd1" style="margin: 0px auto;">
    <img src="http://i1132.photobucket.com/albums/m574/eshezo1/SCX%20600%201/WP_20130823_028.jpg">
    <p></p></div>
    <div class="photoedis" id="photoexd2" style="margin: 0px auto;">
    <img src="http://i1132.photobucket.com/albums/m574/eshezo1/SCX%20600%201/WP_20130823_026.jpg">
    <p></p></div>
    <div class="photoedis" id="photoexd3" style="margin: 0px auto;">
    <img src="http://i1132.photobucket.com/albums/m574/eshezo1/SCX%20600%201/WP_20130823_023.jpg">
    <p></p></div>
    <div class="photoedis" id="photoexd4" style="margin: 0px auto;">
    <img src="http://i1132.photobucket.com/albums/m574/eshezo1/SCX%20600%201/WP_20130823_023-small.jpg">
    <p></p></div>
    <div class="photoedis" id="photoexd5" style="margin: 0px auto;">
    <img src="http://i1132.photobucket.com/albums/m574/eshezo1/SCX%20600%202/WP_20130823_034.jpg">
    <p></p></div>
    <div class="photoedis" id="photoexd6" style="margin: 0px auto;">
    <img src="http://i1132.photobucket.com/albums/m574/eshezo1/SCX%20600%202/WP_20130823_033.jpg">
    <p></p></div>
    <div class="photoedis" id="photoexd7" style="margin: 0px auto;">
    <img src="http://i1132.photobucket.com/albums/m574/eshezo1/SCX%20600%202/WP_20130823_032.jpg">
    <p></p></div></td>
    <td style="padding: 10px; text-align: center; vertical-align: top;">
    <ul style="list-style: none; margin: 0px; padding: 0px; border: 1px solid rgb(112, 112, 112); width: 110px; height: 400px; overflow: auto;">
    <!-- The above height sets the height of the thumbnail gallery, default value 400px -->
    <li style="margin: 3px 0px;"><img style="width: 82px;" onmouseover="showPhoto(1)" src="http://i1132.photobucket.com/albums/m574/eshezo1/SCX%20600%201/WP_20130823_028.jpg"></li>
    <li style="margin: 3px 0px;"><img style="width: 82px;" onmouseover="showPhoto(2)" src="http://i1132.photobucket.com/albums/m574/eshezo1/SCX%20600%201/WP_20130823_026.jpg"></li>
    <li style="margin: 3px 0px;"><img style="width: 82px;" onmouseover="showPhoto(3)" src="http://i1132.photobucket.com/albums/m574/eshezo1/SCX%20600%201/WP_20130823_023.jpg"></li>
    <li style="margin: 3px 0px;"><img style="width: 82px;" onmouseover="showPhoto(4)" src="http://i1132.photobucket.com/albums/m574/eshezo1/SCX%20600%201/WP_20130823_023-small.jpg"></li>
    <li style="margin: 3px 0px;"><img style="width: 82px;" onmouseover="showPhoto(5)" src="http://i1132.photobucket.com/albums/m574/eshezo1/SCX%20600%202/WP_20130823_034.jpg"></li>
    <li style="margin: 3px 0px;"><img style="width: 82px;" onmouseover="showPhoto(6)" src="http://i1132.photobucket.com/albums/m574/eshezo1/SCX%20600%202/WP_20130823_033.jpg"></li>
    <li style="margin: 3px 0px;"><img style="width: 82px;" onmouseover="showPhoto(7)" src="http://i1132.photobucket.com/albums/m574/eshezo1/SCX%20600%202/WP_20130823_032.jpg"></li>
    </ul>
    </td></tr></tbody></table>
    <!--
    Photo gallery code by Photo Gallery Maker
    Free for personal use in ebay listings
    -->
    <style type="text/css">
    <!--
    #photoexd1 {display: block;}
    .photoedis {display: none;}
    -->
    </style>
    <!-- Photo gallery End -->

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,304
    Blog Entries
    7
    Rep Power
    20

    Default Re: Jave Code problem, simple for someone with a little experience

    That is Javascript and this is a Java forum; we can't help you here.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    jim829 is online now Senior Member
    Join Date
    Jan 2013
    Location
    United States
    Posts
    3,322
    Rep Power
    5

    Default Re: Jave Code problem, simple for someone with a little experience

    Wrong forum. Looks like JavaScript to me, not Java.

    Regards,
    Jim
    The Java™ Tutorial | SSCCE | Java Naming Conventions
    Poor planning our your part does not constitute an emergency on my part.

  4. #4
    gimbal2 is online now Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    3,586
    Rep Power
    5

    Default Re: Jave Code problem, simple for someone with a little experience

    Quote Originally Posted by JosAH View Post
    That is Javascript and this is a Java forum; we can't help you here.
    Liar, I happen to know that you are a world class Javascript expert.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  5. #5
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,304
    Blog Entries
    7
    Rep Power
    20

    Default Re: Jave Code problem, simple for someone with a little experience

    Quote Originally Posted by gimbal2 View Post
    Liar, I happen to know that you are a world class Javascript expert.
    Am not! I fell asleep with my nose on the keyboard and when I woke up there was that Javascipt code ;-P

    kindest regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  6. #6
    gimbal2 is online now Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    3,586
    Rep Power
    5

    Default Re: Jave Code problem, simple for someone with a little experience

    See? You're so epic you write the code... I mean script in your sleep.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  7. #7
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: Jave Code problem, simple for someone with a little experience

    Looks like spamming the link to some stupid gallery maker

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  8. #8
    Eshezo is offline Member
    Join Date
    Sep 2013
    Posts
    2
    Rep Power
    0

    Default Re: Jave Code problem, simple for someone with a little experience

    Quote Originally Posted by DarrylBurke View Post
    Looks like spamming the link to some stupid gallery maker

    db
    Sorry guys, I'm not spamming anything, and I apologise for posting to your Java forum rather than JavaScript, I was just looking for a little help...

    It's simply a script to create a gallery on an Ebay listing and it works just not two of them together for two separate galleries..

    It's not spamming to a gallery maker it's very legit..

    rgds Esh

Similar Threads

  1. I need help in a really simple jave program.
    By aleagle in forum New To Java
    Replies: 4
    Last Post: 02-16-2012, 08:56 PM
  2. Plz give me the code of following simple problem..
    By juhiswt in forum New To Java
    Replies: 3
    Last Post: 03-07-2011, 03:54 AM
  3. jave script where is source code
    By maryjane in forum New To Java
    Replies: 1
    Last Post: 01-15-2011, 02:48 AM
  4. Problem with simple code in Java ME SDK 3.0
    By marvas in forum CLDC and MIDP
    Replies: 0
    Last Post: 10-13-2010, 06:58 PM
  5. problem with a simple java code
    By boy22 in forum New To Java
    Replies: 2
    Last Post: 08-03-2007, 02:46 AM

Posting Permissions

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