
09-19-2008, 07:53 PM
|
|
|
Join Date: Feb 2003
Location: Iowa
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by tspore
Ok I may not be smart enough, but how does this take me to the new posts?
It always opens up to the first one on the page.
Help please?
|
In ElForro's default style, the link to each thread just goes to the last post. What I added above takes you to the first new post. You'll also need to comment out this part as noted in this post:
Quote:
Originally Posted by msu2k
Just installed this on my site and it looks great! One problem I'm encountering on my iPhone, and this happens when I visit your site as well, the jump to last post button isn't working correctly. It just takes me to the last page, but not down to an anchor for the last post itself. Any idea why this is happening?
In fact, the same thing is happening on Elforro's site with his style. It will jump me to the last page of a thread, but not down to the last post. If I test it on Firefox or IE it will work just fine and go down to the anchor, but on the iPhone it's not jumping down to the anchor like it should.
UPDATE: Ok, I figured out why this was happening. This javascript in headinclude causes iPhones to jump back up to the top of the screen. Commenting that out makes the anchors work correctly.
Code:
<script type="application/x-javascript">
if (!!navigator.userAgent.match(/.*Mobile.*Safari/))
{
addEventListener("load", function()
{
setTimeout(hideURLbar, 0);
}, false);
}
function hideURLbar()
{
window.scrollTo(0, 1);
}
</script>
|
--JOsh
|