Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Only last function runs properly

0 views
Skip to first unread message

pecan

unread,
Dec 17, 2009, 3:43:52 AM12/17/09
to
I have a problem, and I'm new to javascript, and can someone help me?

I created a page that has three image blocks with images scrolling
randomly. See www.sipawards.com/results.php (not my original design, I
only had to do the search query, and then add in the images).

Everything is fine in FF, and but in IE8 (specifically) only the third
image appears and rotates correctly, unless you mouseover the top menu,
and then it all normalises.

I have tried removing the top menu and it doesn't change anything, so I
then experimented with the positionig of the idvs and classes for the
images, and finally established that in the script it's always the one
that listed last that openes correctly.
Here's the script:
<script type="text/javascript">
$(function() {
$('#slide1').cycle({
delay: -4000,
speed: 1000,
timeout: 6000,
random: 1
});

$('#slide2').cycle({
delay:0,
speed: 1000,
timeout: 6000,
random: 1
});

$('#slide3').cycle({
delay:-2000,
speed: 1000,
timeout: 6000,
random: 1
});

// function onBefore() {
// $('#title').html(this.alt);
// }
});

function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}

</script>

I'm stumped. Does anyone have a clue what's happening? Maybe I'm
barking up the wrong tree?

Thanks in advance.

--
== Not nuts, just a little eccentric ==

Sabine Dinis Blochberger

unread,
Dec 17, 2009, 6:56:23 AM12/17/09
to
pecan wrote:

> I have a problem, and I'm new to javascript, and can someone help me?
>

I'm sure someone in comp.lang.javascript can. Java is not the same as
JavaScript.
--
Op3racional - www.op3racional.eu
---------------------
If you're reading this, you're on Usenet
<http://oakroadsystems.com/genl/unice.htm>

Roedy Green

unread,
Dec 17, 2009, 8:42:58 AM12/17/09
to
On Thu, 17 Dec 2009 10:43:52 +0200, pecan <pe...@NOSPAMrouxville.info>
wrote, quoted or indirectly quoted someone who said :

>I'm stumped. Does anyone have a clue what's happening? Maybe I'm
>barking up the wrong tree?

This is the wrong place to ask. see
http://mindprod.com/jgloss/javascript.html9

The same problem in Java might be caused by forgetting all Applets on
the page run on a single thread. If you tie up the thread with a wait
on I/O, sleep or busy work, no other Applet will be able to do
anything.

You must put work that takes a while to complete on a background
thread.
--
Roedy Green Canadian Mind Products
http://mindprod.com
The future has already happened, it just isn�t evenly distributed.
~ William Gibson (born: 1948-03-17 age: 61)

pecan

unread,
Dec 17, 2009, 10:20:43 AM12/17/09
to
Roedy Green wrote:
> On Thu, 17 Dec 2009 10:43:52 +0200, pecan <pe...@NOSPAMrouxville.info>
> wrote, quoted or indirectly quoted someone who said :
>
>> I'm stumped. Does anyone have a clue what's happening? Maybe I'm
>> barking up the wrong tree?
>
> This is the wrong place to ask. see
> http://mindprod.com/jgloss/javascript.html9
>
> The same problem in Java might be caused by forgetting all Applets on
> the page run on a single thread. If you tie up the thread with a wait
> on I/O, sleep or busy work, no other Applet will be able to do
> anything.
>
> You must put work that takes a while to complete on a background
> thread.

Thanks, peeps, I'll try elsewhere.

Lew

unread,
Dec 17, 2009, 1:57:32 PM12/17/09
to
pecan wrote:
> Thanks, peeps, I'll try elsewhere.
>

I guess we look like marshmallow chickens.
<http://www.youtube.com/watch?v=-Cj3hGpCHYQ&NR=1>

--
Lew

0 new messages