+ 2
Just need the P1 to shrink and P2 to replace it. Wanted to start by ensuring the switch then animating the movement...
12 Antworten
+ 8
sorry, that was my stupid spell checker trying to figure out what I want to type 😃
+ 7
@Prem - of course it is for XP. Unfortunately due to the rules of the game there is no chance for me to get points from players on my level. All such challenges will result in a draw and a draw gives me 0XP. On the other hand low level player can gain points even by loosing to me, so I guess that is the only scenario which is beneficial to both parties.
Never liked that system, but this is what it is... and we have to live with it. And if you are now thinking that we (high levels) don't risk anything that way then you need to know that if I win I get 1XP, but if I get distracted or make a typo and I slip and loose I loose 32XP, so in order to make any progress my win ratio gotta be better than 1:32, I leave it to you to decide if I have much of of choice of a strategy...
+ 6
@Prem - it's hard to find active players so I just rematch everyone who answers, decline and I will not bother you again.
@Serena Yvonne - thanks! Never knew I've defeated you 😃 Glad that I somehow helped create one of the current champions of SL 😃
+ 5
as I said when you use getElementsByClassName that returns an array and arrays don't have width. It does not matter that you have only one element with that class it will return an array with one element so use:
getElementsByClassName('P1')[0].width
+ 4
getElementsByClassName returns and array, as there can be many elements with the same class, so either use an id or get the first element by getElementsByClassName(....)[0]
+ 4
@nikolay ur right i tried to get epic badge but got some draws.if i win dn i get 1xp n if by default i n defeated i loose 21xp to 31xp for which i have to win 31 challenges. i got defeated by u may be 2 or 3 times.
+ 4
i joined SL in December but left it after some time but i rejoin it few days ago from level 4 n now i m at 8.
+ 1
Ahhh, sorry I see. the word America the me off. thanks
+ 1
dont use someone who is a beginner to raise ur points
+ 1
I really respect ur awesomeness...and.. brilliance@nickolay..
I even accepted the challenge ..and played him. as many times as possible...
sometimes it was a draw.. sometimes i lost.
but why should u play with a person who is not at ur level repeatedly....
i have a reject button....i know it@serena
but..why...?
immediately when i lose why should u play?
don't you think it is for points?@serena
this is..very childish for me..to say this...but..i just wanted to ask him...thats it
0
all that's in the javascript section. I keep getting an error that width is not defined for var z but z is identified as the class P1.
could it be that I'm using a section instead of a div? P1 has both a height and width of 300px. I just want to slide P1 left it's entire width while moving P2 into P1's position. or slowly collapse P1 under P2. Both of which have 300px width and height. P2 has it's left set to 300px. I'm gonna check over it again however.