Reply LinkBack Thread Tools Search this Thread
Old 07-05-2003, 19:30   #1 (permalink)
dorian
i do lines
 
dorian's Avatar
 
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....
__________________
...
  Reply With Quote
Old 07-05-2003, 19:37   #2 (permalink)
andrewparker
Senior Member
 
andrewparker's Avatar
 
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 )
  Reply With Quote
Old 07-05-2003, 20:00   #3 (permalink)
dorian
i do lines
 
dorian's Avatar
 
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 just like nutscape stands for you know what...

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...?
__________________
...
  Reply With Quote
Old 07-05-2003, 20:07   #4 (permalink)
andrewparker
Senior Member
 
andrewparker's Avatar
 
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 just like nutscape stands for you know what...[/quote:f56c3f56b5]

Coders that hate Java......
__________________
Andrew Parker

---------------------

(Apple PowerBook G4 1.67GHz / 1Gb RAM / OS X / Safari )
  Reply With Quote
Old 08-05-2003, 03:11   #5 (permalink)
dorian
i do lines
 
dorian's Avatar
 
Join Date: Mar 2003
Location: Poland/Denmark
Posts: 3,093
i guess it's simple stuff I'm after... just don't even know what to search for!
__________________
...
  Reply With Quote
Old 08-05-2003, 03:47   #6 (permalink)
smallbeer
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.
  Reply With Quote
Old 08-05-2003, 15:18   #7 (permalink)
dorian
i do lines
 
dorian's Avatar
 
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)
__________________
...
  Reply With Quote
Old 08-05-2003, 15:36   #8 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,200
surely you can change the 'speed' as they call it to match your needs?
__________________
That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
  Reply With Quote
Old 08-05-2003, 17:37   #9 (permalink)
dorian
i do lines
 
dorian's Avatar
 
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 it seems to work.... but it only scrolls DOWN!
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
__________________
...
  Reply With Quote
Old 10-05-2003, 21:16   #10 (permalink)
dorian
i do lines
 
dorian's Avatar
 
Join Date: Mar 2003
Location: Poland/Denmark
Posts: 3,093
here's the sweaty result... (numbers and some dirt bg's still missing)

http://www.i-ll-i.com/emma/index.htm

comments welcome
__________________
...
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8