Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-24-2009, 06:09 PM   PM User | #1
surreal5335
Regular Coder

 
Join Date: May 2008
Posts: 446
Thanks: 23
Thanked 5 Times in 5 Posts
surreal5335 is an unknown quantity at this point
show jcarousel lite plug in

For those of you who have helped me in the past, you may remember my situation trying to show a carousel by clicking on an image inside another carousel.

Well the code I was trying to use in the past wasnt taking at all no matter what I did, so I gave up on it and tried another and much longer hand approach.

I am now making progress, but still there is problems.

instead of showing a functional carousel, I am only getting a static list with lots of empty space to it.

the code I am using now:

Code:
	$("#g1").click(function(){
		$("#p_2").hide();
		$("#p_3").hide();
		$("#p_4").hide();
		$("#p_5").hide();
		$("#p_6").hide(function() {
		$("img#space").hide();
		$("span#picture").show();
		$("div#picture").show();
		$("#p_1").show();
		
		});
	});
I just created multiple of these, one for each image telling the browser exactly what to do. I know its amateur but its actually doing something over my first function I wrote.

My html looks like this:

Code:
<span id="picture" class="picture">
<img src="/photo_site/btnpic_up.png" id="prevpic" style="vertical-align: top; float: left;" 
class="gradualshine" 
 onmouseover="slowhigh(this)" 
 onmouseout="slowlow(this)" vspace="5" width="160" alt="prev"/>

 
 <div class="picture" id="picture">
     <ul id="p_1">
         <li><a href="#"><img src="/photo_site/thumbs/pictures/misc/tm1.png" alt="1" id="p_1" height="160" width="160"/></a></li>
         <li><a href="#"><img src="/photo_site/thumbs/pictures/misc/tm3.png" alt="2" id="p_1" height="160" width="160"/></a></li>
         <li><a href="#"><img src="/photo_site/thumbs/pictures/misc/tm4.png" alt="3" id="p_1" height="160" width="160"/></a></li>
         <li><a href="#"><img src="/photo_site/thumbs/misc.png" alt="4" id="p_1" height="160" width="160"/></a></li>
     </ul>
</div>

<img src="/photo_site/btnpic_dwn.png" id="nextpic" style="vertical-align: bottom; float: left;" 
class="gradualshine" 
 onmouseover="slowhigh(this)" 
 onmouseout="slowlow(this)" vspace="5" width="160" alt="next"/>
 
</span>
I have about 6 more carousels that are nested inside the <div> setup as <ul>s

If you would like to view the page, my link is:

http://royalvillicus.com/photo_site/photo.html

to be able to see the working carousel on the bottom just click on the seashore image.

Thanks a lot for all your help
surreal5335 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:43 PM.


Advertisement
Log in to turn off these ads.