Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 08-17-2006, 06:58 PM page jumping issues
Novice Talker

Posts: 11
Trades: 0
Hi there, have just found your forum as I am looking for a little advice and help with a portfolio website I am creating. I'm not sure if its in the right forum or not, but please feel free to correct me. :-)

I'm having some problems with my gallery page, in that when I scroll down the page and click one of the links the page jumps back up to the top again which is somewhat very annoying as you have to scroll back down again. I was wondering if you would be so kind to take a look over it.

You will see the problem and can you suggest how I may fix it and also if you see anything else wrong with the site or have any suggestions I appreciate it as this is my first portfolio site and I would like to get it right.

Thanks

Anna

link to site is www.spooksanonymous.com
LillianaS is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-17-2006, 07:46 PM Re: page jumping issues
angele803's Avatar
Perfectly Imperfect

Posts: 1,772
Name: Stephanie
Location: Oklahoma
Trades: 2
You might want to ask the people in the java script thread. I dont know java script, but I am pretty sure it has something to do with the way you are having the new windows pop up. Good luck!
angele803 is offline
Reply With Quote
View Public Profile
 
Old 08-17-2006, 10:39 PM Re: page jumping issues
Ultra Talker

Posts: 256
Location: Auckland, New Zealand
Trades: 0
What is suppose to happen if they click the link?

The reason it jumps to the top is that every link has # as a place for it, which will reload the page but with # on the end, which does nothing, so really the page is just being reloaded again starting from the top of the page.

The only way would be to remove every href="#" and just leave it as an anchor instead, that way clicking on the image has no effect in what it does.

Cheers,

MC
__________________
#------------------------------signature---------------------------------------------------------------------------------#
Quote:
I am well recognised for what I don't do than what I do. Chores are just one of those things.
mastercomputers is offline
Reply With Quote
View Public Profile Visit mastercomputers's homepage!
 
Old 08-18-2006, 06:09 AM Re: page jumping issues
Novice Talker

Posts: 11
Trades: 0
We're not too sure of how to go about replacing the href="#" link with an anchor. Please could you give us a few pointers, we did have an attempt but it kept going wrong lol...

Cheers

Anna & Mike
LillianaS is offline
Reply With Quote
View Public Profile
 
Old 08-18-2006, 03:05 PM Re: page jumping issues
Silent77's Avatar
Ultra Talker

Posts: 269
Name: Silent
Location: Ohio
Trades: 0
the reason it is jumping back to the top is because you are loading a new page. I'm not sure if this would be the best way to fix it but I am pretty sure an iframe would fix it.
__________________
Firefox
rediscover the web

Please login or register to view this content. Registration is FREE
Down with internet explorer!
Silent77 is offline
Reply With Quote
View Public Profile Visit Silent77's homepage!
 
Old 08-18-2006, 09:31 PM Re: page jumping issues
Silent77's Avatar
Ultra Talker

Posts: 269
Name: Silent
Location: Ohio
Trades: 0
ok (sorry for double post) I figured something out that will work in html

Page One
HTML Code:
<a href="page2.html#pagejump">Next</A>
Page Two (above the first image)
HTML Code:
<a name="pagejump">
This will work in all browsers. iframes are not support in some browsers.

-Hope This Helps
__________________
Firefox
rediscover the web

Please login or register to view this content. Registration is FREE
Down with internet explorer!

Last edited by Silent77; 08-18-2006 at 09:32 PM..
Silent77 is offline
Reply With Quote
View Public Profile Visit Silent77's homepage!
 
Old 08-18-2006, 09:49 PM Re: page jumping issues
Ultra Talker

Posts: 256
Location: Auckland, New Zealand
Trades: 0
Basically all I was suggesting is instead of

Code:
<a href="#" ... ><img .... /></a>
You do:

Code:
<a ...><img ... /></a>
The horizontal ellipsis (...) just means fill in the rest of the code unchanged.

You eliminate using href, and just leave it as a plain anchor tag.

Other suggestions are:

Code:
<a id="image1" href="#image1" ... >
This is just a bookmark back to the same place you're at. ID must be unique though.

or

Code:
<a href="javascript:void();" ... >
This should just do nothing when clicked on it.

Cheers,

MC
__________________
#------------------------------signature---------------------------------------------------------------------------------#
Quote:
I am well recognised for what I don't do than what I do. Chores are just one of those things.
mastercomputers is offline
Reply With Quote
View Public Profile Visit mastercomputers's homepage!
 
Reply     « Reply to page jumping issues
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.37358 seconds with 12 queries