Wrox Programmer Forums
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 14th, 2007, 11:13 AM
Friend of Wrox
 
Join Date: Mar 2006
Posts: 310
Thanks: 0
Thanked 0 Times in 0 Posts
Default

socoolbrewster: yes i mean that

" The JavaScript function I showed you is meant to cach an image, but this does depend on your browser settings"

Ok, but if the image is already on cache(first load), this function don't make continuous download everytime that have a reload right ?(this could happen after de first load)

My doubt is:
If the image is already on cache, this function will overlap image file or simply it does not make download?

Thanks a lot

 
Old February 14th, 2007, 11:20 AM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 137
Thanks: 0
Thanked 0 Times in 0 Posts
Default

When I have used in the past - I tend to call it once, because if the onload was left within BODY tag for every page then yes it would recache the image. For example, I used it for this site I developed www.yhp.org.uk whereby the home page would use the function to call a percentage of the graphics used throughout the site. However, at the time I didnt consider the load this would add to the page, however, does the trick.

Maybe it might be best reviewing the JavaScript forum for ideas? as I'm drifting off the CSS route a little here

Gaz
 
Old February 14th, 2007, 11:31 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Well, then it fills a purpose. But when using it for an image in the same page it fills no purpose at all. The only thing the JS does is that it makes the browser download the image, same as if it had been in an image tag or used as background. If the images is cached or not depends on other things.

Maxxim, can't you show us the page? Maybe we can find out what's going on? Or maybe we can't, but we have a better chance anyway. :)

--
http://yupapa.com
 
Old February 14th, 2007, 02:48 PM
Friend of Wrox
 
Join Date: Mar 2006
Posts: 310
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok!

Here

 
Old February 14th, 2007, 02:56 PM
Friend of Wrox
 
Join Date: Mar 2006
Posts: 310
Thanks: 0
Thanked 0 Times in 0 Posts
Default

upps, this forum don't allow images... :(

But the images are:

1

2

3

I hade notice that css style of that boxes are not in a css file. Because i have this on a asp:repeater.
But if help to put all this styles into css file i'll do this!

Thanks for the help and fast replies!





Similar Threads
Thread Thread Starter Forum Replies Last Post
No Background Images in ReportViewer wb8bgy Visual Basic 2005 Basics 1 March 28th, 2007 03:08 PM
how to creat a treeview with background images tjgrindsted ASP.NET 2.0 Basics 0 January 10th, 2007 04:31 PM
'Print Background colors and images' crmpicco Javascript How-To 0 January 14th, 2005 10:19 AM
XML background images timsweet XML 0 September 30th, 2004 06:01 PM
background images Larson HTML Code Clinic 2 February 15th, 2004 06:22 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.