The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

What kind of script am I looking for?

2 posters

Go down

What kind of script am I looking for? Empty What kind of script am I looking for?

Post by Bleachzor May 26th 2010, 10:58 pm

I am looking for a script that makes a cirtain object (such as an image or a word) float towards a cirtain position "after" scrolling down. So Im not looking for the "fixed" property that css has but, I am really looking for a script that forces an object to keep moving towards a cirtain position (down and up) when scrolling.

Regards,

Bleach
Bleachzor
Bleachzor
Forumember

Posts : 211
Reputation : -10
Language : Dutch

Back to top Go down

What kind of script am I looking for? Empty Re: What kind of script am I looking for?

Post by Bleachzor May 26th 2010, 11:05 pm

I forgot to mention what I intent to use it for:

I want to make something like a buttonpicture containing an arrow pointing up. This will be the "cirtain object" I discribed.

I want this buttonpicture to force the browser in going back to the top of the page.

The button is supposed to follow after the scrolling, searching for the same position it had before the browser scrolled.
I am avoiding the "fixed" property of CSS becouse it has a higher risk of being left unnoticed.
Bleachzor
Bleachzor
Forumember

Posts : 211
Reputation : -10
Language : Dutch

Back to top Go down

What kind of script am I looking for? Empty Re: What kind of script am I looking for?

Post by ankillien May 28th 2010, 10:28 am

Hello,

I think this is what you are looking for...
http://www.dynamicdrive.com/dynamicindex3/scrolltop.htm
ankillien
ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

Back to top Go down

What kind of script am I looking for? Empty Re: What kind of script am I looking for?

Post by Bleachzor May 28th 2010, 3:26 pm

ankillien wrote:Hello,

I think this is what you are looking for...
http://www.dynamicdrive.com/dynamicindex3/scrolltop.htm

most accurately you once again, hit the nail on the spot.
with "this" I might even be able to fix something I allready had in mind for a long time.

Now however, I have a question about "how" I can position that picture in a different way.

The situation is the following:
I have a homepage with a width of 724px
If you have a screenresolution higher than 600*800(most people have 768*1024 or higher) then the button is too far away from the content.

Would I be able to locate this button "within" the content part but allways on a fixed height of the screen?
How would I need to do that? Is this positioning possible using css alone?

*offtopic: is that avatar from "Junjo Romantica"?
Bleachzor
Bleachzor
Forumember

Posts : 211
Reputation : -10
Language : Dutch

Back to top Go down

What kind of script am I looking for? Empty Re: What kind of script am I looking for?

Post by ankillien May 28th 2010, 5:32 pm

Well, guidelines about setting the offsets is given on the same page. Please go through them and you'll learn how to place the button exactly where you want.
ankillien
ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

Back to top Go down

What kind of script am I looking for? Empty Re: What kind of script am I looking for?

Post by Bleachzor May 28th 2010, 8:10 pm

OK
Thank you.

Question solved >> Close topic >> Eat pizza >> Go to toilet >> Go to pizza >> Eat toilet >> Eat topic >> Close toilet >> Something in that order...


Last edited by Bleachzor on May 28th 2010, 8:22 pm; edited 1 time in total (Reason for editing : Just noticed how offensive the last part sounds with the wrong interpretation.)
Bleachzor
Bleachzor
Forumember

Posts : 211
Reputation : -10
Language : Dutch

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum