Killersites.com Homepage Welcome Guest   |   Register  |  Login
Login Name Password
  Search  
  Index  | Recent Threads  | Unanswered Threads  | Who's Online  | User List  | Help


Quick Go »

No member browsing this thread
Thread Status: Active
Total posts in this thread: 1
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 1456 times and has 0 replies Next Thread
Male GrandMamamouchi
Stranger




Joined: Nov 26, 2004
Post Count: 2
Status: Offline
Reply to this Post  Reply with Quote 
Function circling...

Hi !

could you explain me why, when i add the images_load function in the
actions line, the firt function is circling ?

Thanx !

<SCRIPT language="JavaScript" >

actions_liste=[
"incrementeur_droite=window.innerWidth;
droite_ouvrir(); images_load(convives_tableau, 2, 0, convives_tableau.length)"
]

</SCRIPT>

<style type="text/css">
.rideaux_verticaux
{
position: absolute ;
width : 50% ;
height : 100% ;
background-color:green;
}
</style>

<div class="rideaux_verticaux" id="rideau_droite" > </div>

<script language="javascript">

function droite_ouvrir()
{
document.getElementById('rideau_droite').style.left = incrementeur_droite -
window.innerWidth/2

if(incrementeur_droite < 3 * window.innerWidth/2 )
{
incrementeur_droite += 2
setTimeout('droite_ouvrir()', 1)
}
else
actions_manage()
}

images_load(array, column, current_rank, end_rank)
{
while(current_rank++<end_rank)
new Image().src=array[current_rank][column]
}

</script>

Stephane Lembaumeur

<script type="text/Javascript" >

convives_tableau = [['', '', 'Maud/Images/01.jpg']]

action_no = 0
function actions_manage()
{
eval(actions_liste[action_no])
action_no++
}

onload = actions_manage()

</script>


I noticed that, if i neutralize 'else actions_manage()' in the
droite_ouvrir() function, this is no more circling, as if it were actions_manage() that provoked the circling ...
----------------------------------------
[Edit 2 times, last edit by admin at Nov 29, 2004 11:26:25 AM]
[Nov 29, 2004 8:55:23 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread