They may not be static HTML pages either. Most server side technologies provide a way to map url strings to dynamic content. Something like "mypage.html" could actually be pointing to a PHP page or Cold Fusion app.
Originally posted by Prabhakar Rao: How the sites are displaying Dynamic content in HTML pages. Suppose if we take index.html of rediff, each time you refresh the page it shows a different ad.
What does "of rediff" mean?
But I need the actual process on -how they put space for the dynamic content.
It sounds like you might need to learn some html as well. Web browsers render html in the order it appears on the page (although that order can be altered using css). Also, you can use css to make text on a web page flow around any sized image automatically, so the size of the image would be irrelevant.
-how they display dynamic content each time.
You populate an array with different .jpg files that are ads. When the request is received, you program the jsp or servlet to generate a random integer and assign it to a variable. You use that variable as the index value of the array, e.g.
and then you assign that specific .jpg file to the src attribute of an <img> tag, e.g.
out.println("<h1>My Web Page</h1>"); out.println("<img src=\"http://mysite.com/someDir/ads/" + myAds[myRanNum] + "\"/>"); out.println("<div>some text here</div>"); [ October 05, 2006: Message edited by: sven studde ]