PDA

View Full Version : help about a javascript


claudia
02-06-2003, 06:47 AM
hi

i am looking for a javascript that allows me to have an object
(layer) slide
smoooooooooooootly around the screen after a mouse event. i am a beginner in javascript, but learning and learnig. :confused:
does someone knows some????

txs!! (very much!!)
claudia

beetle
02-06-2003, 08:02 AM
Like this? (http://www.peterbailey.net/dhtml/test.htm)

claudia
02-06-2003, 05:36 PM
thanks beetle!!!! super - hiper thanks - 10000 txs 12356676770000000 txs

really i surfed all around and could not find anything that i could work with. and i could not do it myself, since i am a beginner.

and u r great!!! i will learn a lot with the file!!!!


claudia

beetle
02-06-2003, 05:41 PM
Okay, cool. I wish you luck!

That script is pretty functional, but I'm not done with it yet. However, you shouldn't come across any errors.

cg9com
02-06-2003, 07:08 PM
beetle, thats really cool

claudia
02-11-2003, 06:20 PM
i was trying to have a navigator floating around my home page and getting me to the several paintings, been always present on screen so i could "wonder" around this huge html page.
http://piet.zwart.online.fr/claudia/



i tryed to adapt the COOL script from the WONDER beatlle and mix it with a floating navigator.

i mixed all all right!!! nothing happened, they all stopped, the code is something like a bible and a thora all toghether so big.

is it possible to have several scripts in the same html?????

puzzled, frustrated
claudia :(

beetle
02-11-2003, 06:44 PM
I'm really not sure what you want to do. Move the nav-box thing from picture to picture?

claudia
02-11-2003, 07:03 PM
yes :) !! make the layers (one actually) be the navigator and link them to the pictures. but the navigator must be always present. on screen.
it must "follow you" so you can always go from link to link and back in this XXL html page.
the navigator must also go slowly to the target (anchor?) in the html page. The effect is that , for instance, the user passes by a painting like if you are inside an airplane and pass by a building to stop further on in another place.

that is why i was trying with a new layer that has a scrool effect:
(it is a menu that are always present, even scrolling the page.

but it did not work!!!

do you think it is possible to make this effect whith javascript?
i feel i am in the good track but my lack of skills are getting me crazy


<SCRIPT language=JavaScript><!--

function pageOffset() {

if (document.layers) {

document.layers['navigator'].pageX = window.pageXOffset + 150;

document.layers['navigator'].pageY = window.pageYOffset + 150;

}

else if (document.all) {

document.all['navigator'].style.posLeft = document.body.scrollLeft + 150;

document.all['navigator'].style.posTop = document.body.scrollTop + 150;

}

setTimeout('pageOffset()',100);

}



function jumpTo(posleft,postop) {

self.scrollTo(posleft,postop);

}

//--></SCRIPT>
<TD>
<FORM action=get><INPUT name=posleft> <INPUT name=postop> <INPUT onclick="jumpTo(posleft,postop); return true" type=submit value=scroll!>
</FORM></TD></TR>
<TR>

beetle
02-11-2003, 10:26 PM
Well, I've been adding some features to my animation API and came up with this demo page to show it off.

http://www.peterbailey.net/dhtml/animate.htm