Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Help needed: JQuery slideshow and moving divs...
Old 03-28-2007, 01:43 PM Help needed: JQuery slideshow and moving divs...
Average Talker

Posts: 22
Trades: 0
http://layer5.medialayer.net/~shaydoro/

I'm in the very beginning stages of putting together a site for a basketball player, and I have a slideshow with headlines/photos on the front page that uses jQuery (a process that makes javascript really easy to use). The only problem is that as the first photo fades out and the next one fades in, the divs underneath the headlines box keep moving.

I'm honestly not sure if it has to do with something I've specified in the js code, or with the styling...I've tried setting fixed heights for the slideshow sd_slide0, etc., divs, but to no avail.

I just need the slideshow to be enclosed in a box that DOESN'T move. I'm sure there's something simple I'm overlooking here.

Any ideas? I really need to figure this out!
randomharp is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-29-2007, 03:19 AM Re: Help needed: JQuery slideshow and moving divs...
Junior Talker

Posts: 2
Name: roamer
Trades: 0
"the divs underneath the headlines box keep moving"
what'a that mean exactly?
roamer is offline
Reply With Quote
View Public Profile
 
Old 03-29-2007, 03:31 AM Re: Help needed: JQuery slideshow and moving divs...
Junior Talker

Posts: 2
Name: roamer
Trades: 0
do this code work for you?

the html code:
------------------------------------------------------------
<div id="imgs" style="display:none">
<img src="../uploadimage/117464293723222275.jpg" />
<img src="../uploadimage/117464492814584465.jpg" />
<img src="../uploadimage/117465078560327384.jpg" />
</div>
<img id="slide"></img>
------------------------------------------------------------

the javascript code(base jQuery):
------------------------------------------------------------
function play(){
var imgs = $("#imgs").children();
$("#slide").hide().css({width:'200px',height:'200p x'}).attr('src',$(imgs.get(index)).attr("src")).fa deIn('4');
index ++ ;//global variable
if(index >= imgs .length) index = 0;
setTimeout('play()',4000);
}
$(play);

Last edited by roamer; 03-29-2007 at 04:40 AM..
roamer is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Help needed: JQuery slideshow and moving divs...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.17453 seconds with 12 queries