Log In · Register

 
Need to find a script, ...
Melissa
post May 7 2008, 02:27 PM
Post #1


;)
******

Group: Duplicate
Posts: 2,374
Joined: Feb 2004
Member No: 3,760



I need to find a script that'll jump to different sections of a page. like, if you click a link, it'll take you to 1/4th down the page, another link'll take you 1/2 down the page, etc.

I can't seem to find it anywhere and I'm pretty sure it exists. ><
 
 
Start new topic
Replies (1 - 8)
Melissa
post May 7 2008, 03:21 PM
Post #2


;)
******

Group: Duplicate
Posts: 2,374
Joined: Feb 2004
Member No: 3,760



yeah, but doesn't that need to jump to a word which is the #something?

i'm looking for something that'll jump to 1/4th of any page regardless of words. idk, i dont really need it, it's just that since i'm taking out the scrollbar in my div, and it has php pages within it, i'm trying to think up ways to convenience scrolling.

http://heartquasm.org/test.php <-- (it's not finished lol!) i've got a scrolling script, but i want something in the middle to automatically jump halfway down the page.

hrm. i'll try the code anyways ...

edit/ yeah, no, it doesn't work :(
 
mipadi
post May 7 2008, 03:31 PM
Post #3


Senior Member
******

Group: Administrator
Posts: 2,648
Joined: Apr 2008
Member No: 639,265



QUOTE(highwayto4355 @ May 7 2008, 04:07 PM) *
alright; i'm not completely sure but i think it's this

CODE
<head>
<script language="JavaScript">
function X(){
onClick (window.location = "#something");
}
</script>
</head>
<body>
<a href="" onClick="X">Text</a>

Why use JavaScript when you can just do this:

CODE
<a href="#something">Text</a>
 
venti-anemoi
post May 7 2008, 06:55 PM
Post #4


torn
*****

Group: Official Designer
Posts: 953
Joined: Oct 2004
Member No: 55,718



http://www.htmlgoodies.com/tutorials/getti...cle.php/3479511

It doesn't say in this tutorial, but in others it says that for the "<a name" tag, you need to have an "</a>" too.
 
synatribe
post May 8 2008, 12:14 AM
Post #5


AIDS at RAVES.
******

Group: Official Designer
Posts: 2,386
Joined: Dec 2007
Member No: 598,878



you mean page anchors?

heres the code
thats going to be the link that people click on to travel down the page
<a href="#word">Link Name</a>

the next link should rest where the content starts so that the link knows where to go
<a name="word">Link Name</a>

to use multiple different links, just change word into whatever you like:]
 
fixtatik
post May 13 2008, 07:38 PM
Post #6


Senior Member
******

Group: Member
Posts: 1,237
Joined: May 2008
Member No: 648,123



i have a somewhat complicated answer for you. :]
it might be too much of a pain to actually make it worthwhile, but if you get it to work, it makes everything gorgeous.

mootools is an open source collection of javascript codes. test this one out: Fx.Scroll.

also, i noticed you changed the background coloring on your lightbox overlay. the loading picture is a gif image, so it has aliased edges. if you want (just to make it kinda flow a little nicer with how pleasant the rest of your site is), check out loadinfo.net. you can pick your own loading image, and you can make the background the same color as what you chose for the lightbox overlay, so it won't have those pixeled, aliased edges.
 
synatribe
post May 13 2008, 09:06 PM
Post #7


AIDS at RAVES.
******

Group: Official Designer
Posts: 2,386
Joined: Dec 2007
Member No: 598,878



QUOTE(grrDesign @ May 13 2008, 07:38 PM) *
i have a somewhat complicated answer for you. :]
it might be too much of a pain to actually make it worthwhile, but if you get it to work, it makes everything gorgeous.

mootools is an open source collection of javascript codes. test this one out: Fx.Scroll.

also, i noticed you changed the background coloring on your lightbox overlay. the loading picture is a gif image, so it has aliased edges. if you want (just to make it kinda flow a little nicer with how pleasant the rest of your site is), check out loadinfo.net. you can pick your own loading image, and you can make the background the same color as what you chose for the lightbox overlay, so it won't have those pixeled, aliased edges.

wooh.. the mootool demo is cool, its like picture anchors, lol its like flash without, flash, lol:]
 
Melissa
post May 13 2008, 09:57 PM
Post #8


;)
******

Group: Duplicate
Posts: 2,374
Joined: Feb 2004
Member No: 3,760



QUOTE(grrDesign @ May 13 2008, 08:38 PM) *
i have a somewhat complicated answer for you. :]
it might be too much of a pain to actually make it worthwhile, but if you get it to work, it makes everything gorgeous.

mootools is an open source collection of javascript codes. test this one out: Fx.Scroll.

also, i noticed you changed the background coloring on your lightbox overlay. the loading picture is a gif image, so it has aliased edges. if you want (just to make it kinda flow a little nicer with how pleasant the rest of your site is), check out loadinfo.net. you can pick your own loading image, and you can make the background the same color as what you chose for the lightbox overlay, so it won't have those pixeled, aliased edges.


Thanks for that- I just changed the loading picture.

And wow, mootools is way cool, but I don't need the scrolling script anymore. Thanks for that, though! I think I clicked on everything there and went crazy dragging things onto each other, lol.
 
Alatariel
post May 17 2008, 01:11 PM
Post #9


Expelliarmus!
***

Group: Member
Posts: 70
Joined: May 2008
Member No: 649,803



You could use simple HTML:

CODE
<a href="#place">Klik to go to the middle</a>
<a name="place">the middle</a>


Edit: Sorry i didn't see it already has been posted :$
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: