How to go to middle of page on enter?

  • Banjer
  • Novice
  • Novice
  • Banjer
  • Posts: 21

Post 3+ Months Ago

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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Rat
  • Guru
  • Guru
  • User avatar
  • Posts: 1190
  • Loc: desk

Post 3+ Months Ago

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
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13503
  • Loc: Florida

Post 3+ Months Ago

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 ?)
  • Nem
  • Guru
  • Guru
  • Nem
  • Posts: 1243
  • Loc: UK

Post 3+ Months Ago

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


$logout = "
logoutcode";

<a href=$logout>logout</a>
  • JrzyCrim
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2062

Post 3+ Months Ago

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
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13503
  • Loc: Florida

Post 3+ Months Ago

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 :)

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 49 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
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.