[Javascript] Refresh an image, change an image

Troy III Ajnej trojani2000 at hotmail.com
Sun Jun 13 07:23:54 CDT 2004


Wouldn't this all be possible with 3 simple img tag's? I like background img 
posisbilities and what I can do with them, but years have taut us to keep 
away even e single symbol if it's not nesesary for page view, -never to 
create an image with a simple border if you can add one in html, never 
publish a page with the working script comments, -why waste client precious 
download bits?!
After all cleaning routines I like to go throgh my namings and shorten them 
as much as posible, this way my codings and html for a page never exceeds 
4kb

>From: Scott Hamm <ScottHam at clientlogic.com>
>Reply-To: "[JavaScript List]" <javascript at LaTech.edu>
>To: "'[JavaScript List]'" <javascript at LaTech.edu>
>Subject: RE: [Javascript] Refresh an image, change an image
>Date: Fri, 11 Jun 2004 14:30:39 -0400
>
>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
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript

_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail




More information about the Javascript mailing list