Reply
Open Pages Already Scrolled Down
Old 07-04-2006, 01:28 AM Open Pages Already Scrolled Down
Junior Talker

Posts: 1
I do not know if this has a certain name, but I am looking for a code that will allow me to have my webpage appear already scrolled down to a specific point when loaded. (When you open my page, you will not be at the top of the page, but scrolled down already to a specific point.)

In case you are wondering, my main reason for needing this code is to have a MySpace that opens below the banner ad at the top of the screen. This would enable me to hide the ad without illegally removing it.

All help is appreciated,
-Spnsr
Spnsr is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 07-04-2006, 01:54 AM Re: Open Pages Already Scrolled Down
vangogh's Avatar
Post Impressionist

Posts: 8,923
Name: Steven Bradley
Location: Boulder, Colorado
I think what you're looking for is a named anchor.What you would do is add a name attribute to an element on the page that you want to show up at the top of the page and then include that name in your link to the page.

Say you want the page to load at a specific paragraph then your code for the paragraph might be:

<p name="loadhere">yoru paragraph text...</p>

The choice of name is up to you. Then your link to the page would look something like:

<a href="http://www.domain.com/page.html#loadhere">link text</a>

The key being to use the # sign followed by the name you gave to the named anchor. You will need to be able to have access to edit the html on both pages obviously.

You're not limited to the paragraph tag when adding the name attribute. Most often you'll probably see it applied to a heading of some sort.
__________________
l Search Engine Friendly Web Design | Van SEO Design
l Tips On Marketing, SEO, Design, and Development | TheVanBlog
l Custom WordPress Themes
| Small Business Forum
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 07-09-2006, 08:52 PM Re: Open Pages Already Scrolled Down
RNPoo7's Avatar
Extreme Talker

Posts: 237
Exact question I was about to ask; I tried this but it didn't work for me.

Code:
<table  name="loadhere">
    <caption><b>Lake Keowee Trip</b> </caption>
Link
Code:
<SPAN 
              class=style4></SPAN><A class=details 
              href="http://www.greenvillecopts.org/act.php#loadhere">Details</A>
Links where the HTML if found
http://Greenvillecopts.org
http://greenvillecopts.org/act.php
__________________
I work on Turbo'd Honda's for fun :)
RNPoo7 is offline
Reply With Quote
View Public Profile
 
Old 07-10-2006, 12:39 AM Re: Open Pages Already Scrolled Down
vangogh's Avatar
Post Impressionist

Posts: 8,923
Name: Steven Bradley
Location: Boulder, Colorado
It should work assuming your table is located somewhere on act.php. I'm not sure if it would matter for this, but you should have quotes around your classnames.

One possiblity why it wouldn't be working is because the page is already at the bottom and can't go any lower to get to the named anchor. The page won't go any lower than it normally would so if you were to try to link to the last line of the page that line won't show up at the top. It will still load the same as if you scrolled to the bottom of the page.

RNPoo7 are the pages in question online somewhere. I'd be happy to take a look.
__________________
l Search Engine Friendly Web Design | Van SEO Design
l Tips On Marketing, SEO, Design, and Development | TheVanBlog
l Custom WordPress Themes
| Small Business Forum
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 07-10-2006, 01:18 AM Re: Open Pages Already Scrolled Down
RNPoo7's Avatar
Extreme Talker

Posts: 237
Quote:
Originally Posted by vangogh
RNPoo7 are the pages in question online somewhere. I'd be happy to take a look.

Quote:
Originally Posted by RNPoo7
I think those are the links you are asking for? The first link has the link or <a href.....>

Then the act.php has the table

Thank you in advance

P.S. I also tried it in different tags other than the table to see if it works, but i didn't have much luck.
__________________
I work on Turbo'd Honda's for fun :)
RNPoo7 is offline
Reply With Quote
View Public Profile
 
Old 07-10-2006, 01:27 AM Re: Open Pages Already Scrolled Down
RNPoo7's Avatar
Extreme Talker

Posts: 237
Talk about spam above my post
__________________
I work on Turbo'd Honda's for fun :)
RNPoo7 is offline
Reply With Quote
View Public Profile
 
Old 07-10-2006, 02:15 AM Re: Open Pages Already Scrolled Down
vangogh's Avatar
Post Impressionist

Posts: 8,923
Name: Steven Bradley
Location: Boulder, Colorado
The only thing I can think of is that you can't use the name attribute on the table element. Try it with an id instead and see if that works.

<table id="loadhere" ...>

If that still doesn't work it may be that the named anchor won't work on a table and you may need to use another element to set the anchor.

Oh and I got the spam and you were right, that's about as spammy as it gets.
__________________
l Search Engine Friendly Web Design | Van SEO Design
l Tips On Marketing, SEO, Design, and Development | TheVanBlog
l Custom WordPress Themes
| Small Business Forum
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 07-10-2006, 12:52 PM Re: Open Pages Already Scrolled Down
RNPoo7's Avatar
Extreme Talker

Posts: 237
Quote:
Originally Posted by vangogh
Try it with an id instead and see if that works.

<table id="loadhere" ...>
Excellent, works like a chram
__________________
I work on Turbo'd Honda's for fun :)
RNPoo7 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Open Pages Already Scrolled Down
 

Thread Tools

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

vB 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.14717 seconds with 12 queries