Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > CSS > CSS Cascading Style Sheets
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old February 14th, 2007, 11:13 AM
Friend of Wrox
 
Join Date: Mar 2006
Location: , , Portugal.
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

Reply With Quote
  #12 (permalink)  
Old February 14th, 2007, 11:20 AM
Friend of Wrox
 
Join Date: Aug 2003
Location: Warks, Warks, United Kingdom.
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
Reply With Quote
  #13 (permalink)  
Old February 14th, 2007, 11:31 AM
Friend of Wrox
Points: 1,315, Level: 14
Points: 1,315, Level: 14 Points: 1,315, Level: 14 Points: 1,315, Level: 14
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , , .
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
Reply With Quote
  #14 (permalink)  
Old February 14th, 2007, 02:48 PM
Friend of Wrox
 
Join Date: Mar 2006
Location: , , Portugal.
Posts: 310
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok!

Here

Reply With Quote
  #15 (permalink)  
Old February 14th, 2007, 02:56 PM
Friend of Wrox
 
Join Date: Mar 2006
Location: , , Portugal.
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!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 10:32 PM.


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