How to go to middle of page on enter?

  • Banjer
  • Novice
  • Novice
  • No Avatar
  • Joined: Jul 14, 2004
  • Posts: 21
  • Status: Offline

Post August 1st, 2004, 4:52 am

How do it make it so when u enter this page you go to a specific point instantly, because i have ads on the top and i want to hide these by using an iframe with no scrollbars, and then start where my actual page begins, so the ads are out of sight... I have no idea how to do this, i'm using php files.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post August 1st, 2004, 4:52 am

  • Rat
  • Guru
  • Guru
  • User avatar
  • Joined: Apr 25, 2004
  • Posts: 1190
  • Loc: desk
  • Status: Offline

Post August 1st, 2004, 5:10 am

just have a target on the page
e.a.
this is what the link will look like
Code: [ Select ]
<a href="#bottom"> 


this is waht the target will look like
Code: [ Select ]
<a name="bottom"> </a>
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post August 1st, 2004, 9:27 am

banjer, rat is right.

You may want to take into consideration that your host will more than likely delete you site if they catch you doing this though :wink:
(you know that "for any reason we see fit" type clause in the agreement ?)
Strong with this one, the sudo is.
  • Nem
  • Guru
  • Guru
  • No Avatar
  • Joined: Feb 13, 2004
  • Posts: 1243
  • Loc: UK
  • Status: Offline

Post August 1st, 2004, 9:40 am

rat, can you do that in php, maybe make it go to a variable...


$logout = "
logoutcode";

<a href=$logout>logout</a>
GSDomains.com -Click here - Packages starting from £3.69 a month. 1.5GB Space & 10GB Bandwidth.
  • JrzyCrim
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Mar 17, 2004
  • Posts: 2062
  • Status: Offline

Post August 1st, 2004, 2:15 pm

joebert wrote:
You may want to take into consideration that your host will more than likely delete you site if they catch you doing this though :wink:
(you know that "for any reason we see fit" type clause in the agreement ?)


Why would a host delete a sight for that? Not arguing, just very curious.

You could also put an ID in an element that's already in the middle of the page or wherever it needs to go. <p id="middle"> for exampe.

See http://www.w3.org/TR/REC-html40/struct/ ... l#h-12.2.3
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post August 2nd, 2004, 6:34 am

JrzyCrim wrote:
joebert wrote:
You may want to take into consideration that your host will more than likely delete you site if they catch you doing this though :wink:
(you know that "for any reason we see fit" type clause in the agreement ?)

Why would a host delete a sight for that? Not arguing, just very curious.


Maybe it's just me, but if I provided a service for nothing out of your pocket & you try to hide the thing that is paying for you to have that service for nothing out of your pocket I have to assume you really don't want that service or you would realise hiding thoose advertisements is slowly but surely killing your site.

Therefore I would delete it & make room for someone who does want the service. :) Which is why I would have put the "for any reason we see fit" clause in the agrement that they probably diddn't read anyway :)
Strong with this one, the sudo is.

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 122 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.