Just to amplify slightly, I believe that Howard is talking about using DOM
manipulation. In your <body onload... event, which fires when the page is
built and the DOM becomes available, use the document method
getElementById('IDofYourImageHere') to access the image element, then modify
its src attribute to point to the image you wish to use on that page. There
is some sample source here using a generic getObj() function to return an
image element, then modify its src attribute:
http://lists.evolt.org/archive/Week-of-Mon-20030428/139738.html
Cheers,
Scott
.
----- Original Message -----
From: "Howard Cheng" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, July 01, 2005 2:40 PM
Subject: RE: [wdvltalk] JavaScript problem
What I mean is, have your HTML for your images written out, a la:
<img name="..." id="..." src="..."><a href="..." onmouseover="..."
onmouseout="...">text</a>
Then manipulate the IMG's src attribute using Javascript depending on what
your current page is.
Todd Richards <[EMAIL PROTECTED]> wrote :
Hi Howard -
Not sure I understand what you mean, but if there is an easier way to do
it
then I'm certainly for it!
Todd
-----Original Message-----
From: Howard Cheng [mailto:[EMAIL PROTECTED]
Sent: Friday, July 01, 2005 10:42 AM
To: [email protected]
Subject: Re: [wdvltalk] JavaScript problem
Instead of dynamically writing out the tags, why not just have those
all as static HTML and manipulate their contents using Javascript? I
think
that would probably be a lot easier.
::::::::::::::::::::::::::::::
Howard Cheng
http://www.howcheng.com/
Wise-cracking quote goes here.
____ . The WDVL Discussion List from WDVL.COM . ____
To Join wdvltalk, Send An Email To:
mailto:[EMAIL PROTECTED] or
use the web interface
http://e-newsletters.internet.com/discussionlists.html/
Send Your Posts To: [email protected]
To change subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk
________________ http://www.wdvl.com _______________________
You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016
Please include the email address which you have been contacted with.
____ The WDVL Discussion List from WDVL.COM ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or
use the web interface http://e-newsletters.internet.com/discussionlists.html/
Send Your Posts To: [email protected]
To change subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk
________________ http://www.wdvl.com _______________________
You are currently subscribed to wdvltalk as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016
Please include the email address which you have been contacted with.