Click here to get back home

how to load a different image on a web page

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
how to load a different image on a web page ipy2006 02-05-2007
Get Chitika Premium
Posted by David E. Ross on February 5, 2007, 6:52 pm
Please log in for more thread options


Ben Bacarisse wrote [in part]:
>
>> Thanks for the reply. If you look at http://www.nyu.edu everytime you
>> open this url in a browser you will see a new <div> element. Do you
>> think it is created by a server side script or by some Ajax code? From
>> my observation I don't see any server side code there. Please
>> comment.
>
> The photos appear (and change) when all client-side scripting is off
> so a server-side script is probably generating the changed content.
> You say you can't see any server code there, but server-side code is
> almost always hidden.

A server-side include (SSI) script executes on the Web server before the
requested Web page is sent. If the SSI affects content within the page,
that effect appears as if pre-coded into the page. You do not see the
SSI itself.

If you go to my home page (see signature below), scroll to the bottom,
and select the link "Index of HTML Files", you will get a page with the
index of all HTML files on my site. This is generated by a SSI called
from <http://www.rossde.com/get_index.html>. If you look at the source
HTML of that page, you will see the table structure of the display. You
will NOT see the UNIX Korn shell SSI script -- named get_index.ksh --
that generated the source HTML. You will not even see the call to
get_index.ksh, which the Web server replaced with the results of
executing that SSI.

The same is true of the "hit" counters in my pages; the count looks
hard-coded into the HTML. I see the calls to the SSIs when I view my
HTML on my server, which you can't see because you don't have access. I
also see the calls in the HTML on my PC, where I develop and maintain my
pages before uploading to the server. If I view one of those pages in a
browser, the results of an SSI is a blank because my PC is not a server
and thus can't execute the SSI. If I view one of my pages by loading it
from the server, I see the SSI results. If I then download that page to
my PC, the HTML contains the results of the SSI, not the call to it.

--

David E. Ross
<http://www.rossde.com/>

I use SeaMonkey as my Web browser because I want
a browser that complies with Web standards. See
<http://www.mozilla.org/projects/seamonkey/>.

Posted by the red dot on February 5, 2007, 6:11 pm
Please log in for more thread options



> Other than the JavaScript of timing and rotating images every few
> seconds or minutes, is there a way to uniquely load a different
> picture every time a browser open a page?
> Thanks,
> yip
>
php
http://alistapart.com/articles/randomizer/



Similar ThreadsPosted
How do I automatically load a different page ? November 10, 2004, 1:04 pm
Troubleshooting page load delays: Whats the best approach? Software? July 26, 2006, 3:15 pm
Page load takes 15 seconds (Wild West Domains) September 6, 2008, 9:39 am
Can I specify that some images load before others? December 1, 2005, 6:41 am
Image that scrolls with the page? January 21, 2005, 7:57 am
wget -p does not load my images October 25, 2006, 11:52 am
How to load first.html into a certain
...
area?
November 20, 2008, 1:47 pm
Impact of images on load performance November 29, 2004, 2:49 pm
Textarea style not applied on first load November 22, 2007, 4:29 pm
Show image top left in html page, how can I do that ? June 11, 2006, 8:59 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap