It is currently Sat Dec 02, 2017 4:04 pm
Advanced search
If you are stuck or have questions regarding HTML or other Web technologies, ask your questions here. No question too dumb!
by LovDesArt » Sat Jan 14, 2012 2:19 pm
Hi, everyone!
I hope, that someone will be able to help me out. The problem is that I'm not actually an expert but I'm trying to build a HTML5 based website and I have incountered 2 problems:
1. Page jump. Formelly, I was using - Code: Select all
<a href="www.example.com#bring_me_here" />
, so in a page with a long content, which forces user to scroll down the page to read it all, he still could be able to go up, to the begining of the page. Very easy, nothing special. But now it became be obsolete & anyway I want it to be different. I want to write with your help a code (html & css), that will make appear on the left words like "Go up" but only if the page is long like http://holdem.ucoz.com/lang/it/ency/gen/regole-generali.html and if it has been scrolled down, but dissapear if the page is short and doesn't require any button to go up & anyway that would be following the users navigation. I'm sure, there is a way, probabily well known, but I repeat, I'm not an expert.
2. HTML manifest. About the cache. I have found the article about it, I wrote a manifest.cache to cache the files for offline browsing, I have added the reference to this file as you can see in the page posted before. The question is: does it works corectly? How can I check, if I wrote it corectly and if the server does actually support it? I cleared the cache of my browser, visited the site by viewing few pages, turned off the internet connection & tried to navigate site. It was possible, but only sometimes & only for few clicks, and then, when the site became inaccessible, the offline.html did not appeared. Maybe, I'm doing something wrong? The file is hosted here http://holdem.ucoz.com/lang/it/manifest.cache.
I would really appriciate any help!
Thanks
-
LovDesArt
- <h6>
-
- Posts: 1
- Joined: Sat Jan 14, 2012 1:51 pm
by zcorpan » Thu Sep 13, 2012 9:39 am
1. What is obsolete? Linking to an element with an id="" is certainly allowed. If the user wants to "scroll back", just use the browser's back button.
2. I suggest you read some tutorials on appcache. Also read
http://www.alistapart.com/articles/appl ... douchebag/
-
zcorpan
- <article>
-
- Posts: 807
- Joined: Tue Feb 06, 2007 8:29 pm
- Location: Sweden
Return to Help & Advice
Who is online
Users browsing this forum: No registered users and 1 guest