[Javascript] Refresh an image, change an image

Scott Hamm ScottHam at clientlogic.com
Fri Jun 11 13:30:39 CDT 2004


For example:
<style>
	body {background:url(mainpix.gif) no-repeat top right;}
	#overall
{width:100%;height:100%;background:url(whateverelseitis.gif} no-repeat
bottom right;}
	#overall img {width:100px;height:200px;position
absolute;z-indez:-1;}
</style>


<div id="overall">
	<img src="whatever.jpg">
	<p>This statement would go over "whatever.jpg"</p>
</div>

It should show 3 different pictures on top right, bottom right and top left
corners with statement running over <img>




-----Original Message-----
From: javascript-bounces at LaTech.edu
[mailto:javascript-bounces at LaTech.edu]On Behalf Of Chris T
Sent: Friday, June 11, 2004 2:28 PM
To: [JavaScript List]
Subject: Re: [Javascript] Refresh an image, change an image


How so?  Without a DIV, you could always a) create a style declaration for
all images b) assign an ID to a particular image and create a style for that
ID or c) assign it a class name and create a style for the class.

And you can also script it too based off of a name or ID attribute.

Chris Tifer
http://emailajoke.com


----- Original Message ----- 
From: "Scott Hamm" <ScottHam at clientlogic.com>
To: "'[JavaScript List]'" <javascript at LaTech.edu>
Sent: Friday, June 11, 2004 1:58 PM
Subject: RE: [Javascript] Refresh an image, change an image


> Wrapping the image in a div provides many possibilities when it comes
around
> to CSS design. When you only use img tag without division, it will only
> reduce on how much you could do with CSS.

_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript



More information about the Javascript mailing list