Results 1 to 8 of 8
- 09-07-2013, 07:02 PM #1
Member
- Join Date
- Sep 2013
- Posts
- 2
- Rep Power
- 0
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 -->
- 09-07-2013, 07:11 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 14,422
- Blog Entries
- 7
- Rep Power
- 29
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,
JosBuild a wall around Donald Trump; I'll pay for it.
- 09-07-2013, 07:12 PM #3
Senior Member
- Join Date
- Jan 2013
- Location
- Northern Virginia, United States
- Posts
- 6,226
- Rep Power
- 15
Re: Jave Code problem, simple for someone with a little experience
Wrong forum. Looks like JavaScript to me, not Java.
Regards,
JimThe JavaTM Tutorials | SSCCE | Java Naming Conventions
Poor planning on your part does not constitute an emergency on my part
- 09-07-2013, 07:14 PM #4
Just a guy
- Join Date
- Jun 2013
- Location
- Netherlands
- Posts
- 5,114
- Rep Power
- 13
- 09-07-2013, 07:30 PM #5
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 14,422
- Blog Entries
- 7
- Rep Power
- 29
- 09-07-2013, 08:01 PM #6
Just a guy
- Join Date
- Jun 2013
- Location
- Netherlands
- Posts
- 5,114
- Rep Power
- 13
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
- 09-07-2013, 09:14 PM #7
Re: Jave Code problem, simple for someone with a little experience
Looks like spamming the link to some stupid gallery maker
dbIf you're forever cleaning cobwebs, it's time to get rid of the spiders.
- 09-07-2013, 09:25 PM #8
Member
- Join Date
- Sep 2013
- Posts
- 2
- Rep Power
- 0
Re: Jave Code problem, simple for someone with a little experience
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
-
I need help in a really simple jave program.
By aleagle in forum New To JavaReplies: 4Last Post: 02-16-2012, 09:56 PM -
Plz give me the code of following simple problem..
By juhiswt in forum New To JavaReplies: 3Last Post: 03-07-2011, 04:54 AM -
jave script where is source code
By maryjane in forum New To JavaReplies: 1Last Post: 01-15-2011, 03:48 AM -
Problem with simple code in Java ME SDK 3.0
By marvas in forum CLDC and MIDPReplies: 0Last Post: 10-13-2010, 07:58 PM -
problem with a simple java code
By boy22 in forum New To JavaReplies: 2Last Post: 08-03-2007, 03:46 AM
Bookmarks