Site Loading and Caching and Counters and Scroll Bars..

  • JackDoff
  • Novice
  • Novice
  • JackDoff
  • Posts: 24

Post 3+ Months Ago

Hey guys, sorry to ask a question at such a low postage count, but you guys seem nice enough to not mind :lol:
So a few of questions for my webpage

1) Can I make it so I can choose which images are loaded first? Such as I want the background image to load up first, then some others, then others etc. (also includes 1 .swf)

2) Caching, my site is in full .html so if I choose to update my site, caching affects it, since it loads what it has 'downloaded' should I say into memory. Is there any way around this? (I do not want to get rid of caching altogether, since it'll be a bother to load)

3) Is there anyway using only .html to have a counter. A counter that does not give information to a third party for me to see, but just a counter that shows how much hits the site had, (nothing else needed)

4) Is it possible to add a custom scrollbar to my iframe in my site?

edit- forgot 4th question :)
thnx for reading this and I look forward to hearing from you guys :)
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • neksus
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2194
  • Loc: Canada

Post 3+ Months Ago

iframes behave exactly like normal pages, so if you know how to add custom scrollbars, just include that in the css page for the iframe. but note, they will only work in IE. uh, you can't choose which images are loaded first (goes top to bottom, so unless you put what you want in like that and then rearrange it with css you're outta luck). depending on peoples browsers (and taking the normality), your site should re-download if its different on the server from the last time they saw it. and for the straight html, nope. not without javascript or flat files or php or some type of language.
  • JackDoff
  • Novice
  • Novice
  • JackDoff
  • Posts: 24

Post 3+ Months Ago

Javascript sounds good, could you please explain how I would go about putting a counter on with java?
  • monoheinz
  • Student
  • Student
  • User avatar
  • Posts: 79
  • Loc: Norway

Post 3+ Months Ago

Does your host lack php support? Or do you just want to keep the .html file ending? In the latter case you can always tell the server to parse .html as php and then use a php counter (which there are millions of). To parse .html as php simply add the following line to the .htaccess file in the folder where the html-file is placed:
Code: [ Select ]
AddType application/x-httpd-php .php .html

Note that the .htaccess file is hidden in most ftp clients by default. Some hosts also won't let you play with this file.
  • JackDoff
  • Novice
  • Novice
  • JackDoff
  • Posts: 24

Post 3+ Months Ago

My host doesn't support PHP, Perl (CGI directory), ASP, JSP, MySQL, Access databases
  • monoheinz
  • Student
  • Student
  • User avatar
  • Posts: 79
  • Loc: Norway

Post 3+ Months Ago

Well, I guess you have to rely on a client-side counter then. Google javascript hit counter and take a pick. In the long run you might want to consider getting a host with at least php and/or perl installed.
  • JackDoff
  • Novice
  • Novice
  • JackDoff
  • Posts: 24

Post 3+ Months Ago

Let's just say, my site has dodgy content (nothing sick), thus the reason I don't like to have a third-party involved
  • quantumcloud
  • Proficient
  • Proficient
  • User avatar
  • Posts: 456
  • Loc: Dhaka, Bangladesh

Post 3+ Months Ago

Quote:
2) Caching, my site is in full .html so if I choose to update my site, caching affects it, since it loads what it has 'downloaded' should I say into memory. Is there any way around this? (I do not want to get rid of caching altogether, since it'll be a bother to load)


This usually helps if you don't want the browser to cache your site.

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

Though I hear it sometimes don't work. You may want to read this article on this.

http://www.htmlgoodies.com/beyond/nocache.html
  • JackDoff
  • Novice
  • Novice
  • JackDoff
  • Posts: 24

Post 3+ Months Ago

Well, as I said don't want no caching, takes too long to load everytime :p
Damn, really wanted to see how many hits i get a day
  • monoheinz
  • Student
  • Student
  • User avatar
  • Posts: 79
  • Loc: Norway

Post 3+ Months Ago

Like I said, find a javascript counter and use it until your host installs php, cgi or similar.
  • JackDoff
  • Novice
  • Novice
  • JackDoff
  • Posts: 24

Post 3+ Months Ago

One more question
is it possible to change the colour of the hyperlinks from blue to another colour?
  • neksus
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2194
  • Loc: Canada

Post 3+ Months Ago

include in the head
Code: [ Select ]
<style>
A:link, A:active {
color: #ffffff; //your colour
text-decoration: underline; //change to none if you want nothing
font-weight: bold; //leave this line out if you dont want bold
}

A:visited {
color: #999999; //same as above
font-weight: bold; //same as above
}

A:hover {
color: #333333; //^^^
text-decoration: none; //^^^
}
  1. <style>
  2. A:link, A:active {
  3. color: #ffffff; //your colour
  4. text-decoration: underline; //change to none if you want nothing
  5. font-weight: bold; //leave this line out if you dont want bold
  6. }
  7. A:visited {
  8. color: #999999; //same as above
  9. font-weight: bold; //same as above
  10. }
  11. A:hover {
  12. color: #333333; //^^^
  13. text-decoration: none; //^^^
  14. }

link/active are links, period. visited is if they've been to the page already (cached). hover is on mouseover.
  • Mr Smith
  • Graduate
  • Graduate
  • Mr Smith
  • Posts: 150
  • Loc: Birmingham, England

Post 3+ Months Ago

JackDoff wrote:
Let's just say, my site has dodgy content (nothing sick)


username = JackDoff

:lol: appropriate username it would seem! :lol:

Post Information

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

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