Re: How do I make an Image visible?
- From: Cov <dcoventry@xxxxxxxxxxx>
- Date: Sun, 30 Sep 2007 13:42:46 -0700
On Sep 30, 4:05 pm, David Mark <dmark.cins...@xxxxxxxxx> wrote
Why try to script a Web page before you have learned the basics of
scripting Web pages?
Thank you for your reply. :)
Years ago, I was quite conversant with Javascript, so I do know the
basics of Scripting, it's just that my memory is letting me down a
little. Old age.
I have the O'Rielly Javascript Definative Guide (3rd Edition!) and
have been going over it, hoping to jog my memory, but I couldn't see
what I was doing wrong.
Sorry, the parameters are defined earlier in the functionLeftCurtain=new Image(midPoint,ht);Where are these two parameters defined?
midPoint=document.width/2; and ht=document.height;
There are no errors from the Firefox Javascript error console, so I'm
reasonably sure my code is free of typos.
Regardless of the above-mentioned problems, you never appended theOkay, I think this is the crux of the problem. How do you append the
image to the document.
image to the document?
And BTW, use createElement, not the Image constructor.createElement is not O'Rielly's Definitive Guide! (Well, if it is,
it's not in the Index).
Thanks again,
Dave Coventry
.
- Follow-Ups:
- Re: How do I make an Image visible?
- From: David Mark
- Re: How do I make an Image visible?
- References:
- How do I make an Image visible?
- From: Cov
- Re: How do I make an Image visible?
- From: David Mark
- Re: How do I make an Image visible?
- From: David Mark
- How do I make an Image visible?
- Prev by Date: Re: When is a function not a function?
- Next by Date: Re: Recommendations for JavaScript drop-down menu code
- Previous by thread: Re: How do I make an Image visible?
- Next by thread: Re: How do I make an Image visible?
- Index(es):