| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
i do lines
Join Date: Mar 2003
Location: Poland/Denmark
Posts: 3,093
|
HELP with crapplet... (applet then)
alright... I'm on my knees:S I am trying to use a craplet to scroll the content of an iframe 92 px at a time... this is what I got: <!-- Begin function scrollit() { for (I=0; I<=92; I++){ this.scroll(0,I) } } // End --> How does this need to be modified? [i:d6e62eb042]Can[/i:d6e62eb042] this be modified?? what i got only crolls from position '0' to '92'! What do I need to do to make it move from 0 to 92... and then from 92 to 184.. 184 to 276 and so on? basically go from one position to the other - both up AND down... does this make sense? I am not a coder you see... Help me someone, pleeeaaase.... ...
|
|
|
|
|
|
#2 (permalink) |
|
Senior Member
Join Date: Feb 2003
Location: Manchester
Posts: 980
|
What?! I thought a crapplet was a term for a useless Java Applet????? What exactly are you trying to do? Andrew Parker
--------------------- (Apple PowerBook G4 1.67GHz / 1Gb RAM / OS X / Safari ) |
|
|
|
#3 (permalink) |
|
i do lines
Join Date: Mar 2003
Location: Poland/Denmark
Posts: 3,093
|
[quote:99144c4827="andrewparker"]What?! I thought a crapplet was a term for a useless Java Applet????? What exactly are you trying to do?[/quote:99144c4827] I thought it was just another term for 'applet' tha coders prefer to use I have some pictures that are displayed on a row - and there is several rows... That is the content of my iframe. The navigation that is supposed to scoll the content is on the same document - meaning it is within the same iframe. The images are 92 px high - so scrolling the content 92 down will reveal the next set. here's the original mockup anyway... Does this make it more clear...? ...
|
|
|
|
#4 (permalink) |
|
Senior Member
Join Date: Feb 2003
Location: Manchester
Posts: 980
|
[quote:f56c3f56b5="dorian"]I thought it was just another term for 'applet' tha coders prefer to use Coders that hate Java...... Andrew Parker
--------------------- (Apple PowerBook G4 1.67GHz / 1Gb RAM / OS X / Safari ) |
|
|
|
#6 (permalink) |
|
I Ain't Losing Any Sleep™
Join Date: Apr 2003
Posts: 5,200
|
Try this maybe... http://www.thedesigncore.com/tutorials/javascript/java_iframe.php You can increase/decrease the speed of the scroll I think. That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
|
|
|
|
#7 (permalink) |
|
i do lines
Join Date: Mar 2003
Location: Poland/Denmark
Posts: 3,093
|
nah... maybe I'm just too stupid... I need it to move x amount of pixels at a time - both up and down (depending on which arrow is pressed) the navigation is within the same iframe (so it will scroll to) ...
|
|
|
|
#9 (permalink) |
|
i do lines
Join Date: Mar 2003
Location: Poland/Denmark
Posts: 3,093
|
smallbeer: I am not using the script you suggested anyway... and the speed is not the problem either... I am using the script mentioned in my first post - it seems to kind of do the job... the 'solution' is probably not very elegant but it seems to work ONE WAY: <script language="JavaScript" type="text/JavaScript"> <!-- function scrollit01to02() { for (I=0; I<=92; I++){ this.scroll(1,I) } } function scrollit02to03() { for (I=92; I<=184; I++){ this.scroll(1,I) } } function scrollit03to04() { for (I=-184; I<=276; I++){ this.scroll(1,I) } } //--> </script> in order to scroll 92 px at a time I created different versions of the script with different variables - and I call it up on the appropriate arrows now, how should the script look if I want it to go up??? any ideas anyone (I apologise for the triviality of this... but I really am not a coder ...
|
|
![]() |