• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

image URLs

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

While parsing HTML source at "http://www.sun.com" the browser downloads images at locations "/im/a.gif" and "/im/a2_bttn_search.gif".




But when I tried accessing these manually as-
"http://www.sun.com/im/a.gif"
and
"http://www.sun.com/im/a2_bttn_search.gif"

the result is a blank page. Also even if it is displayed on the online page neither are these images saved nor displayed in offline saved page.

I am just wondering how can this happen . I accessed images from other many sites succesfully the same way.

Thanks all
Lalit K. Nagalkar
 
Lalit Nagalkar
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also on one post I found a java code trying to access the same files threw FileNotFoundException.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I get it with no problem. a.gif and the btn. They are a 1X1 spacer images so it looks like a blank page.

Now you want to know where the arrow.

The arrow is a bg image in a CSS sprite. Look at the image here: http://www.sun.com//im/a1a2_sprite.png

and the CSS code. Notice the positioning code inside the Background tag.



Eric
 
Lalit Nagalkar
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Eric for the reply.

I also saw the images are 1X1, but what I see are not 1X1, a.gif is sun logo and other is search button a downward solid black filled arrow.
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you understand how the image shows up. Look at the bigger image I linked to and you will see the arrow.

Eric
 
Lalit Nagalkar
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Eric

Thanks for the reply

I don't know about CSSs, other than that they are used to style the HTML page. I used only the knowledge I had about loading of images from URLS in a HTML, hence that question.

Sorry if I made you mad.
Kind regards, :-)

Lalit K. Nagalkar
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I did not get mad. Your reply made it sound like you still had no idea how the image was showing up.

Eric
 
I've got no option but to sell you all for scientific experiments. Or a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic