Site Loading and Caching and Counters and Scroll Bars..

  • JackDoff
  • Novice
  • Novice
  • No Avatar
  • Joined: Sep 26, 2004
  • Posts: 24
  • Status: Offline

Post September 26th, 2004, 10:58 pm

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

Post September 26th, 2004, 10:58 pm

  • neksus
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Sep 10, 2004
  • Posts: 2194
  • Loc: Canada
  • Status: Offline

Post September 27th, 2004, 12:32 am

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
  • No Avatar
  • Joined: Sep 26, 2004
  • Posts: 24
  • Status: Offline

Post September 27th, 2004, 1:48 pm

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

Post September 27th, 2004, 3:11 pm

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
  • No Avatar
  • Joined: Sep 26, 2004
  • Posts: 24
  • Status: Offline

Post September 27th, 2004, 3:52 pm

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

Post September 27th, 2004, 4:18 pm

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
  • No Avatar
  • Joined: Sep 26, 2004
  • Posts: 24
  • Status: Offline

Post September 27th, 2004, 4:54 pm

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
  • Joined: May 11, 2004
  • Posts: 456
  • Loc: Dhaka, Bangladesh
  • Status: Offline

Post September 28th, 2004, 4:48 am

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
Web development company : quantumcloud

Web design company : web.com.bd
  • JackDoff
  • Novice
  • Novice
  • No Avatar
  • Joined: Sep 26, 2004
  • Posts: 24
  • Status: Offline

Post September 28th, 2004, 1:53 pm

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
  • Joined: Sep 27, 2004
  • Posts: 79
  • Loc: Norway
  • Status: Offline

Post September 28th, 2004, 1:59 pm

Like I said, find a javascript counter and use it until your host installs php, cgi or similar.
  • JackDoff
  • Novice
  • Novice
  • No Avatar
  • Joined: Sep 26, 2004
  • Posts: 24
  • Status: Offline

Post September 30th, 2004, 12:54 pm

One more question
is it possible to change the colour of the hyperlinks from blue to another colour?
  • neksus
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Sep 10, 2004
  • Posts: 2194
  • Loc: Canada
  • Status: Offline

Post September 30th, 2004, 1:43 pm

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
  • No Avatar
  • Joined: Jul 29, 2004
  • Posts: 150
  • Loc: Birmingham, England
  • Status: Offline

Post September 30th, 2004, 2:21 pm

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 82 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
 

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